From 5d8740932a42ce15c4a84764b9367ab37aa41a6e Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Wed, 18 Jul 2012 15:47:11 -0400 Subject: Make snapshot work for stopped VMs. Fix bug 1023682. Currently VM state is updated to ACTIVE no matter what during snapshot. But VM should remain STOPPED if a snapshot is taken on a stopped VM, i.e. remain unchanged. VM state should not be changed during snapshot. Change-Id: I5578e6064e23a8ff6f4019116b5bcdd12529360c --- nova/compute/manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nova') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index b0dc50f5a..af113e4db 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1011,8 +1011,7 @@ class ComputeManager(manager.SchedulerDependentManager): current_power_state = self._get_power_state(context, instance_ref) self._instance_update(context, instance_ref['uuid'], - power_state=current_power_state, - vm_state=vm_states.ACTIVE) + power_state=current_power_state) LOG.audit(_('instance snapshotting'), context=context, instance_uuid=instance_uuid) -- cgit