Actions
Issue #4870
closedPulp3 core status api not returning any thing
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings, Katello
Sprint:
Quarter:
Description
$curl -k http://pulp3.example.com/pulp/api/v3/status/
{"versions":[{"component":"pulpcore","version":"3.0.0rc2"},{"component":"pulpcore-plugin","version":"0.1.0rc2"},{"component":"pulp_file","version":"0.0.1b11"}],"online_workers":[{"_href":"/pulp/api/v3/workers/366b15e7-3b0c-458a-aafd-542f10f08387/","_created":"2019-05-22T18:09:43.652407Z","name":"resource-manager@centos7-pulp3-github.partello.example.com","last_heartbeat":"2019-05-22T20:12:09.554231Z","online":true,"missing":false}],"missing_workers":[],"database_connection":{"connected":true},"redis_connection":{"connected":true}}
seems to return the correct response body , but when referenced from pulp core status api client the response is "nil" on 200.
>> response = PulpcoreClient::StatusApi.new.status_list
2019-05-22T20:15:45 [D|kat|] Calling API: StatusApi.status_list ...
Found bundle for host pulp3.example.com: 0xf811330
......
HTTP/1.1 200 OK
Server: nginx/1.12.2
Date: Wed, 22 May 2019 20:15:45 GMT
Content-Type: application/json
Content-Length: 536
Connection: keep-alive
Vary: Accept
Allow: GET, HEAD, OPTIONS
X-Frame-Options: SAMEORIGIN
....
Connection #12 to host pulp3.example.com left intact
2019-05-22T20:15:45 [D|app|] ETHON: performed EASY effective_url=http://pulp3.partello.example.com/pulp/api/v3/status/ response_code=200 return_code=ok total_time=0.024795
2019-05-22T20:15:45 [D|kat|] HTTP response body ~BEGIN~
| {"versions":[{"component":"pulpcore","version":"3.0.0rc2"},{"component":"pulpcore-plugin","version":"0.1.0rc2"},{"component":"pulp_file","version":"0.0.1b11"}],"online_workers":[{"_href":"/pulp/api/v3/workers/366b15e7-3b0c-458a-aafd-542f10f08387/","_created":"2019-05-22T18:09:43.652407Z","name":"resource-manager@centos7-pulp3-github.partello.example.com","last_heartbeat":"2019-05-22T20:15:40.366738Z","online":true,"missing":false}],"missing_workers":[],"database_connection":{"connected":true},"redis_connection":{"connected":true}}
| ~END~
|
2019-05-22T20:15:45 [D|kat|] API called: StatusApi#status_list
| Data: nil
| Status code: 200
| Headers: {"Server"=>"nginx/1.12.2", "Date"=>"Wed, 22 May 2019 20:15:45 GMT", "Content-Type"=>"application/json", "Content-Length"=>"536", "Connection"=>"keep-alive", "Vary"=>"Accept", "Allow"=>"GET, HEAD, OPTIONS", "X-Frame-Options"=>"SAMEORIGIN"}
=> nil
>> response
=> nil
We need the status api to return a non null response listing the component details instead.
Updated by dkliban@redhat.com over 5 years ago
- Tags API Bindings, Katello-P1 added
Updated by dkliban@redhat.com over 5 years ago
- Status changed from NEW to POST
Added by dkliban@redhat.com over 5 years ago
Updated by dkliban@redhat.com over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|4d4f26a16431301e599b1b66fe831079fbbd1712.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by ggainey over 4 years ago
- Tags Katello added
- Tags deleted (
Katello-P1)
Actions
Problem: OpenAPI schema for status API is missing a response
Solution: add the response to the OpenAPI schema
This patch also change the operation_id from 'status_list' to 'status_read'.
fixes: #4870 https://pulp.plan.io/issues/4870