Nova volume-attach should also allow user to provide volume name for the input.
Bug #1514576 reported by
Sumant Murke
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-
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 |
Changed in python-novaclient: | |
assignee: | nobody → Anusha rayani (anusha-rayani) |
Changed in nova: | |
assignee: | Sumant Murke (sumant-murke) → nobody |
Changed in python-novaclient: | |
importance: | Undecided → Wishlist |
Changed in python-novaclient: | |
assignee: | Anusha rayani (anusha-rayani) → Abhishek Talwar (abhishek-talwar) |
Changed in python-novaclient: | |
status: | In Progress → Won't Fix |
To post a comment you must log in.
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