mox.StubOutWithMock(image_utils, 'convert_image')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
+ mox.StubOutWithMock(drv, '_set_rw_permissions_for_all')
dest_volume = self._simple_volume(
'c1073000-0000-0000-0000-0000000c1073')
image_utils.convert_image(src_vol_path, dest_vol_path, 'raw')
+ drv._set_rw_permissions_for_all(dest_vol_path)
+
mox.ReplayAll()
drv._copy_volume_from_snapshot(snapshot, dest_volume, size)
path_to_new_vol,
out_format)
+ self._set_rw_permissions_for_all(path_to_new_vol)
+
@utils.synchronized('glusterfs', external=False)
def delete_volume(self, volume):
"""Deletes a logical volume."""