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:
- iscsi - 7mode
- iscsi - 7mode - direct
- iscsi - Cmode
- iscsi - Cmode - direct
- nfs - 7mode
- nfs - 7mode - direct
- nfs - Cmode
- 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
This driver is compatible with older NetApp hardware not supporting the Cmode type of operations as well as more recent hardware which is backward compatible with the 7mode type of operations. It requires the deployment of a DFM server.
DFM Setup
bla bla bla
Cinder Setup
The minimum changes needed for it to work are the following:
netapp_wsdl_url=http://${DFM_SERVER_HOSTNAME}:8080/dfm.wsdl netapp_login=${DFM_USER} netapp_password=${DFM_PASS} netapp_server_hostname=${DFM_SERVER_HOSTNAME} netapp_server_port=8080 nfs_shares_config=/etc/cinder/shares.conf volume_driver=cinder.volume.drivers.netapp.nfs.NetAppNFSDriver
Populate the shares file by adding there the mount path to the NFS volume (assuming a vfiler is configured for the purpose):
${VFILER_HOSTNAME}:/vol/vfilers/${VFILER_HOSTNAME}
Later restart the Cinder services:
# for i in api scheduler volume; do service openstack-cinder-${i} restart; done