The cinder.volume.drivers.vzstorage Module¶
-
class
PloopDevice(path, snapshot_id=None, read_only=True, execute=<function execute>)¶ Bases:
objectSetup a ploop device for ploop image
This class is for mounting ploop devices using with statement: with PloopDevice(‘/vzt/private/my-ct/harddisk.hdd’) as dev_path:
# do somethingParameters: - path – A path to ploop harddisk dir
- snapshot_id – Snapshot id to mount
- execute – execute helper
-
class
VZStorageDriver(execute=<function execute>, *args, **kwargs)¶ Bases:
cinder.volume.drivers.remotefs.RemoteFSSnapDriverCinder driver for Virtuozzo Storage.
Creates volumes as files on the mounted vzstorage cluster.
- Version history:
- 1.0 - Initial driver.
-
CI_WIKI_NAME= ‘Virtuozzo_Storage_CI’¶
-
SHARE_FORMAT_REGEX= ‘(?:(\S+):\/)?([a-zA-Z0-9_-]+)(?::(\S+))?’¶
-
VERSION= ‘1.0’¶
-
choose_volume_format(volume)¶
-
copy_image_to_volume(context, volume, image_service, image_id)¶ Fetch the image from image_service and write it to the volume.
-
create_cloned_volume(inst, *args, **kwargs)¶
-
create_snapshot(inst, *args, **kwargs)¶
-
delete_snapshot(inst, *args, **kwargs)¶
-
delete_volume(inst, *args, **kwargs)¶
-
do_setup(context)¶ Any initialization the volume driver does while starting.
-
driver_prefix= ‘vzstorage’¶
-
driver_volume_type= ‘vzstorage’¶
-
extend_volume(inst, *args, **kwargs)¶
-
get_volume_format(volume)¶
-
initialize_connection(inst, *args, **kwargs)¶
-
volume_backend_name= ‘Virtuozzo_Storage’¶