iSCSI Cinder Volume driver for Hitachi Unified Storage (HUS-HNAS) platform.
Bases: cinder.volume.driver.ISCSIDriver
HNAS iSCSI volume driver.
Version history:
code-block:: none
Version 1.0.0: Initial driver version Version 2.2.0: Added support to SSH authentication Version 3.2.0: Added pool aware scheduling
Fixed concurrency errorsVersion 3.3.0: Fixed iSCSI target limitation error Version 4.0.0: Added manage/unmanage features Version 4.1.0: Fixed XML parser checks on blank options Version 4.2.0: Fixed SSH and cluster_admin_ip0 verification Version 4.3.0: Fixed attachment with os-brick 1.0.0 Version 5.0.0: Code cleaning up
New communication interface between the driver and HNAS Removed the option to use local SSC (ssh_enabled=False) Updated to use versioned objects Changed the class name to HNASISCSIDriver Deprecated XML config file Fixed driver stats reporting
Creates a clone of a volume.
Parameters: |
|
---|---|
Returns: | the provider location of the extended volume |
Creates a snapshot.
Parameters: | snapshot – dictionary snapshot reference |
---|---|
Returns: | the provider location of the snapshot |
Creates a LU on HNAS.
Parameters: | volume – dictionary volume reference |
---|---|
Returns: | the volume provider location |
Creates a volume from a snapshot.
Parameters: |
|
---|---|
Returns: | the provider location of the snapshot |
Deletes a snapshot.
Parameters: | snapshot – dictionary snapshot reference |
---|
Deletes the volume on HNAS.
Parameters: | volume – dictionary volume reference |
---|
Sets up and verify Hitachi HNAS storage connection.
Extends an existing volume.
Parameters: |
|
---|
Gets the volume driver stats.
Parameters: | refresh – if refresh is True, the driver_stats is updated |
---|---|
Returns: | the driver stats |
Maps the created volume to connector[‘initiator’].
Parameters: |
|
---|---|
Returns: | The connection information |
Raises: | ISCSITargetAttachFailed |
Manages an existing volume.
The specified Cinder volume is to be taken into Cinder management. The driver will verify its existence and then rename it to the new Cinder volume name. It is expected that the existing volume reference is a File System and some volume_name; e.g., openstack/vol_to_manage
Parameters: |
|
---|---|
Returns: | the provider location of the volume managed |
Gets the size to manage_existing.
Returns the size of volume to be managed by manage_existing.
Parameters: |
|
---|---|
Returns: | the size of the volume to be managed or raises error |
Raises: | ManageExistingInvalidReference |
Terminate a connection to a volume.
Parameters: |
|
---|
Unmanages a volume from cinder.
Removes the specified volume from Cinder management. Does not delete the underlying backend storage object. A log entry will be made to notify the admin that the volume is no longer being managed.
Parameters: | volume – cinder volume to unmanage |
---|