diff options
| author | matt.dietz@rackspace.com <> | 2011-03-16 17:09:13 +0000 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-03-16 17:09:13 +0000 |
| commit | d99a8d48cf38eb6be01587f9b377f48ff6cd88a2 (patch) | |
| tree | 65a91eeb521fc6d6d569c59d91efa2177b648f26 | |
| parent | dee86f53b0d1dccbc69d354b66ca7a4767e81d43 (diff) | |
| download | nova-d99a8d48cf38eb6be01587f9b377f48ff6cd88a2.tar.gz nova-d99a8d48cf38eb6be01587f9b377f48ff6cd88a2.tar.xz nova-d99a8d48cf38eb6be01587f9b377f48ff6cd88a2.zip | |
Logging statements
| -rw-r--r-- | nova/virt/xenapi/vmops.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 483b0cb82..c292822ca 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -363,13 +363,16 @@ class VMOps(object): def resize_instance(self, instance, vdi_uuid): """Resize a running instance by changing it's RAM and disk size """ vm_ref = VMHelper.lookup(self._session, instance.name) - vdi_ref = self._session.call_xenapi('VDI.get_by_uuid', vdi_uuid) new_disk_size = instance.local_gb * 1024 + LOG.debug(_("Resizing VDI %s for instance %s. Expanding to %d megs") % (vdi_uuid, + instance.name, new_disk_size)) + vdi_ref = self._session.call_xenapi('VDI.get_by_uuid', vdi_uuid) #TODO(mdietz): this will need to be adjusted for swap later task = self._session.call_xenapi('VDI.resize_online', vdi_ref, new_disk_size) self._session.wait_for_task(task, instance.id) + LOG.debug(_("Resize instance %s complete") % (instance.name)) def reboot(self, instance): """Reboot VM instance""" |
