Bug 1034762

Summary: openstack-nova: the list of attached volumes to an instance is hard to read
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: python-novaclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED UPSTREAM QA Contact: Ami Jeain <ajeain>
Severity: low Docs Contact:
Priority: low    
Version: 4.0CC: hateya, jruzicka, ndipanov, xqueralt, yeylon, yrabl
Target Milestone: ---   
Target Release: 4.0   
Hardware: x86_64   
OS: All   
URL: https://bugs.launchpad.net/nova/+bug/1255094
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-26 14:17:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yogev Rabl 2013-11-26 13:24:50 UTC
Description of problem:
The implementation of the the RFE Bug 978519 is problematic: 

The list of the volumes attached is presented in the 'nova show' output as a list of dictionaries, like so: 

os-extended-volumes:volumes_attached | [{u'id': u'cfaba0b7-a578-48f3-8f2b-53b8c7f6447b'}| 

The "u'id" key is irrelevant to the administrator and it is unnecessary. 
When there are more than 2 volumes attached to the instance the display is unreadable: 

| os-extended-volumes:volumes_attached | [{u'id': u'cfaba0b7-a578-48f3-8f2b-53b8c7f6447b'}, {u'id': u'07fd2432-3ae8-402e-acfd-fb2146942f99'}, {u'id': u'37683c4d-0bbd-4eb7-900a-cb7596375221'}, {u'id': u'554c605a-7c9b-4192-af42-3be5daf3c203'}, {u'id': u'f01fa946-a6e5-4581-ac18-f482f454794e'}] |


Version-Release number of selected component (if applicable):
openstack-nova-common-2013.2-5.el6ost.noarch
openstack-nova-network-2013.2-5.el6ost.noarch
python-novaclient-2.15.0-1.el6ost.noarch
python-nova-2013.2-5.el6ost.noarch
openstack-nova-api-2013.2-5.el6ost.noarch
openstack-nova-console-2013.2-5.el6ost.noarch
openstack-nova-compute-2013.2-5.el6ost.noarch
openstack-nova-conductor-2013.2-5.el6ost.noarch
openstack-nova-novncproxy-2013.2-5.el6ost.noarch
openstack-nova-scheduler-2013.2-5.el6ost.noarch
openstack-nova-cert-2013.2-5.el6ost.noarch

Red Hat Enterprise Linux Server release 6.5

How reproducible:
everytime

Steps to Reproduce:
1. attach volumes to an instance
2. run nova show <instance name / uid>
3.

Actual results:


Expected results:
a clean list of the uid's of the volumes attached to the instance. 

Additional info:

Comment 1 Xavier Queralt 2013-11-26 13:45:42 UTC
The dict containing the volume ID's should be parsed and presented properly by the nova client, not in nova.

Comment 2 Jakub Ruzicka 2013-11-26 13:54:10 UTC
This is an upstream wishlisth bug. Please report upstream and link the External Tracker.

https://bugs.launchpad.net/python-novaclient/+filebug

Comment 4 Jakub Ruzicka 2013-11-26 14:16:27 UTC
Oops, I missed the upstream bug in URL. Added as External Tracker.

I think reporting upstream is sufficient in this case. The fix will be included in next client release once it's merged.

As a side note, please don't reference downstream bugs in upstream bug tracker.

Comment 5 Yogev Rabl 2013-11-27 10:37:38 UTC
I've removed the needinfo