Project

Profile

Help

Issue #4870

closed

Pulp3 core status api not returning any thing

Added by paji@redhat.com over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
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.

Actions #1

Updated by dkliban@redhat.com over 5 years ago

  • Tags API Bindings, Katello-P1 added
Actions #2

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from NEW to POST

Added by dkliban@redhat.com over 5 years ago

Revision 4d4f26a1 | View on GitHub

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

Actions #3

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by bmbouter almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #5

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #6

Updated by ggainey over 4 years ago

  • Tags Katello added
  • Tags deleted (Katello-P1)

Also available in: Atom PDF