The cinder.volume.drivers.nexenta.ns5.iscsi Module¶
-
class
NexentaISCSIDriver(*args, **kwargs)¶ Bases:
cinder.volume.driver.ISCSIDriverExecutes 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.
-
CI_WIKI_NAME= 'Nexenta_CI'¶
-
VERSION= '1.1.0'¶
-
backend_name¶
-
check_for_setup_error()¶ Verify that the zfs volumes exist.
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_export(_ctx, volume, connector)¶ Create new export for zfs volume.
Parameters: volume – reference of volume to be exported Returns: iscsiadm-formatted provider location string
-
create_snapshot(snapshot)¶ Creates a snapshot.
Parameters: snapshot – snapshot reference
-
create_volume(volume)¶ Create a zfs volume on appliance.
Parameters: volume – volume reference Returns: model update dict for volume reference
-
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)¶ Delete volume’s snapshot on appliance.
Parameters: snapshot – snapshot reference
-
delete_volume(volume)¶ Destroy a zfs volume on appliance.
Parameters: volume – volume reference
-
do_setup(context)¶
-
ensure_export(_ctx, volume)¶ Recreate parts of export if necessary.
Parameters: volume – reference of volume to be exported
-
extend_volume(volume, new_size)¶ Extend an existing volume.
Parameters: - volume – volume reference
- new_size – volume new size in GB
-
get_volume_stats(refresh=False)¶ Get volume stats.
If ‘refresh’ is True, run update the stats first.
-
remove_export(_ctx, volume)¶ Destroy all resources created to export zfs volume.
Parameters: volume – reference of volume to be unexported