Steps to reproduce:
1. Create instance
2. Shutdown instance
3. Perform resize
4. Try to start instance.
Expected behaviour: instance starts in resize_confirm state
Actual behaviour: ERROR (Conflict): Instance d0e9bc6b-0544-410f-ba96-b0b78ce18828 in vm_state resized. Cannot start while the instance is in this state. (HTTP 409)
Rationale:
If tenant is resizing running instance, he can log into instance after reboot and see if resize was successful or not. If tenant stopped instance before resize, he has no ability to check if instance resized successfully or not before confirming migration.
Proposed solution: Allow to start instance in the state 'resize_confirm + stopped'.
(Btw: I'd like to allow to stop/start instances in resize_confirm state, because tenant may wish to reboot/stop/start instance few times before deciding that migration was successful).
I think we should allow this operation /github. com/openstack/ nova/blob/ master/ nova/compute/ manager. py#L3734
actually, we power_on the VM if the old instance is not stopped
https:/
but if it's poweroff by user then we won't have chance to power on it again?