volume Attached to is incorrect

Bug #1489954 reported by Walt Boring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Terry Howe

Bug Description

After attaching a volume to a server, the volume list shows that the volume is attached to itself, not the server.

(openstack) server add volume 65d9d453-5fd1-4cf9-8832-a4b515f22918 3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51
(openstack) volume list
+--------------------------------------+--------------+-----------+------+---------------------------------------------------------------+
| ID | Display Name | Status | Size | Attached to |
+--------------------------------------+--------------+-----------+------+---------------------------------------------------------------+
| 2e4a799b-e95e-4557-ad3f-025f39306d6a | poo | attaching | 11 | |
| 3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51 | foo2 | in-use | 1 | Attached to 3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51 on /dev/vdc |
| e0acaafc-a77a-4012-81a2-5f2149730f8a | foo | in-use | 1 | Attached to e0acaafc-a77a-4012-81a2-5f2149730f8a on /dev/vdb |
+--------------------------------------+--------------+-----------+------+---------------------------------------------------------------+

Note the ID of the Attached to is the Volume ID, not the server ID.

(openstack) volume show 3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51
+---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| attachments | [{u'server_id': u'65d9d453-5fd1-4cf9-8832-a4b515f22918', u'attachment_id': u'b8c8039a-e842-4230-9470-78c1a251d39d', u'host_name': None, u'volume_id': u'3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51', u'device': u'/dev/vdc', u'id': u'3e55d770-4ee5-4a81-9b3b-cd95c2bb5e51'}] |

Terry Howe (thowe-g)
Changed in python-openstackclient:
assignee: nobody → Terry Howe (thowe-g)
status: New → Confirmed
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/218386

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

Reviewed: https://review.openstack.org/218386
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=14a714f2a28d2f0ae232556c1f8ccd6d4a5b2043
Submitter: Jenkins
Branch: master

commit 14a714f2a28d2f0ae232556c1f8ccd6d4a5b2043
Author: TerryHowe <email address hidden>
Date: Fri Aug 28 10:34:50 2015 -0600

    Volume v2 list does not show server name

    The volume v2 list was using the volume id rather than
    the server id.

    Change-Id: Ibe03d34b5b503af2d00202dabd640f796449cf9a
    Closes-Bug: #1489954

Changed in python-openstackclient:
status: In Progress → Fix Committed
Changed in python-openstackclient:
milestone: none → 1.7.0
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.