The prerequisites for ONTAP are:
The driver requires a storage controller running ONTAP 8.2 or later.
The storage system should have the following licenses applied:
Base
NFS (if the NFS storage protocol is to be used)
CIFS (if the CIFS/SMB storage protocol is to be used)
SnapMirror (if share replication is to be enabled)
FlexClone
When using the NetApp Manila driver in the mode where it does not manage share servers, it is important to pay attention to the following considerations:
Ensure the appropriate licenses (as described previously) are enabled on the storage system for the desired use case.
The SVM referenced in the netapp_vserver
option must be created
(and associated with aggregates) before it can be utilized as a
provisioning target for Manila. If cluster-level credentials have
not been specified in the configuration file, ensure that no root
aggregates are associated with the SVM, since the driver will not
be able to guarantee that automatically.
Data LIFs must be created and assigned to SVMs before configuring Manila.
If NFS is used as the storage protocol:
Be sure to enable the NFS service on the SVM.
Be sure to enable the desired version of the NFS protocol (e.g.
v4.0, v4.1-pnfs
) on the SVM.
If CIFS is used as the storage protocol:
Be sure to enable the CIFS service on the SVM.
Be sure to set CIFS as the data protocol on the data LIF.
In order to support share replication:
Ensure all ONTAP clusters with the same replication_domain
are
peered, have intercluster LIFs configured, and are of equal ONTAP
versions.
Ensure all SVMs with the same replication_domain
are peered
and have unique names.
For more information about ONTAP data protection, please see the ONTAP 9 Product Documentation.
If setting up Manila without share servers, ensure that one or
more aggregates are permitted to be used by the SVM. Use vserver
show -vserver <vserver> -fields aggr-list
to see which aggregates
are all ready assigned. You can use vserver add-aggregates
-vserver <vserver> -aggregates <first aggr,second aggr>
to add
aggregates to your SVM that Manila will be able to use.
If you wish to assign QoS policies to Manila shares, do not assign the SVM used to a QoS policy group on ONTAP. Manila shares correspond to FlexVols on ONTAP and FlexVols are constituents of an SVM. ONTAP does not support nested QoS policies.
When configuring NetApp’s Manila drivers to interact with an ONTAP instance, it is important to choose the correct administrative credentials to use.
While an account with cluster-level administrative permissions is normally utilized, it is possible to use an account with reduced scope that has the appropriate privileges granted to it. In order to use an SVM-scoped account with the Manila driver and ONTAP and have access to the full set of features (including Manila Share Type Extra Specs support) availed by the Manila driver, be sure to add the access levels for the commands shown in Table 6.17, “Common Access Level Permissions Required with Any Manila Driver”, Table 6.18, “Access Level Permissions Required For Manila Driver for ONTAP with share server management - with Cluster-wide Administrative Account”, and Table 6.19, “Access Level Permissions Required For Manila Driver for ONTAP without share server management - with Cluster-wide Administrative Account”.
Note
The commands listed in the tables below are for ONTAP 9 releases.
Command |
Access Level |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 6.17. Common Access Level Permissions Required with Any Manila Driver
Command |
Access Level |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 6.18. Access Level Permissions Required For Manila Driver for ONTAP with share server management - with Cluster-wide Administrative Account
Command |
Access Level |
---|---|
|
|
|
|
|
|
|
|
Table 6.19. Access Level Permissions Required For Manila Driver for ONTAP without share server management - with Cluster-wide Administrative Account
To create a role with the necessary privileges required, with access via ONTAP API only, use the following command syntax to create the role and the ONTAP user:
Create role with appropriate command directory permissions (note you will need to execute this command for each of the required access levels as described in the earlier tables).
security login role create –role openstack –cmddirname [required command from earlier tables] -access [Required Access Level]
Command to create user with appropriate role
security login create –username openstack –application ontapi –authmethod password –role openstack
(REST mode only) Add access for http
application [2]
security login create –username openstack –application http –authmethod password –role openstack
To create a role with the necessary privileges required, with access via ONTAP API only, use the following command syntax to create the role and the ONTAP user:
Create role with appropriate command directory permissions (note you will need to execute this command for each of the required access levels as described in the earlier tables).
security login role create –role openstack -vserver [vserver_name] –cmddirname [required command from earlier tables] -access [Required Access Level]
Command to create user with appropriate role
security login create –username openstack –application ontapi –authmethod password –role openstack -vserver [vserver_name]
(REST mode only) Add access for http
application [2]
security login create –username openstack –application http –authmethod password –role openstack -vserver [vserver_name]
Tip
For more information on how to grant access level permissions to a role, and then assign the role to an administrative account, please refer to the System Administration Guide for Cluster Administrators document in the ONTAP documentation.
Note
SVM-Scoped user accounts do not support the configuration of the
reserved_share_percentage
config option. SVM-Scoped user
accounts can only work if the option is set to 0
.
Ensure there is segmented network connectivity between the hypervisor nodes and the Data LIF interfaces from ONTAP.
LIF assignment
Footnotes
This document is licensed under Apache 2.0 license.