summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/virt/xenapi/vmops.py5
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"""