cinder.volume.drivers.fusionstorage.dsware
Module¶Driver for Huawei FusionStorage.
DSWAREDriver
(*args, **kwargs)¶Bases: cinder.volume.driver.VolumeDriver
Huawei FusionStorage Driver.
CI_WIKI_NAME
= 'Huawei_FusionStorage_CI'¶DSWARE_VOLUME_CREATE_SUCCESS_STATUS
= 0¶DSWARE_VOLUME_CREATING_STATUS
= 7¶DSWARE_VOLUME_DUPLICATE_VOLUME
= 6¶VERSION
= '1.0'¶check_for_setup_error
()¶copy_image_to_volume
(context, volume, image_service, image_id)¶Fetch image from image_service and write to unencrypted volume.
This does not attach an encryptor layer when connecting to the volume.
copy_volume_to_image
(context, volume, image_service, image_meta)¶Copy the volume to the specified image.
create_cloned_volume
(volume, src_volume)¶Dispatcher to Dsware client to create volume from volume.
Wait volume create finished.
create_export
(context, volume, connector)¶Exports the volume.
Can optionally return a Dictionary of changes to the volume object to be persisted.
create_snapshot
(snapshot)¶Creates a snapshot.
create_volume
(volume)¶Creates a volume.
Can optionally return a Dictionary of changes to the volume object to be persisted.
If volume_type extra specs includes ‘capabilities:replication <is> True’ the driver needs to create a volume replica (secondary), and setup replication between the newly created volume and the secondary volume. Returned dictionary should include:
volume['replication_status'] = 'copying'
volume['replication_extended_status'] = <driver specific value>
volume['driver_data'] = <driver specific value>
create_volume_from_snapshot
(volume, snapshot)¶Creates a volume from a snapshot.
If volume_type extra specs includes ‘replication: <is> True’ the driver needs to create a volume replica (secondary), and setup replication between the newly created volume and the secondary volume.
delete_snapshot
(snapshot)¶Deletes a snapshot.
delete_volume
(volume)¶Deletes a volume.
If volume_type extra specs includes ‘replication: <is> True’ then the driver needs to delete the volume replica too.
do_setup
(context)¶Any initialization the volume driver does while starting.
ensure_export
(context, volume)¶Synchronously recreates an export for a volume.
extend_volume
(volume, new_size)¶get_volume_stats
(refresh=False)¶Return the current state of the volume service.
If ‘refresh’ is True, run the update first.
For replication the following state should be reported: replication = True (None or false disables replication)
initialize_connection
(volume, connector)¶Initializes the connection and returns connection info.
remove_export
(context, volume)¶Removes an export for a volume.
terminate_connection
(volume, connector, force=False, **kwargs)¶Disallow connection from connector
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.