Project

Profile

Help

Story #161

[RFE] Add version info to the status API call

Added by lzap@redhat.com almost 7 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
2.6.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

++ This bug was initially created as a clone of Bugzilla Bug #704184 ++

Description of problem:

Hello,

we would like to know the version number of Pulp server, because we often run into issues when using incompatible API.

Is there any way to get the version number from the API call? If not the status call would be nice place to add it.

Thanks

--- Additional comment from at 05/18/2011 16:44:28 ---

This is a great suggestion, however we do not support backward compatibility of Pulp API yet. Marking this as RFE.

--- Additional comment from at 11/17/2013 20:42:24 ---

This feature would be great for our pulp tooling. We'd like to check if our client will work with the major and minor version of the server so we can ask our users in operations to update before attempting any API calls.

Example REST call:

GET /pulp/api/v2/status/

Sample 200 Response Body:

{"api_version": "2.3.0"}

An alternative would be to return more keys - possibly {api_version_major: "2"}, {"api_version_minor": "3"}.

--- Additional comment from at 01/13/2014 15:53:48 ---

I'm also hitting up against some tooling issues trying to find the right version (2.1,2.2,2.3) of REST API calls to make. Versioning the API and/or returning the version supported by the server would be very helpful.

--- Additional comment from at 12/08/2014 14:38:02 ---

I am working on this as part of a different story.

--- Additional comment from at 12/08/2014 22:50:56 ---

https://github.com/pulp/pulp/pull/1404

--- Additional comment from at 01/15/2015 00:35:31 ---

fixed in 2.6.0-0.4.beta

--- Additional comment from at 01/29/2015 14:02:24 ---

verified

[root@gizmo ~]# curl -k -u admin:admin https://localhost/pulp/api/v2/status/{"known_workers": [{"last_heartbeat": "2015-01-29T13:58:18Z", "name": ""}, {"last_heartbeat": "2015-01-29T13:59:02Z", "name": ""}, {"last_heartbeat": "2015-01-29T13:59:03Z", "name": ""}, {"last_heartbeat": "2015-01-29T13:59:03Z", "name": ""}], "messaging_connection": {"connected": true}, "database_connection": {"connected": true}, "api_version": "2", "versions": {"platform_version": "2.6.0"}}[root@gizmo ~]#
[root@gizmo ~]#
[root@gizmo ~]#

History

#1 Updated by bmbouter almost 7 years ago

  • Status changed from NEW to 6

This was already at VERIFIED state in Bugzilla. There was an error in the migration into Redmine. This change sets the correct state.

#2 Updated by rbarlow over 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#4 Updated by bmbouter almost 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF