volume = self.testData.test_volume.copy()
volume['id'] = '2'
volume = EMCVNXCLIDriverTestData.convert_volume(volume)
+ # Make sure this size is used
+ volume.size = 10
self.driver.create_cloned_volume(volume, self.testData.test_volume)
tmp_snap = 'tmp-snap-' + volume.id
expect_cmd = [
*self.testData.SNAP_ATTACH_CMD(
name='volume-2', snapName=tmp_snap)),
mock.call(*self.testData.LUN_CREATION_CMD(
- build_migration_dest_name('volume-2'), 1,
+ build_migration_dest_name('volume-2'), 10,
'unit_test_pool', None, None)),
mock.call(*self.testData.LUN_PROPERTY_ALL_CMD(
build_migration_dest_name('volume-2')), poll=False),
self._volume_creation_check(volume)
base_lun_name = self._get_base_lun_name(src_vref)
source_lun_id = self.get_lun_id(src_vref)
- volume_size = src_vref['size']
+ volume_size = volume['size']
source_volume_name = src_vref['name']
consistencygroup_id = src_vref['consistencygroup_id']
cgsnapshot_name = None