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

openstack_eagle at 163.com openstack_eagle at 163.com
Fri Mar 24 04:47:23 UTC 2017


Hi,

In nova/compute/api.py I see
@check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.STOPPED,
                                vm_states.ERROR])
def evacuate(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?



openstack_eagle at 163.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170324/3fd3e26f/attachment.html>


More information about the Openstack mailing list