Volume driver for HNAS NFS storage.
Bases: cinder.volume.drivers.nfs.NfsDriver
Base class for Hitachi NFS driver.
Executes commands relating to Volumes.
Version history:
Version 1.0.0: Initial driver version
Version 2.2.0: Added support to SSH authentication
Version 3.0.0: Added pool aware scheduling
Version 4.0.0: Added manage/unmanage features
Version 4.1.0: Fixed XML parser checks on blank options
Version 5.0.0: Remove looping in driver initialization
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 HNASNFSDriver
Deprecated XML config file
Added support to manage/unmanage snapshots features
Fixed driver stats reporting
Creates a clone of the specified volume.
Parameters: |
|
---|---|
Returns: | the provider_location of the cloned volume |
Create a snapshot.
Parameters: | snapshot – dictionary snapshot reference |
---|---|
Returns: | the provider_location of the snapshot created |
Creates a volume.
Parameters: | volume – volume reference |
---|---|
Returns: | the volume provider_location |
Creates a volume from a snapshot.
Parameters: |
|
---|---|
Returns: | the provider_location of the volume created |
Deletes a snapshot.
Parameters: | snapshot – dictionary snapshot reference |
---|
Perform internal driver setup.
Extend an existing volume.
Parameters: |
|
---|---|
Raises: | InvalidResults |
Get volume stats.
Parameters: | refresh – if it is True, update the stats first. |
---|---|
Returns: | dictionary with the stats from HNAS |
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 an NFS share point and some [/path]/volume; e.g., 10.10.32.1:/openstack/vol_to_manage or 10.10.32.1:/openstack/some_directory/vol_to_manage
Parameters: |
|
---|
volume :returns: the provider location :raises: VolumeBackendAPIException
Returns the size of volume to be managed by manage_existing.
When calculating the size, round up to the next GB.
Parameters: |
|
---|---|
Returns: | the size of the volume or raise error |
Raises: | VolumeBackendAPIException |
Removes the specified volume from Cinder management.
It 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 |
---|