Bases: object
Parse SVC CLI output and generate iterable.
Bases: object
Generate and store a randomly-generated CHAP secret for the host.
Add FC WWPNs to system node information.
Add iSCSI IP addresses to system node information.
Add a vdisk copy in the given pool.
Add the QoS configuration to the volume.
Return whether or not compression is enabled for this system.
Create consistence group from source
Create a new snapshot using FlashCopy.
Create a FlashCopy mapping and add to consistent group.
Create a new host on the storage system.
We create a host name and associate it with the given connection information. The host name will be a cleaned up version of the given host name (at most 55 characters), plus a random 8-character suffix to avoid collisions. The total length should be at most 63 characters.
Delete flashcopy maps and consistent group.
Ensures that vdisk is not part of FC mapping and deletes it.
Disable the QoS.
Ensure vdisk has no flashcopy mappings.
Return list of available IO groups.
Generate and store a randomly-generated CHAP secret for the host.
Return the Storwize host described by the connector.
Return dictionary containing information on system’s nodes.
Return attributes for the specified pool.
Return system’s name, ID, and code level.
Return the parameters for creating the vdisk.
Takes volume type and defaults from config options into account.
Check if vdisk is defined.
Returns True if the specified vdisk is mapped to at least 1 host.
Create a mapping between a volume to a host.
Prepare FC Consistency Group.
Create a FlashCopy mapping from the source to the target.
Unmap the volume and delete the host if it has no more mappings.
Update all the QoS in terms of a key and value.
svc_qos_keys saves all the supported QoS parameters. Going through this dict, we set the new values to all the parameters. If QoS is available in the QoS configuration, the value is taken from it; if not, the value will be set to default.
Returns the properties of the vdisk with the specified UID.
Returns None if no such disk exists.
Bases: object
SSH interface to IBM Storwize family and SVC storage systems.
Return vdisk attributes or None if it doesn’t exist.
Performs an lsvdisk command, filtering the results as specified.
Returns an iterable for all matching vdisks.
Map vdisk to host.
If vdisk already mapped and multihostmap is True, use the force flag.
Run an SSH command and assert no output returned.
Run an SSH command and return the ID of the created object.
Run an SSH command and return parsed output.
Bases: cinder.volume.drivers.san.san.SanDriver, cinder.volume.driver.ManageableVD, cinder.volume.driver.ExtendVD, cinder.volume.driver.SnapshotVD, cinder.volume.driver.MigrateVD, cinder.volume.driver.ReplicaVD, cinder.volume.driver.ConsistencyGroupVD, cinder.volume.driver.CloneableImageVD, cinder.volume.driver.TransferVD
IBM Storwize V7000 SVC abstract base class for iSCSI/FC volume drivers.
Version history: 1.0 - Initial driver 1.1 - FC support, create_cloned_volume, volume type support,
get_volume_stats, minor bug fixes
1.2.0 - Added retype 1.2.1 - Code refactor, improved exception handling 1.2.2 - Fix bug #1274123 (races in host-related functions) 1.2.3 - Fix Fibre Channel connectivity: bug #1279758 (add delim to
lsfabric, clear unused data from connections, ensure matching WWPNs by comparing lower case
1.2.4 - Fix bug #1278035 (async migration/retype) 1.2.5 - Added support for manage_existing (unmanage is inherited) 1.2.6 - Added QoS support in terms of I/O throttling rate 1.3.1 - Added support for volume replication 1.3.2 - Added support for consistency group 1.3.3 - Update driver to use ABC metaclasses 2.0 - Code refactor, split init file and placed shared methods for
FC and iSCSI within the StorwizeSVCCommonDriver class
2.1.1 - Update replication to version 2.1
Ensure that the flags are set properly.
Creates a cgsnapshot.
Creates a clone of the specified volume.
Create a consistency group.
IBM Storwize will create CG until cg-snapshot creation, db will maintain the volumes and CG relationship.
Creates a consistencygroup from source.
Parameters: |
|
---|
:return model_update, volumes_model_update
Deletes a cgsnapshot.
Deletes a consistency group.
IBM Storwize will delete the volumes of the CG.
Check that we have all configuration details from the storage.
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.
Force failover to a secondary replication target.
Get volume stats.
If we haven’t gotten stats yet or ‘refresh’ is True, run update the stats first.
Manages an existing vdisk.
Renames the vdisk to match the expected name for the volume. Error checking done by manage_existing_get_size is not repeated - if we got here then we have a vdisk that isn’t in use (or we don’t care if it is in use.
Return size of an existing Vdisk for manage_existing.
existing_ref is a dictionary of the form: {‘source-id’: <uid of disk>} or {‘source-name’: <name of the disk>}
Migrate directly if source and dest are managed by same storage.
We create a new vdisk copy in the desired pool, and add the original vdisk copy to the admin_metadata of the volume to be deleted. The deletion will occur using a periodic task once the new copy is synced.
Parameters: |
|
---|
Use replication methods for the requested mode.
Convert the volume to be of the new type.
Returns a boolean indicating whether the retype occurred.
Parameters: |
|
---|
Remove the specified volume from Cinder management.
Adds or removes volume(s) to/from an existing consistency group.
Return model update from Storwize for migrated volume.
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: |
|
---|---|
Returns: | model_update to update DB with any needed changes |