Project

Profile

Help

Issue #4870

Pulp3 core status api not returning any thing

Added by paji@redhat.com 8 months ago. Updated about 1 month ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings, Katello-P1
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

Associated revisions

Revision 4d4f26a1 View on GitHub
Added by dkliban@redhat.com 8 months ago

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

History

#1 Updated by dkliban@redhat.com 8 months ago

  • Tags API Bindings, Katello-P1 added

#2 Updated by dkliban@redhat.com 8 months ago

  • Status changed from NEW to POST

#3 Updated by dkliban@redhat.com 8 months ago

  • Status changed from POST to MODIFIED

#4 Updated by bmbouter about 1 month ago

  • Sprint/Milestone set to 3.0.0

#5 Updated by bmbouter about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF