Zun

Negotiate API version between CLI and server

Registered by hongbin

If there is no API version specified, the default API version used by the CLI will be decided as the following:
* The CLI will first make a request to the root endpoint of the Zun API, which returns the version of the Zun API.
* If the Zun API version is lower than the maximum version the client is compatible with, use the server's version.
* Otherwise, use the maximum version of the client.

For reference: this is novaclient's implementation: https://review.openstack.org/#/c/184281/

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
High
Drafter:
hongbin
Direction:
Approved
Assignee:
hongbin
Definition:
New
Series goal:
Accepted for stein
Implementation:
Implemented
Milestone target:
None
Started by
hongbin
Completed by
hongbin

Related branches

Sprints

Whiteboard

I guess this bp need to do some investigation about how to integrate with pecan. Seems we cannot set different api version for two functions in one controller. I hit this when run unit tests, debugging on it.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.