The cinder.volume.drivers.nexenta.ns5.nfs
Module¶
-
class
NexentaNfsDriver
(*args, **kwargs)¶ Bases:
cinder.volume.drivers.nfs.NfsDriver
Executes volume driver commands on Nexenta Appliance.
- Version history:
1.0.0 - Initial driver version. 1.1.0 - Added HTTPS support.
Added use of sessions for REST calls.- 1.2.0 - Support for extend volume.
- Support for extending the volume in create_volume_from_snapshot if the size of new volume is larger than original volume size.
-
CI_WIKI_NAME
= ‘Nexenta_CI’¶
-
VERSION
= ‘1.2.0’¶
-
backend_name
¶
-
check_for_setup_error
()¶ Verify that the volume for our folder exists.
Raise: LookupError
-
create_cloned_volume
(volume, src_vref)¶ Creates a clone of the specified volume.
Parameters: - volume – new volume reference
- src_vref – source volume reference
-
create_snapshot
(snapshot)¶ Creates a snapshot.
Parameters: snapshot – snapshot reference
-
create_volume
(volume)¶ Creates a volume.
Parameters: volume – volume reference Returns: provider_location update dict for database
-
create_volume_from_snapshot
(volume, snapshot)¶ Create new volume from other’s snapshot on appliance.
Parameters: - volume – reference of volume to be created
- snapshot – reference of source snapshot
-
delete_snapshot
(snapshot)¶ Deletes a snapshot.
Parameters: snapshot – snapshot reference
-
delete_volume
(volume)¶ Deletes a logical volume.
Parameters: volume – volume reference
-
do_setup
(context)¶
-
driver_prefix
= ‘nexenta’¶
-
extend_volume
(volume, new_size)¶ Extend an existing volume.
Parameters: - volume – volume reference
- new_size – volume new size in GB
-
initialize_connection
(volume, connector)¶ Allow connection to connector and return connection info.
Parameters: - volume – volume reference
- connector – connector reference
-
local_path
(volume)¶ Get volume path (mounted locally fs path) for given volume.
Parameters: volume – volume reference
-
volume_backend_name
= ‘NexentaNfsDriver’¶