The nova.volume.storwize_svc Module

Volume driver for IBM Storwize V7000 and SVC storage systems.

Notes: 1. If you specify both a password and a key file, this driver will use the

key file only.
  1. When using a key file for authentication, it is up to the user or system administrator to store the private key in a safe manner.
  2. The defaults for creating volumes are “-vtype striped -rsize 2% -autoexpand -grainsize 256 -warning 0”. These can be changed in the configuration file (recommended only for advanced users).

Limitations: 1. The driver was not tested with SVC or clustered configurations of Storwize

V7000.
  1. The driver expects CLI output in English, error messages may be in a localized format.
class StorwizeSVCDriver(*args, **kwargs)

Bases: nova.volume.san.SanISCSIDriver

IBM Storwize V7000 and SVC iSCSI volume driver.

check_for_export(context, volume_id)
check_for_setup_error()

Check that we have all configuration details from the storage.

create_export(context, volume)
create_snapshot(snapshot)

Create a new snapshot using FlashCopy.

create_volume(volume)

Create a new volume - uses the internal method.

create_volume_from_snapshot(volume, snapshot)

Create a new snapshot from volume.

delete_snapshot(snapshot)
delete_volume(volume)
do_setup(context)

Validate the flags.

ensure_export(context, volume)

Check that the volume exists on the storage.

The system does not “export” volumes as a Linux iSCSI target does, and therefore we just check that the volume exists on the storage.

initialize_connection(volume, connector)

Perform the necessary work so that an iSCSI connection can be made.

To be able to create an iSCSI connection from a given iSCSI name to a volume, we must: 1. Translate the given iSCSI name to a host name 2. Create new host on the storage system if it does not yet exist 2. Map the volume to the host if it is not already done 3. Return iSCSI properties, including the IP address of the preferred

node for this volume and the LUN number.
remove_export(context, volume)
terminate_connection(volume, connector)

Cleanup after an iSCSI connection has been terminated.

When we clean up a terminated connection between a given iSCSI name and volume, we: 1. Translate the given iSCSI name to a host name 2. Remove the volume-to-host mapping if it exists 3. Delete the host if it has no more mappings (hosts are created

automatically by this driver when mappings are created)

Previous topic

The nova.volume.san Module

Next topic

The nova.volume.utils Module

This Page