How to deploy cinder with NetApp

Scope
This document will guide trough the basic steps needed to configure the NetApp drivers (backend) in Cinder. There is some documentation from NetApp on the topic available at https://communities.netapp.com/groups/openstack/content but this wiki page aims at being a quick guide describing only the minimum required configuration settings.

Premise
With the Grizzly release there is a total of 8 different drivers available in Cinder for use with the NetApp storages:


 * 1) iscsi - 7mode
 * 2) iscsi - 7mode - direct
 * 3) iscsi - Cmode
 * 4) iscsi - Cmode - direct
 * 5) nfs - 7mode
 * 6) nfs - 7mode - direct
 * 7) nfs - Cmode
 * 8) nfs - Cmode - direct

7mode is somewhat older technology, Cmode is effectively the newer revision (rev. 8). The so called "direct" drivers do not require for the deployment of the NetApp's intermediate management software (DFM for 7mode).

Instructions for: nfs - 7mode - direct
This driver is compatible with the 7mode type of operations but requires a firmware >= 8.x on the storage server.

Cinder Setup
The minimum changes needed for it to work are the following: volume_driver = cinder.volume.drivers.netapp.common.NetAppDriver netapp_storage_family = ontap_7mode netapp_storage_protocol = nfs nfs_shares_config = $PATH_TO_SHARES_FILE netapp_server_hostname = $NETAPP_WEB_FQDN netapp_server_port = 80 (or 443) netapp_login = $NETAPP_WEB_USERNAME netapp_password = $NETAPP_WEB_PASSWORD

Create and populate the shares file adding there the mount path to the NFS volume: $NETAPP_FQDN:/vol/$VOLUME_PATH

Restart the Cinder services:
 * 1) for i in api scheduler volume; do service openstack-cinder-${i} restart; done