Senlinclient should detect latest supported microversion

Bug #1831479 reported by Duc Truong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
In Progress
Medium
Duc Truong

Bug Description

Right now the senlinclient hard-codes the supported microversion:
https://github.com/openstack/python-senlinclient/blob/master/senlinclient/plugin.py#L27

Instead of hard-coding the microversion, the senlinclient should discover the latest microversion supported by querying the version API and then use the value returned by the API call.

This is what other projects like nova client seem to be doing:
https://github.com/openstack/python-novaclient/blob/85e9b58e9b638bc49679d2c7460dd1db7f39f48a/novaclient/api_versions.py#L242
https://github.com/openstack/python-novaclient/blob/003ac57d9af74aa4658a7bf6cc6b6b3bafa58c11/novaclient/v2/versions.py#L52

Without this, a newer version of senlinclient cannot talk to an older version of senlin.

Changed in senlin:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Duc Truong (dtruong)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.