The cinder.volume.drivers.vmware.fcd Module

The cinder.volume.drivers.vmware.fcd Module

VMware VStorageObject driver

Volume driver based on VMware VStorageObject aka First Class Disk (FCD). This driver requires a minimum vCenter version of 6.5.

class VMwareVStorageObjectDriver(*args, **kwargs)

Bases: cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver

Volume driver based on VMware VStorageObject

CI_WIKI_NAME = 'VMware_CI'
MIN_SUPPORTED_VC_VERSION = '6.5'
STORAGE_TYPE = 'vstorageobject'
VERSION = '1.0.0'
copy_image_to_volume(context, volume, image_service, image_id)

Fetch the image from image_service and write it to the volume.

Parameters:
  • context – Security/policy info for the request.
  • volume – The volume to create.
  • image_service – The image service to use.
  • image_id – The image identifier.
Returns:

Model updates.

copy_volume_to_image(context, volume, image_service, image_meta)

Copy the volume to the specified image.

Parameters:
  • context – Security/policy info for the request.
  • volume – The volume to copy.
  • image_service – The image service to use.
  • image_meta – Information about the image.
Returns:

Model updates.

create_cloned_volume(volume, src_vref)

Creates a clone of the specified volume.

Parameters:
  • volume – New Volume object
  • src_vref – Source Volume object
create_snapshot(snapshot)

Creates a snapshot.

Parameters:snapshot – Information for the snapshot to be created.
create_volume(volume)

Create a new volume on the backend.

Parameters:volume – Volume object containing specifics to create.
Returns:(Optional) dict of database updates for the new volume.
create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

Parameters:
  • volume – The volume to be created.
  • snapshot – The snapshot from which to create the volume.
Returns:

A dict of database updates for the new volume.

delete_snapshot(snapshot)

Deletes a snapshot.

Parameters:snapshot – The snapshot to delete.
delete_volume(volume)

Delete a volume from the backend.

Parameters:volume – The volume to delete.
do_setup(context)

Any initialization the volume driver needs to do while starting.

Parameters:context – The admin context.
extend_volume(volume, new_size)

Extend the size of a volume.

Parameters:
  • volume – The volume to extend.
  • new_size – The new desired size of the volume.
get_volume_stats(refresh=False)

Collects volume backend stats.

Parameters:refresh – Whether to discard any cached values and force a full refresh of stats.
Returns:dict of appropriate values.
initialize_connection(volume, connector, initiator_data=None)

Allow connection to connector and return connection info.

Parameters:
  • volume – The volume to be attached.
  • connector – Dictionary containing information about what is being connected to.
  • initiator_data – (Optional) A dictionary of driver_initiator_data objects with key-value pairs that have been saved for this initiator by a driver in previous initialize_connection calls.
Returns:

A dictionary of connection information.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.