[Openstack] [Nova] Why only evacuate vm with specific vm_states (ACTIVE, STOPPED, ERROR)

Chris Friesen chris.friesen at windriver.com
Tue Mar 28 20:39:31 UTC 2017


On 03/23/2017 10:47 PM, openstack_eagle at 163.com wrote:
> Hi,
>
> In nova/compute/api.py I see
>
> @check_instance_state(vm_state=[vm_states.ACTIVE,vm_states.STOPPED,
>                                  vm_states.ERROR])
> defevacuate(self,context,instance,host,on_shared_storage,
>               admin_password=None):
>
> Does anyone know the reason for only evacuate ACTIVE,STOPPED,ERROR vms?
> I find the error state were added due to
> https://bugs.launchpad.net/nova/+bug/1298061.
> Can we alos evacuate vm in state like suspend or others?

If it's in a suspend state and the compute node dies, you can always manually 
put it into an ERROR state (using "nova reset-state") and then evacuate it.

Chris




More information about the Openstack mailing list