Hypervisor-list doesn't show all the attributes of the server response

Bug #1376664 reported by Haiwei Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
Haiwei Xu

Bug Description

Currently hypervisor-list only shows 'ID' and 'Hypervisor hostname', but in fact nova server response also contains 'state' and 'status'
attributes, it's better to show all the attributes.

REQ: curl -i 'http://192.168.11.81:8774/v2/ce6a8259fba443e1a314a92976ba3b4e/os-hypervisors' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: demo" -H "X-Auth-Token: {SHA1}4568a4ce1b391e53a7e9ca01d9193c49481a2702"
RESP: [200] {'date': 'Thu, 02 Oct 2014 10:08:45 GMT', 'content-length': '97', 'content-type': 'application/json', 'x-compute-request-id': 'req-9393a5a9-b3dc-40cc-9f66-34968e462a2a'}
RESP BODY: {"hypervisors": [{"status": "enabled", "state": "up", "id": 1, "hypervisor_hostname": "xu-dev"}]}

+----+---------------------+
| ID | Hypervisor hostname |
+----+---------------------+
| 1 | xu-dev |
+----+---------------------+

Haiwei Xu (xu-haiwei)
Changed in python-novaclient:
assignee: nobody → Haiwei Xu (xu-haiwei)
Changed in python-novaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

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

commit 9d5164aceea3a922a3df1bdac1310a48ed50f3e9
Author: Haiwei Xu <email address hidden>
Date: Thu Oct 2 19:24:37 2014 +0900

    Show 'state' and 'status' in hypervisor-list

    Currently hypervisor-list only shows 'ID' and 'Hypervisor hostname',
    but in fact nova server response also contains 'state' and 'status'
    attributes, it's better to show all the attributes.

    Change-Id: I97cd18a8451dc515c5fb19841f11d0e85bd0b484
    Closes-Bug: #1376664

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.21.0
Michael Still (mikal)
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.