The cinder.volume.drivers.nec.volume_helper Module

The cinder.volume.drivers.nec.volume_helper Module

class MStorageDSVDriver

Bases: cinder.volume.drivers.nec.volume_helper.MStorageDriver

M-Series Storage Snapshot helper class.

create_snapshot(snapshot)
create_volume_from_snapshot(volume, snapshot)
delete_snapshot(snapshot)
class MStorageDriver

Bases: cinder.volume.drivers.nec.volume_common.MStorageVolumeCommon

M-Series Storage helper class.

backup_use_temp_snapshot()
check_for_export(context, volume_id)
create_cloned_volume(volume, src_vref)
create_volume(volume)
delete_volume(volume)
extend_volume(volume, new_size)
fc_do_export(_ctx, volume, connector, ensure=False)
fc_do_export_snapshot(context, snapshot, connector, ensure=False)
fc_get_volume_stats(refresh=False)

Get volume status.

If ‘refresh’ is True, run update the stats first.

fc_initialize_connection(volume, connector)
fc_initialize_connection_snapshot(snapshot, connector)
fc_terminate_connection(volume, connector)
fc_terminate_connection_snapshot(snapshot, connector, **kwargs)
get_manageable_snapshots(cinder_snapshots, marker, limit, offset, sort_keys, sort_dirs)

List snapshots on the backend available for management by Cinder.

get_manageable_volumes(cinder_volumes, marker, limit, offset, sort_keys, sort_dirs)

List volumes on the backend available for management by Cinder.

get_pool(volume)
iscsi_do_export(_ctx, volume, connector, ensure=False)
iscsi_do_export_snapshot(context, snapshot, connector)

Exports the snapshot.

iscsi_get_volume_stats(refresh=False)

Get volume status.

If ‘refresh’ is True, run update the stats first.

iscsi_initialize_connection(volume, connector)
iscsi_initialize_connection_snapshot(snapshot, connector, **kwargs)

Allow connection to connector and return connection info.

Parameters:
  • snapshot – The snapshot to be attached
  • connector – Dictionary containing information about what is being connected to.
Returns conn_info:
 

A dictionary of connection information. This can optionally include a “initiator_updates” field.

iscsi_terminate_connection(volume, connector)
iscsi_terminate_connection_snapshot(snapshot, connector, **kwargs)

Disallow connection from connector.

manage_existing(volume, existing_ref)

Brings an existing backend storage object under Cinder management.

Rename the backend storage object so that it matches the, volume[‘name’] which is how drivers traditionally map between a cinder volume and the associated backend storage object.

manage_existing_get_size(volume, existing_ref)

Return size of volume to be managed by manage_existing.

manage_existing_snapshot(snapshot, existing_ref)

Brings an existing backend storage object under Cinder management.

Rename the backend storage object so that it matches the snapshot[‘name’] which is how drivers traditionally map between a cinder snapshot and the associated backend storage object.

manage_existing_snapshot_get_size(snapshot, existing_ref)

Return size of snapshot to be managed by manage_existing.

migrate_volume(context, volume, host)
remove_export(context, volume)
remove_export_snapshot(context, snapshot)

Removes an export for a snapshot.

unmanage(volume)

Removes the specified volume from Cinder management.

unmanage_snapshot(snapshot)

Removes the specified snapshot from Cinder management.

update_migrated_volume(ctxt, volume, new_volume, original_volume_status)

Updates metadata after host-assisted migration.

This method should rename the back-end volume name(id) on the destination host back to its original name(id) on the source host.

Parameters:
  • ctxt – The context used to run the method update_migrated_volume
  • volume – The original volume that was migrated to this backend
  • new_volume – The migration volume object that was created on this backend as part of the migration process
  • original_volume_status – The status of the original volume
Returns:

model_update to update DB with any needed changes

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.