stable/xena unable to attach multi-attach volume via "openstack nova add volume"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Dear all
I have encountered an error with Openstack Heat but I think this is something that is also affecting (or even caused by) a possible issue with nova.
Here my post for HEAT team
https:/
I have installed stable/xena using openstack-ansible and I am operating several test vms in my ecosystem before to move to a production stage. Currently I am using Cinder integrated with Ceph (if you think it may be of any interest).
Just to summarize a possible test procedure (for convenience I simply use CLI but with Horizon there is another workaround that I presented in the storyboard's post above):
- create a multi-attach volume
- create 2 instances that potentially want to share the volume
- attach the volume to the first instance [it will work great!]
- attache the volume to a second instance... you should receive the following error:
openstack server add volume <serverID> <volumeID> --device /dev/vdb
Multiattach volumes are only supported starting with compute API version 2.60. (HTTP 400) (Request-ID: req-5a60e72a-
BUT
If I use the following command on the second attach:
nova volume-attach <serverID> <volumeID> auto
+------
| Property | Value |
+------
| delete_
| device | /dev/vdb |
| id | c292cdd5-
| serverId | 7b6a0651-
| tag | - |
| volumeId | c292cdd5-
+------
it works properly!
Is it expected because of some implementation task or is it a potential bug?
Actually I am able to create and use multi-attach volumes but only by making manually the attachment with the commands reported above.
Thanks for your kind attention and looking forward to hear by you.
Best regards,
Davide
You probably need to pass the api version with --os-compute- api-version 2.60 to the openstack server add volume <serverID> <volumeID> --device /dev/vdb command.
Heat is probably using on older microversion as well. Please have a look if you can supply the API to use.
However, from a nova perspective, it seems not to be a bug as it works with the nova client.
Feel free to comment and change this bug to new again if you disagree or want to provide more info.