diff options
| author | Cerberus <matt.dietz@rackspace.com> | 2011-02-14 14:25:00 -0600 |
|---|---|---|
| committer | Cerberus <matt.dietz@rackspace.com> | 2011-02-14 14:25:00 -0600 |
| commit | fc8394a80b28f94561aa9ebf94c067ce2d1efd3b (patch) | |
| tree | ce39f10a5629c1e166e6241d6fe94745920843ff | |
| parent | 9f22390532332b955cb8d78ebfd8cf9670a63ac8 (diff) | |
Snapshot correctly
| -rw-r--r-- | nova/virt/xenapi/vmops.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index fc5cd84e1..a327f1d36 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -22,6 +22,7 @@ Management class for VM-related functions (spawn, reboot, etc). import json import M2Crypto import os +import pickle import subprocess import tempfile import uuid @@ -262,7 +263,7 @@ class VMOps(object): {'params': pickle.dumps(params)}) # Now power down the instance and transfer the COW VHD - self._shutdown(instance, method='clean') + self._shutdown(instance, snapshot.vm_ref, method='clean') vdi_ref, vm_vdi_rec = get_vdi_for_vm_safely(session, vm_ref) params = {'host':dest, 'vdi_uuid': vm_vdi_rec['uuid'], |
