nova client should let user know which API version it is using

Bug #1517870 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Wishlist
jichenjc

Bug Description

jichen@devstack1:/opt/stack/nova$ git log
commit 4474dce9e6b847a7691fc3f01d0c594061570d73

jichen@devstack1:~$ nova --version
2.34.0
jichen@devstack1:~$ nova version-list
+------+-----------+----------------------+-------------+---------+
| Id | Status | Updated | Min Version | Version |
+------+-----------+----------------------+-------------+---------+
| v2.0 | SUPPORTED | 2011-01-21T11:33:21Z | | |
| v2.1 | CURRENT | 2013-07-23T11:33:21Z | 2.1 | 2.12 |
+------+-----------+----------------------+-------------+---------+

but actually, nova is using v2.6 now

DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.122.239:8774/v2.1/d1c5aa58af6c426492c642eb649017be/servers/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.6" -H "X-Auth-Token: {SHA1}ca664ccd64053b7de69fa7c0a2bee6ad32fda77f"

we should let user know it

jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichenjc (jichenjc)
affects: nova → python-novaclient
Revision history for this message
melanie witt (melwitt) wrote :

I think the output of 'nova version-list' is correctly reporting the version range the server supports and shouldn't be changed. Maybe we could add something to the output of 'nova --version' for novaclient to show what microversion range it supports

Changed in python-novaclient:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
jichenjc (jichenjc) wrote :

I am not sure nova --version is right

how about change to following by adding python client using version 2.6 ??
+------+-----------+----------------------+-------------+---------+
| Id | Status | Updated | Min Version | Lastet Version |
+------+-----------+----------------------+-------------+---------+
| v2.0 | SUPPORTED | 2011-01-21T11:33:21Z | | |
| v2.1 | CURRENT | 2013-07-23T11:33:21Z | 2.1 | 2.12 |
+------+-----------+----------------------+-------------+---------+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/249132

Changed in python-novaclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

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

commit 608aa525f10102239659170b8892df8a7900a0ad
Author: jichenjc <email address hidden>
Date: Sat Nov 21 10:42:13 2015 +0800

    Print current nova default nova API microversion

    nova client only print server side min and max version, but not print
    client side min and max version.

    Change-Id: Ic48d7eff3ae84bf7897e97a2eff1302a7c64bc2a
    Closes-Bug: 1517870

Changed in python-novaclient:
status: In Progress → Fix Committed
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-novaclient 3.0.0

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

Changed in python-novaclient:
status: Fix Committed → Fix Released
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.