migrate call causes the VM to "move" back to the same host it came from
Bug #962442 reported by
John Garbutt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This might be a user error, due to my choice of scheduler, but it not what I expected to happen.
Repro steps:
* use dev stack defaults on XenServer
* two XenServer hosts in the cloud
* call migrate on a VM
Expected:
* VM moves to another host, one that currently has no VMs on it
Actual:
* VM migrates back to the same server
* (I checked VMs got onto that other server once the first one had filled up)
* you need seem to need to call resize-confirm before it goes back to Active
To facilitate one server deploys, devstack sets the following flag:
1605:add_nova_opt "allow_ resize_ to_same_ host=True"
Which allows resize to the same host. If you want migrate/resize to always go to a new host, set that flag to False. It should use the scheduler to pick a new host, so depending on your scheduler and weighting options, that could be the most empty host or the most full host. The resize-confirm is expected.