summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrajinir <rajini_ram@dell.com>2017-08-04 15:18:44 -0500
committerEmilien Macchi <emilien@redhat.com>2017-08-30 15:47:11 +0000
commit992478e3dafaf2dc129508a4fddc8a3157ad2243 (patch)
tree37d79adce2ed581d1badf65218630deeee47bb6f
parentf84f79752be6d5646afec1298a9253c32639f0b2 (diff)
Add support for Dell EMC Unity Manila Backend
This change adds support for manila::backend::dellemc_unity Change-Id: Idec67d190b12359e8e6f1c157577088fa84ef41d Implements: blueprint dellemc-unity-manila (cherry picked from commit c5ee7b7714c712807f33ca1645186d33103a2264)
-rw-r--r--capabilities-map.yaml9
-rw-r--r--deployed-server/deployed-server-roles-data.yaml1
-rw-r--r--environments/contrail/roles_data_contrail.yaml1
-rw-r--r--environments/manila-unity-config.yaml17
-rw-r--r--overcloud-resource-registry-puppet.j2.yaml1
-rw-r--r--puppet/services/manila-backend-unity.yaml74
-rw-r--r--releasenotes/notes/unity_manila_1967789872aa11e7.yaml3
-rw-r--r--roles/Controller.yaml1
-rw-r--r--roles/ControllerOpenstack.yaml1
-rw-r--r--roles_data.yaml1
10 files changed, 109 insertions, 0 deletions
diff --git a/capabilities-map.yaml b/capabilities-map.yaml
index 91daa689..7ae218c7 100644
--- a/capabilities-map.yaml
+++ b/capabilities-map.yaml
@@ -401,6 +401,15 @@ topics:
Ceph and CephMDS from TripleO or the use of an external Ceph cluster for the overcloud.
requires:
- overcloud-resource-registry-puppet.yaml
+ - title: Manila with Unity
+ description: >
+ Deploys Manila and configures it with the Unity driver.
+ environments:
+ - file: environments/manila-unity-config.yaml
+ title: Deploys Manila with Unity driver
+ description: Deploys Manila and configures Unity as its default backend.
+ requires:
+ - overcloud-resource-registry-puppet.yaml
- title: Glance backends
description:
environments:
diff --git a/deployed-server/deployed-server-roles-data.yaml b/deployed-server/deployed-server-roles-data.yaml
index 4a305c68..e01d94a1 100644
--- a/deployed-server/deployed-server-roles-data.yaml
+++ b/deployed-server/deployed-server-roles-data.yaml
@@ -83,6 +83,7 @@
- OS::TripleO::Services::ManilaScheduler
- OS::TripleO::Services::ManilaBackendGeneric
- OS::TripleO::Services::ManilaBackendNetapp
+ - OS::TripleO::Services::ManilaBackendUnity
- OS::TripleO::Services::ManilaBackendCephFs
- OS::TripleO::Services::ManilaShare
- OS::TripleO::Services::AodhApi
diff --git a/environments/contrail/roles_data_contrail.yaml b/environments/contrail/roles_data_contrail.yaml
index dd1c5455..b247ff96 100644
--- a/environments/contrail/roles_data_contrail.yaml
+++ b/environments/contrail/roles_data_contrail.yaml
@@ -86,6 +86,7 @@
- OS::TripleO::Services::ManilaScheduler
- OS::TripleO::Services::ManilaBackendGeneric
- OS::TripleO::Services::ManilaBackendNetapp
+ - OS::TripleO::Services::ManilaBackendUnity
- OS::TripleO::Services::ManilaBackendCephFs
- OS::TripleO::Services::ManilaShare
- OS::TripleO::Services::AodhApi
diff --git a/environments/manila-unity-config.yaml b/environments/manila-unity-config.yaml
new file mode 100644
index 00000000..418404e1
--- /dev/null
+++ b/environments/manila-unity-config.yaml
@@ -0,0 +1,17 @@
+# This environment file enables Manila with the Unity backend.
+resource_registry:
+ OS::TripleO::Services::ManilaApi: ../puppet/services/manila-api.yaml
+ OS::TripleO::Services::ManilaScheduler: ../puppet/services/manila-scheduler.yaml
+ # Only manila-share is pacemaker managed:
+ OS::TripleO::Services::ManilaShare: ../puppet/services/pacemaker/manila-share.yaml
+ OS::TripleO::Services::ManilaBackendUnity: ../puppet/services/manila-backend-unity.yaml
+
+parameter_defaults:
+ ManilaUnityBackendName: tripleo_manila_unity
+ ManilaUnityDriverHandlesShareServers: true
+ ManilaUnityNasLogin: ''
+ ManilaUnityNasPassword: ''
+ ManilaUnityNasServer: ''
+ ManilaUnityServerMetaPool: ''
+ ManilaUnityShareDataPools: ''
+ ManilaUnityEthernetPorts: ''
diff --git a/overcloud-resource-registry-puppet.j2.yaml b/overcloud-resource-registry-puppet.j2.yaml
index 0f0e9ceb..1f3ec138 100644
--- a/overcloud-resource-registry-puppet.j2.yaml
+++ b/overcloud-resource-registry-puppet.j2.yaml
@@ -232,6 +232,7 @@ resource_registry:
OS::TripleO::Services::ManilaShare: OS::Heat::None
OS::TripleO::Services::ManilaBackendGeneric: OS::Heat::None
OS::TripleO::Services::ManilaBackendNetapp: OS::Heat::None
+ OS::TripleO::Services::ManilaBackendUnity: OS::Heat::None
OS::TripleO::Services::ManilaBackendCephFs: OS::Heat::None
OS::TripleO::Services::ComputeNeutronL3Agent: OS::Heat::None
OS::TripleO::Services::ComputeNeutronMetadataAgent: OS::Heat::None
diff --git a/puppet/services/manila-backend-unity.yaml b/puppet/services/manila-backend-unity.yaml
new file mode 100644
index 00000000..9c8310e7
--- /dev/null
+++ b/puppet/services/manila-backend-unity.yaml
@@ -0,0 +1,74 @@
+heat_template_version: pike
+
+description: >
+ Openstack Manila unity backend.
+
+parameters:
+ ManilaUnityDriverHandlesShareServers:
+ type: string
+ default: true
+ ManilaUnityBackendName:
+ type: string
+ default: tripleo_manila_unity
+ ManilaUnityNasLogin:
+ type: string
+ default: ''
+ ManilaUnityNasPassword:
+ type: string
+ default: ''
+ ManilaUnityNasServer:
+ type: string
+ default: ''
+ ManilaUnityServerMetaPool:
+ type: string
+ default: ''
+ ManilaUnityShareDataPools:
+ type: string
+ default: ''
+ ManilaUnityEthernetPorts:
+ type: string
+ default: ''
+ ServiceData:
+ default: {}
+ description: Dictionary packing service data
+ type: json
+ ServiceNetMap:
+ default: {}
+ description: Mapping of service_name -> network name. Typically set
+ via parameter_defaults in the resource registry. This
+ mapping overrides those in ServiceNetMapDefaults.
+ type: json
+ DefaultPasswords:
+ default: {}
+ type: json
+ RoleName:
+ default: ''
+ description: Role name on which the service is applied
+ type: string
+ RoleParameters:
+ default: {}
+ description: Parameters specific to the role
+ type: json
+ EndpointMap:
+ default: {}
+ type: json
+ description: Mapping of service endpoint -> protocol. Typically set
+ via parameter_defaults in the resource registry.
+
+outputs:
+ role_data:
+ description: Role data for the Manila Unity backend.
+ value:
+ service_name: manila_backend_unity
+ config_settings:
+ manila::backend::dellemc_unity::title: {get_param: ManilaUnityBackendName}
+ manila::backend::dellemc_unity::emc_nas_login: {get_param: ManilaUnityNasLogin}
+ manila::backend::dellemc_unity::driver_handles_share_servers: {get_param: ManilaUnityDriverHandlesShareServers}
+ manila::backend::dellemc_unity::emc_nas_password: {get_param: ManilaUnityNasPassword}
+ manila::backend::dellemc_unity::emc_nas_server: {get_param: ManilaUnityNasServer}
+ manila::backend::dellemc_unity::emc_share_backend: {'unity'}
+ manila::backend::dellemc_unity::unity_server_meta_pool: {get_param: ManilaUnityServerMetaPool}
+ manila::backend::dellemc_unity::unity_share_data_pools: {get_param: ManilaUnityShareDataPools}
+ manila::backend::dellemc_unity::unity_ethernet_ports: {get_param: ManilaUnityEthernetPorts}
+ step_config:
+
diff --git a/releasenotes/notes/unity_manila_1967789872aa11e7.yaml b/releasenotes/notes/unity_manila_1967789872aa11e7.yaml
new file mode 100644
index 00000000..9d9f1f3c
--- /dev/null
+++ b/releasenotes/notes/unity_manila_1967789872aa11e7.yaml
@@ -0,0 +1,3 @@
+features:
+ - |
+ Add support for Dell EMC Unity Manila driver
diff --git a/roles/Controller.yaml b/roles/Controller.yaml
index 56f54f54..bfe8c39f 100644
--- a/roles/Controller.yaml
+++ b/roles/Controller.yaml
@@ -82,6 +82,7 @@
- OS::TripleO::Services::ManilaBackendCephFs
- OS::TripleO::Services::ManilaBackendGeneric
- OS::TripleO::Services::ManilaBackendNetapp
+ - OS::TripleO::Services::ManilaBackendUnity
- OS::TripleO::Services::ManilaScheduler
- OS::TripleO::Services::ManilaShare
- OS::TripleO::Services::Memcached
diff --git a/roles/ControllerOpenstack.yaml b/roles/ControllerOpenstack.yaml
index 2cfc0cb9..85368c1d 100644
--- a/roles/ControllerOpenstack.yaml
+++ b/roles/ControllerOpenstack.yaml
@@ -67,6 +67,7 @@
- OS::TripleO::Services::ManilaBackendCephFs
- OS::TripleO::Services::ManilaBackendGeneric
- OS::TripleO::Services::ManilaBackendNetapp
+ - OS::TripleO::Services::ManilaBackendUnity
- OS::TripleO::Services::ManilaScheduler
- OS::TripleO::Services::ManilaShare
- OS::TripleO::Services::Memcached
diff --git a/roles_data.yaml b/roles_data.yaml
index 313fcaa9..f13b4558 100644
--- a/roles_data.yaml
+++ b/roles_data.yaml
@@ -85,6 +85,7 @@
- OS::TripleO::Services::ManilaBackendCephFs
- OS::TripleO::Services::ManilaBackendGeneric
- OS::TripleO::Services::ManilaBackendNetapp
+ - OS::TripleO::Services::ManilaBackendUnity
- OS::TripleO::Services::ManilaScheduler
- OS::TripleO::Services::ManilaShare
- OS::TripleO::Services::Memcached