stopped instance resize (migrate_disk_and_power_off) fails, vm_state changed to active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Low
|
Unassigned |
Bug Description
This is based on code inspection, but I was wondering what would happen if a user tried to resize a baremetal instance, which isn't supported by the ironic virt driver.
It is possible to resize a stopped instance. If a user tried to resize a stopped baremetal instance, I think what would happen is they'd get to the driver.
Which would raise NotImplementedE
With the _error_
Even though the instance is still stopped on the hypervisor (ironic in this case).
This is low priority since (1) baremetal server users likely know not to try and resize by now and/or (2) baremetal cloud providers probably disable resize by policy in the API, and/or (3) the _sync_power_states periodic task in the compute service would eventually see that the power state for the instance from ironic does not match the 'active' vm_state and stop the instance to sync up the nova database.
tags: | added: low-hanging-fruit |
Related: https:/ /review. openstack. org/#/c/ 449155/ 10/specs/ rocky/approved/ ironic- instance- switchover. rst@207