Can't run nova image-list after microversion 2.35

Bug #1650617 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Medium
jichenjc

Bug Description

This change made image-meta, image-show and image-delete commands fallback to 2.35 so they'd still work:

https://review.openstack.org/#/c/392523/6/novaclient/v2/shell.py

But it missed image-list, so you get this when running image-list on latest novaclient:

stack@filters:~$ nova image-list
WARNING: Command image-list is deprecated and will be removed after Nova 15.0.0 is released. Use python-glanceclient or openstackclient instead
ERROR (VersionNotFoundForAPIMethod): API version 'API Version Major: 2, Minor: 39' is not supported on 'list' method.

Things don't work unless you manually drop back to 2.35:

stack@filters:~$ nova --os-compute-api-version 2.35 image-list
WARNING: Command image-list is deprecated and will be removed after Nova 15.0.0 is released. Use python-glanceclient or openstackclient instead
+--------------------------------------+---------------------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------------------+--------+--------+
| 70cdb1ba-2630-497d-8823-04cf8c4761e9 | cirros-0.3.4-x86_64-uec | ACTIVE | |
| c1b8f5fe-9c07-45bd-9034-11eacb694390 | cirros-0.3.4-x86_64-uec-kernel | ACTIVE | |
| 80494f5e-4720-42e9-b6d9-d9f00364a25c | cirros-0.3.4-x86_64-uec-ramdisk | ACTIVE | |
+--------------------------------------+---------------------------------+--------+--------+

Matt Riedemann (mriedem)
Changed in python-novaclient:
status: New → Triaged
jichenjc (jichenjc)
Changed in python-novaclient:
assignee: nobody → jichenjc (jichenjc)
Changed in python-novaclient:
status: Triaged → In Progress
Revision history for this message
jichenjc (jichenjc) wrote :

https://review.openstack.org/411783 is submitted, sorry for miss this during original bug fix

Matt Riedemann (mriedem)
Changed in python-novaclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/411783
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=ca2fc77b43ea3fef20e9a15e09b4fec6a95b2573
Submitter: Jenkins
Branch: master

commit ca2fc77b43ea3fef20e9a15e09b4fec6a95b2573
Author: jichenjc <email address hidden>
Date: Sun Dec 11 21:18:28 2016 +0800

    Add version pin for image list function

    image functions deprecated after v2.35 but we didn't pin the
    version for them, so when use 2.37 by default won't work.

    https://review.openstack.org/#/c/392523/ fixed others but
    unfortunately list function is missing

    test_readonly_nova.py was removed as it's only for 2.35 check
    while through this patch, >2.35 can be used

    Change-Id: Ia1157dcb68971c5f64f7ab068fc647f25cd265e4
    Related-Bug: 1638506
    Closes-Bug: 1650617

Changed in python-novaclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-novaclient 7.0.0

This issue was fixed in the openstack/python-novaclient 7.0.0 release.

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.