Nova volume-attach should also allow user to provide volume name for the input.

Bug #1514576 reported by Sumant Murke
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Wishlist
Unassigned
python-novaclient
Won't Fix
Wishlist
Abhishek Talwar

Bug Description

Nova version 2.32.0

When we want to attach an existing volume to an exiting instance then it accepts only volume uuid to specify for attaching to the instance.

for example

name of the instance : test_vm
name of the volume my-volume

I did :
nova volume-attach test_vm my-volume

Expected result:
it should allow instance to attach the volume.

Actual result:
ERROR (NotFound): Volume my-volume could not be found. (HTTP 404) (Request-ID: req-0ba9225c-cc39-44b6-a85b-758cc2c97e2c)

It should also accept volume name if its unique throughout all the volume names like it allows instance name instead of UUID.

Changed in nova:
assignee: nobody → Sumant Murke (sumant-murke)
Changed in nova:
importance: Undecided → Wishlist
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

The REST API of Nova only accepts UUIDs [1]. The translation from object name to its UUID (like volume name to its UUID) is usually done via the novaclient. That's why I added the python-novaclient as affected project and marked it as invalid for the Nova project.

[1] http://developer.openstack.org/api-ref-compute-v2.1.html#attach

Changed in nova:
status: New → Invalid
Changed in python-novaclient:
assignee: nobody → Anusha rayani (anusha-rayani)
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/249634

Changed in python-novaclient:
status: New → In Progress
Changed in nova:
assignee: Sumant Murke (sumant-murke) → nobody
melanie witt (melwitt)
Changed in python-novaclient:
importance: Undecided → Wishlist
Changed in python-novaclient:
assignee: Anusha rayani (anusha-rayani) → Abhishek Talwar (abhishek-talwar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

Change abandoned by Kevin L. Mitchell (<email address hidden>) on branch: master
Review: https://review.openstack.org/249634
Reason: Not updated since November, no response to review comments.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.openstack.org/310722
Reason: This isn't being worked and I'd -2 it anyway. We're actively trying to remove proxy code from novaclient, and if we did this we'd have to add a proxy call to cinder to get the volume id via the name, and in this case I'm considering it something we're just not going to fix, people should use openstackclient for this if they need the convenience.

Matt Riedemann (mriedem)
Changed in python-novaclient:
status: In Progress → Won't Fix
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.