incorrect info returned when show aggregate info

Bug #1538002 reported by hgangwx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

[Summary]
incorrect info returned when show aggregate info

[Topo]
devstack all-in-one node

[Description and expect result]
correct info returned when show aggregate info

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) create an aggregate, availability_zone is not specified:
root@45-59:~# openstack aggregate create agg1
+-------------------+----------------------------+
| Field | Value |
+-------------------+----------------------------+
| availability_zone | None |
| created_at | 2016-01-26T14:23:24.000000 |
| deleted | False |
| deleted_at | None |
| id | 6 |
| name | agg1 |
| updated_at | None |
+-------------------+----------------------------+
root@45-59:~#
root@45-59:~#
root@45-59:~# openstack aggregate list
+----+------+-------------------+
| ID | Name | Availability Zone |
+----+------+-------------------+
| 6 | agg1 | None | >>>>ISSUE, availability_zone is shown as "None"
+----+------+-------------------+
root@45-59:~#

ISSUE: availability_zone can be shown as "-"

2)below is nova cmd for reference:
root@45-59:~# nova aggregate-details agg1
+----+------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+------+-------------------+-------+----------+
| 6 | agg1 | - | | |
+----+------+-------------------+-------+----------+
root@45-59:~#
root@45-59:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
| 6 | agg1 | - |
+----+------+-------------------+
root@45-59:~#

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

bug skimming
------------------
It looks like the python-openstackclient handles empty values different than the python-novalient CLI. As the Nova API returns the values as is and the python-novaclient handles it as expected, I thing the issue (if any) is in the python-openstackclient.

Changed in nova:
status: New → Invalid
Hieu LE (hieulq)
Changed in python-openstackclient:
assignee: nobody → Hieu LE (hieulq)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by Hieu LE (<email address hidden>) on branch: master
Review: https://review.openstack.org/300934

Hieu LE (hieulq)
Changed in python-openstackclient:
assignee: Hieu LE (hieulq) → nobody
Anne Gentle (annegentle)
Changed in python-openstackclient:
status: In Progress → Invalid
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.