diff options
| author | Rafi Khardalian <rafi@metacloud.com> | 2013-01-18 06:23:02 +0000 |
|---|---|---|
| committer | Rafi Khardalian <rafi@metacloud.com> | 2013-01-21 21:20:55 +0000 |
| commit | c538024fddc5994afe13f41817b9fe0b8e8f3fdd (patch) | |
| tree | 9233c276c04124b9e55fadf48e43ff8ee0d0becb /nova/compute | |
| parent | 341d5b5e33d8e4944f8d79460606fc1dd4b9ef10 (diff) | |
Allow snapshots of paused and suspended instances
Fixes bug 1100556
Remove the restriction in the API of snapshotting instances which
are in paused or suspended states and update the libvirt driver
to deal with this accordingly.
Other drivers may need to be updated accordingly.
Change-Id: Iabeb44f843c3c04f767c4103038fcf6c52966ff3
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 4b15a3e27..1ff0365d4 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -1370,7 +1370,8 @@ class API(base.Base): return image_meta @wrap_check_policy - @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.STOPPED]) + @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.STOPPED, + vm_states.PAUSED, vm_states.SUSPENDED]) def snapshot(self, context, instance, name, extra_properties=None, image_id=None): """Snapshot the given instance. |
