Impossible to migrate affinity instances
Bug #1890065 reported by
Sam Morrison
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
We have a hypervisor that needs to go down for maintenance. There are 2 instances on the host within a server group with affinity.
It seems to be impossible to live migrate them both to a different host.
Looks like there used to be a force argument to live migration but this was removed in microversion 2.68
"Remove support for forced live migration and evacuate server actions."
Doesn't mention why this was removed sadly.
Is there a way to temporarily break the affinity contract for maintenance?
To post a comment you must log in.
With latest microversion you cannot ignore the original scheduler hints so the affinity policy of the server group will be applied during the move operations.
Old microversions are still available.
Also nova does not support removing servers from server groups. One loophole to this is that you can delete the whole server group even if there are members in it. This will allow you to do the migration but it also means you lost the affinity for these servers in the future. E.g. there is no way, via the API, to restore the deleted group or add the running servers to a new group.