The cinder.volume.drivers.hitachi.hnas_iscsi Module

iSCSI Cinder Volume driver for Hitachi Unified Storage (HUS-HNAS) platform.

class HDSISCSIDriver(*args, **kwargs)

Bases: cinder.volume.driver.ISCSIDriver

HDS HNAS volume driver.

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 errors

Version 3.3.0: Fixed iSCSI target limitation error Version 4.0.0: Added manage/unmanage features

check_for_setup_error()

Returns an error if prerequisites aren’t met.

create_cloned_volume(dst, src)

Create a clone of a volume.

Parameters:
  • dst – ditctionary destination volume reference
  • src – ditctionary source volume reference
create_export(context, volume, connector)

Create an export. Moved to initialize_connection.

Parameters:
  • context
  • volume – volume reference
create_snapshot(snapshot)

Create a snapshot.

Parameters:snapshot – dictionary snapshot reference
create_volume(volume)

Create a LU on HNAS.

Parameters:volume – dictionary volume reference
create_volume_from_snapshot(volume, snapshot)

Create a volume from a snapshot.

Parameters:
  • volume – dictionary volume reference
  • snapshot – dictionary snapshot reference
delete_snapshot(snapshot)

Delete a snapshot.

Parameters:snapshot – dictionary snapshot reference
delete_volume(volume)

Delete an LU on HNAS.

Parameters:volume – dictionary volume reference
do_setup(context)

Setup and verify HDS HNAS storage connection.

ensure_export(context, volume)
extend_volume(volume, new_size)

Extend an existing volume.

Parameters:
  • volume – dictionary volume reference
  • new_size – int size in GB to extend
get_pool(volume)
get_volume_stats(refresh=False)

Get volume stats. If ‘refresh’, run update the stats first.

initialize_connection(*args, **kwargs)

Map the created volume to connector[‘initiator’].

Parameters:
  • volume – dictionary volume reference
  • connector – dictionary connector reference
manage_existing(volume, existing_vol_ref)

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:
  • volume – cinder volume to manage
  • existing_vol_ref – driver-specific information used to identify a volume
manage_existing_get_size(volume, existing_vol_ref)

Gets the size to manage_existing.

Returns the size of volume to be managed by manage_existing.

Parameters:
  • volume – cinder volume to manage
  • existing_vol_ref – existing volume to take under management
remove_export(context, volume)

Disconnect a volume from an attached instance.

Parameters:
  • context – context
  • volume – dictionary volume reference
terminate_connection(*args, **kwargs)

Terminate a connection to a volume.

Parameters:
  • volume – dictionary volume reference
  • connector – dictionary connector reference
unmanage(volume)

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
factory_bend(drv_configs)

Previous topic

The cinder.volume.drivers.hitachi.hnas_backend Module

Next topic

The cinder.volume.drivers.hitachi.hnas_nfs Module

Project Source

This Page