SDK-based commands incorrectly warn about unsupported versions

Bug #2106760 reported by Stephen Finucane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Low
Stephen Finucane

Bug Description

When using a command that uses SDK client under the hood, we incorrectly warn about unsupported versions. This is in spite of SDK supporting auto-negotation. For example:

❯ openstack image list --os-image-api-version 2.3
image API version 2.3 is not in supported versions: 1, 2
+--------------------------------------+--------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------+--------+
| ad3de20f-f97e-43d4-91cc-03eb3e73d4e3 | cirros-0.6.3-x86_64-disk | active |
+--------------------------------------+--------------------------+--------+

❯ openstack server list --os-compute-api-version 2.96
compute API version 2.96 is not in supported versions: 2, 2.1

❯ openstack network list --os-network-api-version 2.6
network API version 2.6 is not in supported versions: 2, 2.0
+--------------------------------------+---------+----------------------------------------------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+---------+----------------------------------------------------------------------------+
| 1ccb72c3-159d-469d-aca7-e2ec9b0e38f5 | public | 5e005de3-6107-474b-8a14-f325b48a0cc9, c3701e64-c92b-431f-8634-637646533fb6 |
| 4b3c5b3e-f430-49c2-9804-d30639adf731 | shared | b0b52536-ce07-4752-87fa-7e19cb7ba3d9 |
| 74a23c39-a30d-4892-9b48-94edf7a5c9ae | private | 150adaa6-d9de-48c8-9352-de982502ed1a, def332f8-fb08-469a-a5c2-a9ac69642846 |
+--------------------------------------+---------+----------------------------------------------------------------------------+

Of these, only the last is likely correct. We should not raise these warnings elsewhere.

Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Stephen Finucane (stephenfinucane)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)
Changed in python-openstackclient:
status: Confirmed → In Progress
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.