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
This commit is contained in:
@@ -82,6 +82,7 @@ class XenAPIVolumeTestCase(test.TestCase):
|
|||||||
'image_ref': 1,
|
'image_ref': 1,
|
||||||
'kernel_id': 2,
|
'kernel_id': 2,
|
||||||
'ramdisk_id': 3,
|
'ramdisk_id': 3,
|
||||||
|
'local_gb': 20,
|
||||||
'instance_type_id': '3', # m1.large
|
'instance_type_id': '3', # m1.large
|
||||||
'os_type': 'linux',
|
'os_type': 'linux',
|
||||||
'architecture': 'x86-64'}
|
'architecture': 'x86-64'}
|
||||||
@@ -375,6 +376,7 @@ class XenAPIVMTestCase(test.TestCase):
|
|||||||
'image_ref': image_ref,
|
'image_ref': image_ref,
|
||||||
'kernel_id': kernel_id,
|
'kernel_id': kernel_id,
|
||||||
'ramdisk_id': ramdisk_id,
|
'ramdisk_id': ramdisk_id,
|
||||||
|
'local_gb': 20,
|
||||||
'instance_type_id': instance_type_id,
|
'instance_type_id': instance_type_id,
|
||||||
'os_type': os_type,
|
'os_type': os_type,
|
||||||
'hostname': hostname,
|
'hostname': hostname,
|
||||||
@@ -651,6 +653,7 @@ class XenAPIVMTestCase(test.TestCase):
|
|||||||
'image_ref': 1,
|
'image_ref': 1,
|
||||||
'kernel_id': 2,
|
'kernel_id': 2,
|
||||||
'ramdisk_id': 3,
|
'ramdisk_id': 3,
|
||||||
|
'local_gb': 20,
|
||||||
'instance_type_id': '3', # m1.large
|
'instance_type_id': '3', # m1.large
|
||||||
'os_type': 'linux',
|
'os_type': 'linux',
|
||||||
'architecture': 'x86-64'}
|
'architecture': 'x86-64'}
|
||||||
|
|||||||
@@ -282,9 +282,6 @@ class FakeSessionForMigrationTests(fake.SessionBase):
|
|||||||
def VDI_get_by_uuid(self, *args):
|
def VDI_get_by_uuid(self, *args):
|
||||||
return 'hurr'
|
return 'hurr'
|
||||||
|
|
||||||
def VDI_resize_online(self, *args):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def VM_start(self, _1, ref, _2, _3):
|
def VM_start(self, _1, ref, _2, _3):
|
||||||
vm = fake.get_record('VM', ref)
|
vm = fake.get_record('VM', ref)
|
||||||
if vm['power_state'] != 'Halted':
|
if vm['power_state'] != 'Halted':
|
||||||
|
|||||||
Reference in New Issue
Block a user