diff options
| author | Aaron Lee <aaron.lee@rackspace.com> | 2011-09-22 17:07:27 -0500 |
|---|---|---|
| committer | Aaron Lee <aaron.lee@rackspace.com> | 2011-09-29 11:08:35 -0500 |
| commit | 2dd0445dd60e5f0e845c49adbfb81acbebfc3ea8 (patch) | |
| tree | de33426d3579f9e3ab342c91be7fda48b7ec6cdf /nova/virt | |
| parent | ef22c0054ccb846dd7e81ba35f7e9c2b533d5ff7 (diff) | |
bug lp845714
Kind of fixes it, this calls resize on the instance. The space will be
available, but the partition won't be resized to use this space.
Running fdisk -l will show the additional space(after a discussion here
I was told this solution was best for the moment).
Adding myself to Authors
Change-Id: Ice9b12b64b266bd291e7c689114b1172e317e144
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/xenapi/fake.py | 6 | ||||
| -rw-r--r-- | nova/virt/xenapi/vmops.py | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/nova/virt/xenapi/fake.py b/nova/virt/xenapi/fake.py index 97dfd9fa9..475ed543c 100644 --- a/nova/virt/xenapi/fake.py +++ b/nova/virt/xenapi/fake.py @@ -378,6 +378,12 @@ class SessionBase(object): def host_call_plugin(self, *args): return 'herp' + def VDI_resize_online(self, *args): + return 'derp' + + def VM_clean_reboot(self, *args): + return 'burp' + def network_get_all_records_where(self, _1, filter): return self.xenapi.network.get_all_records() diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 4b1d22bac..aab2a1119 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -165,6 +165,11 @@ class VMOps(object): instance, instance.image_ref, instance.user_id, instance.project_id, disk_image_type) + + for vdi in vdis: + if vdi["vdi_type"] == "os": + self.resize_instance(instance, vdi["vdi_uuid"]) + return vdis def spawn(self, context, instance, network_info): |
