Error on detaching a volume with vmwareapi driver when the instance was migrated to same datastore of the volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Radoslav Gerganov |
Bug Description
When vmware relocates a vm with a volume attached, the volume's vmdk goes to the instance datastore. Openstack can handle this without error, but when the same vm is relocated once more to the volume's datastore it raises an error when detaching the volume.
This occurs because when they are in the same datastore, the _relocate_
How to reproduce:
- Attach a volume to an Instance
In Vcenter:
- Migrate the Instance to a datastore
- Migrate the Instance again to the volume's datastore
- Try to detach the volume
A possible fix is attached here.
Changed in nova: | |
importance: | Undecided → Low |
A little change in the patch to catch just the FileNotFoundExc eption.