Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add support for powermax.
Browse files Browse the repository at this point in the history
Change-Id: I8cd4eeb1a8dac9d6823b0a05450db5dfc560ea09
Depends-on: https://review.opendev.org/c/openstack/puppet-tripleo/+/834936
Partial-bug: #1951131
(cherry picked from commit 06787c8)
(cherry picked from commit b8e5013)
(cherry picked from commit 0225524)
  • Loading branch information
david-hill authored and gouthampacha committed Mar 29, 2022
1 parent 8b4cb9a commit 7a16df5
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
80 changes: 80 additions & 0 deletions deployment/manila/manila-backend-powermax.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
heat_template_version: rocky

description: >
Openstack Manila powermax backend.
parameters:
ManilaPowerMaxBackendName:
type: string
default: tripleo_manila_powermax
ManilaPowerMaxAvailabilityZone:
default: ''
description: >
The availability zone of the PowerMax backend.
When set, it overrides the default ManilaStorageAvailabilityZone.
type: string
ManilaPowerMaxNasLogin:
type: string
default: ''
ManilaPowerMaxNasPassword:
type: string
default: ''
hidden: true
ManilaPowerMaxNasServer:
type: string
default: ''
ManilaPowerMaxServerContainer:
type: string
default: ''
ManilaPowerMaxShareDataPools:
type: string
default: ''
ManilaPowerMaxEthernetPorts:
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. Use
parameter_merge_strategies to merge it with the defaults.
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 PowerMax backend.
value:
service_name: manila_backend_powermax
config_settings:
map_merge:
- manila::backend::dellemc_powermax::title: {get_param: ManilaPowerMaxBackendName}
manila::backend::dellemc_powermax::emc_nas_login: {get_param: ManilaPowerMaxNasLogin}
manila::backend::dellemc_powermax::emc_nas_password: {get_param: ManilaPowerMaxNasPassword}
manila::backend::dellemc_powermax::emc_nas_server: {get_param: ManilaPowerMaxNasServer}
manila::backend::dellemc_powermax::emc_share_backend: powermax
manila::backend::dellemc_powermax::powermax_server_container: {get_param: ManilaPowerMaxServerContainer}
manila::backend::dellemc_powermax::powermax_share_data_pools: {get_param: ManilaPowerMaxShareDataPools}
manila::backend::dellemc_powermax::powermax_ethernet_ports: {get_param: ManilaPowerMaxEthernetPorts}
manila::backend::dellemc_powermax::emc_nas_server_secure: {get_param: ManilaPowerMaxNasSecureServer}
manila::backend::dellemc_powermax::emc_ssl_cert_path: {get_param: ManilaPowerMaxSSLCertPath}
manila::backend::dellemc_powermax::emc_ssl_cert_verify: {get_param: ManilaPowerMaxSSLCertVerify}
- if:
- { equals: [ { get_param: ManilaPowerMaxAvailabilityZone }, '' ] }
- { }
- manila::backend::dellemc_powermax::backend_availability_zone: { get_param: ManilaPowerMaxAvailabilityZone }
20 changes: 20 additions & 0 deletions environments/manila-powermax-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This environment file enables Manila with the PowerMax backend.
resource_registry:
OS::TripleO::Services::ManilaApi: ../deployment/manila/manila-api-container-puppet.yaml
OS::TripleO::Services::ManilaScheduler: ../deployment/manila/manila-scheduler-container-puppet.yaml
# Only manila-share is pacemaker managed:
OS::TripleO::Services::ManilaShare: ../deployment/manila/manila-share-pacemaker-puppet.yaml
OS::TripleO::Services::ManilaBackendPowerMax: ../deployment/manila/manila-backend-powermax.yaml

parameter_defaults:
ManilaPowerMaxBackendName: tripleo_manila_powermax
ManilaPowerMaxDriverHandlesShareServers: true
ManilaPowerMaxNasLogin: ''
ManilaPowerMaxNasPassword: ''
ManilaPowerMaxNasServer: ''
ManilaPowerMaxServerContainer: ''
ManilaPowerMaxShareDataPools: ''
ManilaPowerMaxEthernetPorts: ''
ManilaPowerMaxNasSecureServer: true
ManilaPowerMaxSSLCertPath: ''
ManilaPowerMaxSSLCertVerify: true

0 comments on commit 7a16df5

Please sign in to comment.