HP LeftHand SAN ISCSI REST Proxy.
-
class HPLeftHandRESTProxy(*args, **kwargs)
Bases: cinder.volume.driver.ISCSIDriver
Executes REST commands relating to HP/LeftHand SAN ISCSI volumes.
- Version history:
1.0.0 - Initial REST iSCSI proxy
1.0.1 - Added support for retype
1.0.2 - Added support for volume migrate
1.0.3 - Fixed bug #1285829, HP LeftHand backend assisted migration
should check for snapshots
- 1.0.4 - Fixed bug #1285925, LeftHand AO volume create performance
- improvement
-
VERSION = '1.0.4'
-
check_for_setup_error()
-
create_cloned_volume(volume, src_vref)
-
create_export(context, volume)
-
create_snapshot(snapshot)
Creates a snapshot.
-
create_volume(volume)
Creates a volume.
-
create_volume_from_snapshot(volume, snapshot)
Creates a volume from a snapshot.
-
delete_snapshot(snapshot)
Deletes a snapshot.
-
delete_volume(volume)
Deletes a volume.
-
device_stats = {}
-
do_setup(context)
Set up LeftHand client.
-
ensure_export(context, volume)
-
extend_volume(volume, new_size)
Extend the size of an existing volume.
-
get_version_string()
-
get_volume_stats(refresh)
Gets volume stats.
-
initialize_connection(volume, connector)
Assigns the volume to a server.
Assign any created volume to a compute node/host so that it can be
used from that host. HP VSA requires a volume to be assigned
to a server.
-
migrate_volume(ctxt, volume, host)
Migrate the volume to the specified host.
Backend assisted volume migration will occur if and only if;
- Same LeftHand backend
- Volume cannot be attached
- Volumes with snapshots cannot be migrated
- Source and Destination clusters must be in the same management group
Volume re-type is not supported.
Returns a boolean indicating whether the migration occurred, as well as
model_update.
Parameters: |
- ctxt – Context
- volume – A dictionary describing the volume to migrate
- host – A dictionary describing the host to migrate to, where
host[‘host’] is its name, and host[‘capabilities’] is a
dictionary of its reported capabilities.
|
-
remove_export(context, volume)
-
retype(ctxt, volume, new_type, diff, host)
Convert the volume to be of the new type.
Returns a boolean indicating whether the retype occurred.
Parameters: |
- ctxt – Context
- volume – A dictionary describing the volume to retype
- new_type – A dictionary describing the volume type to convert to
- diff – A dictionary with the difference between the two types
- host – A dictionary describing the host, where
host[‘host’] is its name, and host[‘capabilities’] is a
dictionary of its reported capabilities.
|
-
terminate_connection(volume, connector, **kwargs)
Unassign the volume from the host.