The cinder.volume.drivers.netapp.dataontap.block_cmode Module

The cinder.volume.drivers.netapp.dataontap.block_cmode Module

Volume driver library for NetApp C-mode block storage systems.

class NetAppBlockStorageCmodeLibrary(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.dataontap.block_base.NetAppBlockStorageLibrary, cinder.volume.drivers.netapp.dataontap.utils.data_motion.DataMotionMixin

NetApp block storage library for Data ONTAP (Cluster-mode).

REQUIRED_CMODE_FLAGS = ['netapp_vserver']
check_for_setup_error(*args, **kwargs)

Check that the driver is working and can communicate.

create_group(*args, **kwargs)

Driver entry point for creating a generic volume group.

ONTAP does not maintain an actual Group construct. As a result, no communication to the backend is necessary for generic volume group creation.

Returns:Hard-coded model update for generic volume group model.
create_group_from_src(*args, **kwargs)

Creates a group from a group snapshot or a group of cinder vols.

Returns:An implicit update for the volumes model that is interpreted by the manager as a successful operation.
create_group_snapshot(*args, **kwargs)

Creates a Cinder group snapshot object.

The Cinder group snapshot object is created by making use of an ephemeral ONTAP consistency group snapshot in order to provide write-order consistency for a set of flexvol snapshots. First, a list of the flexvols backing the given Cinder group must be gathered. An ONTAP group-snapshot of these flexvols will create a snapshot copy of all the Cinder volumes in the generic volume group. For each Cinder volume in the group, it is then necessary to clone its backing LUN from the ONTAP cg-snapshot. The naming convention used for the clones is what indicates the clone’s role as a Cinder snapshot and its inclusion in a Cinder group. The ONTAP cg-snapshot of the flexvols is no longer required after having cloned the LUNs backing the Cinder volumes in the Cinder group.

Returns:An implicit update for group snapshot and snapshots models that is interpreted by the manager to set their models to available.
delete_group(*args, **kwargs)

Driver entry point for deleting a group.

Returns:Updated group model and list of volume models for the volumes that were deleted.
delete_group_snapshot(*args, **kwargs)

Delete LUNs backing each snapshot in the group snapshot.

Returns:An implicit update for snapshots models that is interpreted by the manager to set their models to deleted.
delete_volume(*args, **kwargs)

Driver entry point for destroying existing volumes.

do_setup(*args, **kwargs)
failover_host(*args, **kwargs)

Failover a backend to a secondary replication target.

unmanage(*args, **kwargs)

Removes the specified volume from Cinder management.

Does not delete the underlying backend storage object.

update_group(*args, **kwargs)

Driver entry point for updating a generic volume group.

Since no actual group construct is ever created in ONTAP, it is not necessary to update any metadata on the backend. Since this is a NO-OP, there is guaranteed to be no change in any of the volumes’ statuses.

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.