The cinder.volume.drivers.vzstorage Module

class PloopDevice(path, snapshot_id=None, read_only=True, execute=<function execute at 0x7f28011bf5f0>)

Bases: object

Setup a ploop device for parallels image

This class is for mounting ploop devices using with statement: with PloopDevice(‘/parallels/my-vm/harddisk.hdd’) as dev_path:

# do something
Parameters:
  • path – A path to parallels harddisk dir
  • snapshot_id – Snapshot id to mount
  • execute – execute helper
class VZStorageDriver(execute=<function execute at 0x7f28011bf5f0>, *args, **kwargs)

Bases: cinder.volume.drivers.remotefs.RemoteFSSnapDriver

Cinder 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(snapshot)
delete_snapshot(snapshot)
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'

Previous topic

The cinder.volume.drivers.vmware.volumeops Module

Next topic

The cinder.volume.drivers.windows.constants Module

Project Source

This Page