BFV VM may be unexpectedly moved to different AZ
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
In cases when:
- each availability zone has a separate storage cluster(
and
- there is no default_
VM may be unexpectedly moved to different AZ.
When a VM is created from pre-existing volume, nova places the specific availability zone in request_specs which prevents a VM from being moved to different AZ during resize/migrate[1]. In this case, everything works fine.
Unfortunately, problems start in the following cases:
a) VM is created with --boot-from-volume argument which dynamically creates volume for the VM
b) VM has only ephemeral volume
Lets focus on case a) because option b) may be not working "by design".
_get_volume_
As a result, request_specs contains '"availability_
It's not easy to fix because:
- nova API is not aware of the designated AZ at the time of placing request_specs in DB
- looking at schedule_
Unfortunately, at this point I don't see any easy way to fix this issue.
[1] https:/
[2] https:/
[3] https:/