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

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

Volume driver for NetApp NFS storage.

class NetAppCmodeNfsDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.dataontap.nfs_base.NetAppNfsDriver, cinder.volume.drivers.netapp.dataontap.utils.data_motion.DataMotionMixin

NetApp NFS driver 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 communtication 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 ONTAP consistency group snapshot in order to provide write-order consistency for a set of flexvols 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 file from the ONTAP cg-snapshot. The naming convention used to 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 deleted after the cloning operation is completed.

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

Driver entry point for deleting a generic volume group.

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

Delete files backing each snapshot in the group snapshot.

Returns:An implicit update of snapshot models that the manager will interpret and subsequently set the model state to deleted.
delete_snapshot(*args, **kwargs)

Deletes a snapshot.

delete_volume(*args, **kwargs)

Deletes a logical volume.

do_setup(*args, **kwargs)

Do the customized set up on client for cluster mode.

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. A log entry will be made to notify the Admin that the volume is no longer being managed.

Parameters:volume – Cinder volume to unmanage
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.