nova volume-attach <vmid> <volumeid> auto returns always /dev/sdb on Hyper-V
Bug #1153842 reported by
Alessandro Pilotti
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned | ||
compute-hyperv |
New
|
Undecided
|
Unassigned |
Bug Description
To reproduce the issue it's enough to attach two volumes to a VM without providing an explicit mount point.
cinder create 1
cinder create 1
nova boot ... vm1
nova volume-attach vmid <volumeid1> auto
nova volume-attach vmid <volumeid2> auto
As a result:
1) When the machine is deleted only one of the volumes becomes available again on Cinder, the second one figures as still attached.
2) Live migration fails as only one volume is reported in the "block_device_info" dict.
More inconsistent behaviours can happen, for example during cold migration / resize.
Workaround:
Always provide a mount point e.g.:
nova volume-attach vmid <volumeid1> /dev/sdb
nova volume-attach vmid <volumeid2> /dev/sdc
description: | updated |
Changed in nova: | |
assignee: | nobody → Alessandro Pilotti (alexpilotti) |
tags: | added: hyper-v |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Alessandro Pilotti (alexpilotti) → nobody |
Changed in nova: | |
assignee: | nobody → Anseela M M (anseela-m00) |
To post a comment you must log in.
Seems like the possibility of data loss would make this higher than medium. No idea if it is still true with Nova/Hyper-V today. Maybe Alessandro could comment on the possibility of this still happening.