On 03/23/2017 10:47 PM, openstack_ea...@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

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to