diff --git a/config.yaml b/config.yaml index da638c1..fa26194 100644 --- a/config.yaml +++ b/config.yaml @@ -18,6 +18,18 @@ options: description: | Name of aggregate to create Vserver root volumes on. This option only applies when the option 'driver-handles-share-servers' is set to True. + enabled-share-protocols: + type: string + description: | + Comma-separated list of NFS protocol versions that will be enabled on + the Vservers from the NetApp ONTAP cluster. + The supported versions are: + * nfs3 + * nfs4.0 + * nfs4.1 + This option only applies when the option 'driver-handles-share-servers' + is set to True. + default: nfs3,nfs4.0,nfs4.1 vserver-name: type: string description: | diff --git a/templates/queens/manila.conf b/templates/queens/manila.conf index 88491d4..0475d67 100644 --- a/templates/queens/manila.conf +++ b/templates/queens/manila.conf @@ -5,6 +5,7 @@ share_driver = manila.share.drivers.netapp.common.NetAppDriver driver_handles_share_servers = {{ options.driver_handles_share_servers }} {%- if options.driver_handles_share_servers %} netapp_root_volume_aggregate = {{ options.root_volume_aggregate_name }} +netapp_enabled_share_protocols = {{ options.enabled_share_protocols }} {%- else %} netapp_vserver = {{ options.vserver_name }} {%- endif %} diff --git a/tests/bundles/bionic-ussuri.yaml b/tests/bundles/bionic-ussuri.yaml index a735b3d..9e690de 100644 --- a/tests/bundles/bionic-ussuri.yaml +++ b/tests/bundles/bionic-ussuri.yaml @@ -120,8 +120,15 @@ applications: manila-netapp: charm: ../../manila-netapp.charm options: + share-backend-name: netapp-ontap driver-handles-share-servers: False + manila-netapp-dhss: + charm: ../../manila-netapp.charm + options: + share-backend-name: netapp-ontap-dhss + driver-handles-share-servers: True + relations: - - 'manila:shared-db' - 'percona-cluster:shared-db' @@ -131,6 +138,8 @@ relations: - 'keystone' - - 'manila:manila-plugin' - 'manila-netapp:manila-plugin' + - - 'manila:manila-plugin' + - 'manila-netapp-dhss:manila-plugin' - - 'keystone:shared-db' - 'percona-cluster:shared-db' diff --git a/tests/bundles/focal-ussuri.yaml b/tests/bundles/focal-ussuri.yaml index f369422..727ba9b 100644 --- a/tests/bundles/focal-ussuri.yaml +++ b/tests/bundles/focal-ussuri.yaml @@ -139,8 +139,15 @@ applications: manila-netapp: charm: ../../manila-netapp.charm options: + share-backend-name: netapp-ontap driver-handles-share-servers: False + manila-netapp-dhss: + charm: ../../manila-netapp.charm + options: + share-backend-name: netapp-ontap-dhss + driver-handles-share-servers: True + relations: - - 'manila:shared-db' - 'manila-mysql-router:shared-db' @@ -152,6 +159,8 @@ relations: - 'keystone' - - 'manila:manila-plugin' - 'manila-netapp:manila-plugin' + - - 'manila:manila-plugin' + - 'manila-netapp-dhss:manila-plugin' - - 'keystone:shared-db' - 'keystone-mysql-router:shared-db' diff --git a/tests/bundles/focal-victoria.yaml b/tests/bundles/focal-victoria.yaml index 76850b6..bd64d1b 100644 --- a/tests/bundles/focal-victoria.yaml +++ b/tests/bundles/focal-victoria.yaml @@ -139,8 +139,15 @@ applications: manila-netapp: charm: ../../manila-netapp.charm options: + share-backend-name: netapp-ontap driver-handles-share-servers: False + manila-netapp-dhss: + charm: ../../manila-netapp.charm + options: + share-backend-name: netapp-ontap-dhss + driver-handles-share-servers: True + relations: - - 'manila:shared-db' - 'manila-mysql-router:shared-db' @@ -152,6 +159,8 @@ relations: - 'keystone' - - 'manila:manila-plugin' - 'manila-netapp:manila-plugin' + - - 'manila:manila-plugin' + - 'manila-netapp-dhss:manila-plugin' - - 'keystone:shared-db' - 'keystone-mysql-router:shared-db' diff --git a/tests/bundles/groovy-victoria.yaml b/tests/bundles/groovy-victoria.yaml index 1e677ce..02b88ad 100644 --- a/tests/bundles/groovy-victoria.yaml +++ b/tests/bundles/groovy-victoria.yaml @@ -139,8 +139,15 @@ applications: manila-netapp: charm: ../../manila-netapp.charm options: + share-backend-name: netapp-ontap driver-handles-share-servers: False + manila-netapp-dhss: + charm: ../../manila-netapp.charm + options: + share-backend-name: netapp-ontap-dhss + driver-handles-share-servers: True + relations: - - 'manila:shared-db' - 'manila-mysql-router:shared-db' @@ -152,6 +159,8 @@ relations: - 'keystone' - - 'manila:manila-plugin' - 'manila-netapp:manila-plugin' + - - 'manila:manila-plugin' + - 'manila-netapp-dhss:manila-plugin' - - 'keystone:shared-db' - 'keystone-mysql-router:shared-db' diff --git a/tests/bundles/overlays/local-charm-overlay.yaml.j2 b/tests/bundles/overlays/local-charm-overlay.yaml.j2 index f605ccd..4b70c38 100644 --- a/tests/bundles/overlays/local-charm-overlay.yaml.j2 +++ b/tests/bundles/overlays/local-charm-overlay.yaml.j2 @@ -5,3 +5,9 @@ applications: management-address: {{ TEST_MANILA_NETAPP_MANAGEMENT_ADDRESS }} admin-name: {{ TEST_MANILA_NETAPP_ADMIN_NAME }} admin-password: {{ TEST_MANILA_NETAPP_ADMIN_PASSWORD }} + manila-netapp-dhss: + options: + root-volume-aggregate-name: {{ TEST_MANILA_NETAPP_ROOT_VOL_AGGR_NAME }} + management-address: {{ TEST_MANILA_NETAPP_MANAGEMENT_ADDRESS }} + admin-name: {{ TEST_MANILA_NETAPP_ADMIN_NAME }} + admin-password: {{ TEST_MANILA_NETAPP_ADMIN_PASSWORD }} diff --git a/tests/tests.yaml b/tests/tests.yaml index e890505..9bccb49 100644 --- a/tests/tests.yaml +++ b/tests/tests.yaml @@ -17,10 +17,13 @@ configure: - zaza.openstack.charm_tests.nova.setup.create_flavors - zaza.openstack.charm_tests.nova.setup.manage_ssh_key - zaza.openstack.charm_tests.keystone.setup.add_demo_user - - zaza.openstack.charm_tests.manila_netapp.setup.setup_netapp_share_type + - zaza.openstack.charm_tests.manila_netapp.setup.create_netapp_share_type + - zaza.openstack.charm_tests.manila_netapp.setup.create_netapp_dhss_share_type + - zaza.openstack.charm_tests.manila_netapp.setup.create_netapp_share_network tests: - zaza.openstack.charm_tests.manila_netapp.tests.ManilaNetAppNFSTest + - zaza.openstack.charm_tests.manila_netapp.tests.ManilaNetAppDHSSNFSTest tests_options: force_deploy: