The cinder.volume.drivers.datacore.driver Module

The cinder.volume.drivers.datacore.driver Module

Base Driver for DataCore SANsymphony storage array.

class DataCoreVolumeDriver(*args, **kwargs)

Bases: cinder.volume.driver.BaseVD

DataCore SANsymphony base volume driver.

AWAIT_DISK_ONLINE_INTERVAL = 10
AWAIT_SNAPSHOT_ONLINE_INITIAL_DELAY = 5
AWAIT_SNAPSHOT_ONLINE_INTERVAL = 10
DATACORE_DISK_POOLS_KEY = 'datacore:disk_pools'
DATACORE_DISK_TYPE_KEY = 'datacore:disk_type'
DATACORE_MIRRORED_DISK = 'mirrored'
DATACORE_SINGLE_DISK = 'single'
DATACORE_STORAGE_PROFILE_KEY = 'datacore:storage_profile'
STORAGE_PROTOCOL = 'N/A'
VALID_VOLUME_TYPE_KEYS = ('datacore:disk_type', 'datacore:storage_profile', 'datacore:disk_pools')
check_for_setup_error()
create_cloned_volume(volume, src_vref)

Creates volume clone.

Parameters:
  • volume – New Volume object
  • src_vref – Volume object that must be cloned
Returns:

Dictionary of changes to the volume object to be persisted

create_export(context, volume, connector)
create_snapshot(snapshot)

Creates a snapshot.

Parameters:snapshot – Snapshot object
Returns:Dictionary of changes to the snapshot object to be persisted
create_volume(volume)

Creates a volume.

Parameters:volume – Volume object
Returns:Dictionary of changes to the volume object to be persisted
create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

Parameters:
  • volume – Volume object
  • snapshot – Snapshot object
Returns:

Dictionary of changes to the volume object to be persisted

delete_snapshot(snapshot)

Deletes a snapshot.

Parameters:snapshot – Snapshot object
delete_volume(volume)

Deletes a volume.

Parameters:volume – Volume object
do_setup(context)

Perform validations and establish connection to server.

Parameters:context – Context information
ensure_export(context, volume)
extend_volume(volume, new_size)

Extend an existing volume’s size.

Parameters:
  • volume – Volume object
  • new_size – new size in GB to extend this volume to
get_storage_protocol()

Get storage protocol of the volume backend.

Returns:Storage protocol
get_volume_backend_name()

Get volume backend name of the volume service.

Returns:Volume backend name
get_volume_stats(refresh=False)

Obtain status of the volume service.

Parameters:refresh – Whether to get refreshed information
remove_export(context, volume)
terminate_connection(volume, connector, **kwargs)

Disallow connection from connector.

Parameters:
  • volume – Volume object
  • connector – Connector 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.