nova volume-show commands does not support volume name

Bug #1430415 reported by Carl Bader
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Anand Shanmugam

Bug Description

Issue: nova volume-show <volume> {name} does not work only accepts ID of volume.

display results for command.

± nova volume-list
+---------------------------------------------------------------+--------------+----------------------+-------+--------------------+-------------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+---------------------------------------------------------------+--------------+----------------------+-------+--------------------+-------------------+
| fcf3b226-1026-4342-9367-9f0bd2dd6233 | available | test3a1 | 1 | dot3a | |
+---------------------------------------------------------------+--------------+----------------------+-------+---------------------+------------------+
± nova volume-show test3a1
ERROR (CommandError): No volume with a name or ID of 'test3a1' exists.
± nova volume-show fcf3b226-1026-4342-9367-9f0bd2dd6233
+----------------------------------------------------------+------------------------------------------------------------------+
| Property | Value |
+----------------------------------------------------------+------------------------------------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-03-10T15:48:19.000000 |
| display_description | - |
| display_name | test3a1 |
| encrypted | False |
| id | fcf3b226-1026-4342-9367-9f0bd2dd6233 |
| metadata | {} |
| os-vol-host-attr:host | carl-stack2@dot3a#cb-eos03-r5 |
| os-vol-mig-status-attr:migstat | - |
| os-vol-mig-status-attr:name_id | - |
| os-vol-tenant-attr:tenant_id | 390e20e677434dd4b84ab3e26311de0b |
| os-volume-replication:driver_data | - |
| os-volume-replication:extended_status | - |
| size | 1 |
| snapshot_id | - |
| source_volid | - |
| status | available |
| volume_type | dot3a |
+------------------------------------------------------------+----------------------------------------------------------------+

Changed in nova:
assignee: nobody → Anand Shanmugam (anand1712)
Changed in nova:
importance: Undecided → Low
Changed in nova:
status: New → Confirmed
Revision history for this message
Anand Shanmugam (anand1712) wrote :

The python nova client uses cinder api's directly for getting the volume information.so the bug is actually in the nova-client.

So moving to python-novaclient.

affects: nova → python-novaclient
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/163479

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/163479
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=41ef74971eec9d80438435c16afe302eacad7852
Submitter: Jenkins
Branch: master

commit 41ef74971eec9d80438435c16afe302eacad7852
Author: Anand Shanmugam <email address hidden>
Date: Wed Mar 11 20:48:46 2015 +0530

    nova client cinder query param changed to display_name

    nova client is not able to show the list of volumes when
    querying by name.This is because cinder api accepts only
    display_name as query parameter and when qeried with 'name'
    parameter returns a empty list

    Change-Id: Ie4ffc275d1754052d9e239d8457baf6f7fd53b83
    Closes-Bug: #1430415

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.23.0
status: Fix Committed → Fix Released
Revision history for this message
Vincent Legoll (vincent-legoll) wrote :

I have the exact same behavior with python-openstackclient, should I log a new bug or just stay here ?

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.