Setting up Manila Network Plugins

There are primarily 4 network plugins in Manila right now and the following documents the setup and creation of shares for all the 4 plugins;

1. Manila Multi SVM:

a) Build a Devstack Ubuntu 14.04 VM with neutron and manila services running on it.

b) Create a shared network using the Neutron net id and subnet id -> manila share-network-create --neutron-net-id  --neutron-subnet-id  --name sn

c) Create a share_type if it doesn't exist already -> manila type-create default true

d) In the manila.conf in the cmodeNFS stanza enter the following:

[cmodeNFS] driver_handles_share_servers = True share_driver = manila.share.drivers.netapp.common.NetAppDriver share_backend_name = cmodeNFS netapp_storage_family = ontap_cluster netapp_nas_server_hostname = 1.2.3.4 netapp_nas_login = admin netapp_nas_password = secret netapp_root_volume_aggregate = aggr1 netapp_trace_flags=api netapp_vserver=openstack netapp_server_port=443 netapp_transport_type=https

e) In the manila.conf under enabled_share_backends add cmodeNFS and then restart the manila services.

f) Try creating the manila share -> manila create --share-type default --share-network sn NFS 1

2. Manila Single SVM:

a) Build a Devstack Ubuntu 14.04 VM with neutron and manila services running on it.

b) Create a share_type with driver_handles_share_servers set to False -> manila type-create empty false

c) In the manila.conf in the cmodeNFS_single_svm stanza enter the following:

[cmodeNFS_single_svm] driver_handles_share_servers = False share_driver = manila.share.drivers.netapp.common.NetAppDriver share_backend_name = cmodeNFS_single_svm netapp_storage_family = ontap_cluster netapp_nas_server_hostname = 1.2.3.4 netapp_nas_login = admin netapp_nas_password = secret netapp_trace_flags=api netapp_vserver = openstack netapp_server_port=443 netapp_transport_type=https

d) In the manila.conf under enabled_share_backends, add cmodeNFS_single_svm and then restart the manila services.

e) Try creating the manila share -> manila create --share-type empty NFS 1

3. Manila Multi SVM with Nova Network Plugin:

a) Build a Devstack Ubuntu 14.04 VM with nova and manila services running on it.

b) Create a shared network using the Nova net id -> manila share-network-create --nova-net-id  --name sn_nova

c) Create a share_type if it doesn't exist already -> manila type-create default true

d) In the manila.conf in the DEFAULT section, add the following:

network_api_class = manila.network.nova_network_plugin.NovaNetworkPlugin

e) In the manila.conf in the cmodeNFS stanza, enter the following:

[cmodeNFS] driver_handles_share_servers = True share_driver = manila.share.drivers.netapp.common.NetAppDriver share_backend_name = cmodeNFS netapp_storage_family = ontap_cluster netapp_nas_server_hostname = 1.2.3.4 netapp_nas_login = admin netapp_nas_password = secret netapp_root_volume_aggregate = aggr1 netapp_trace_flags=api netapp_vserver=openstack netapp_server_port=443 netapp_transport_type=https

f) In the manila.conf under enabled_share_backends add cmodeNFS and then restart the manila services.

g) Try creating the manila share -> manila create --share-type default --share-network sn_nova NFS 1

4. Manila Stand Alone Network Plugin:

a) Build a Devstack Ubuntu 14.04 VM with manila services running on it.

b) Create a shared network -> manila share-network-create --name sn_standalone

c) Create a share_type if it doesn't exist already -> manila type-create default true

d) In the manila.conf in the DEFAULT stanza enter the following:

network_api_class = manila.network.standalone_network_plugin.StandaloneNetworkPlugin standalone_network_plugin_gateway = 10.0.0.1 standalone_network_plugin_allowed_ip_ranges = 10.0.0.2-10.0.0.254 standalone_network_plugin_mask = 24 standalone_network_plugin_segmentation_id = 1001

e) In the manila.conf in the cmodeNFS stanza, enter the following:

[cmodeNFS] driver_handles_share_servers = True share_driver = manila.share.drivers.netapp.common.NetAppDriver share_backend_name = cmodeNFS netapp_storage_family = ontap_cluster netapp_nas_server_hostname = 1.2.3.4 netapp_nas_login = admin netapp_nas_password = secret netapp_root_volume_aggregate = aggr1 netapp_trace_flags=api netapp_vserver=openstack netapp_server_port=443 netapp_transport_type=https

f) In the manila.conf under enabled_share_backends add cmodeNFS and then restart the manila services.

g) Try creating the manila share -> manila create --share-network sn_standalone --share-type default NFS 1