From 57652b8efed61e5ab038338d305ce5a68075b0ab Mon Sep 17 00:00:00 2001 From: rajinir Date: Sun, 17 May 2020 19:45:44 -0500 Subject: [PATCH] Support for Dell EMC VXFlexOS Backend Adding support for VXFlexOS Volume Backend Change-Id: I9e8e3b4395c25a0458d28b15666768152736c752 Closes-Bug: 1875176 --- ...inder-backend-dellemc-vxflexos-puppet.yaml | 148 ++++++++++++++++++ .../cinder-dellemc-vxflexos-config.yaml | 35 +++++ overcloud-resource-registry-puppet.j2.yaml | 1 + .../vxflexos-driver-bec8e372280c44e6.yaml | 4 + roles/Controller.yaml | 1 + roles/ControllerNoCeph.yaml | 1 + roles/ControllerNovaStandalone.yaml | 1 + roles/ControllerStorageDashboard.yaml | 1 + roles/ControllerStorageNfs.yaml | 1 + roles/Standalone.yaml | 1 + roles_data.yaml | 1 + 11 files changed, 195 insertions(+) create mode 100644 deployment/cinder/cinder-backend-dellemc-vxflexos-puppet.yaml create mode 100644 environments/cinder-dellemc-vxflexos-config.yaml create mode 100644 releasenotes/notes/vxflexos-driver-bec8e372280c44e6.yaml diff --git a/deployment/cinder/cinder-backend-dellemc-vxflexos-puppet.yaml b/deployment/cinder/cinder-backend-dellemc-vxflexos-puppet.yaml new file mode 100644 index 0000000000..f2f1cec9b0 --- /dev/null +++ b/deployment/cinder/cinder-backend-dellemc-vxflexos-puppet.yaml @@ -0,0 +1,148 @@ +# Copyright (c) 2020 Dell Inc, or its subsidiaries. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +heat_template_version: rocky + +description: > + Openstack Cinder Dell EMC VxFlexOS backend + +parameters: + CinderEnableVxFlexOSBackend: + type: boolean + default: true + CinderVxFlexOSBackendName: + type: string + default: 'tripleo_dellemc_VxFlexOS' + CinderVxFlexOSAvailabilityZone: + default: '' + description: > + The availability zone of the VxFlexOS Cinder backend. + When set, it overrides the default CinderStorageAvailabilityZone. + type: string + CinderVxFlexOSSanIp: + type: string + description: VxFlexOS Gateway server IP + CinderVxFlexOSSanLogin: + type: string + description: VxFlexOS user credentials. + CinderVxFlexOSSanPassword: + type: string + hidden: true + description: VxFlexOS user password. + CinderVxFlexOSStoragePools: + type: string + description: > + Storage Pools. Comma separated list of storage pools used to provide + volumes. Each pool should be specified as a + protection_domain_name:storage_pool_name value + CinderVxFlexOSAllowMigrationDuringRebuild: + type: boolean + default: false + description: Allow volume migration during rebuild. + CinderVxFlexOSAllowNonPaddedVolumes: + type: boolean + default: false + description: > + Allow volumes to be created in Storage Pools when zero padding is + disabled. This option should not be enabled if multiple tenants will + utilize volumes from a shared Storage Pool. + CinderVxFlexOSMaxOverSubscriptionRatio: + type: number + default: 10.0 + description: Maximum value allowed is 10.0. + CinderVxFlexOSRestServerPort: + type: number + default: 443 + description: (Port(min=0, max=65535)) VxFlexOS Gateway REST server port. + CinderVxFlexOSRoundVolumeCapacity: + type: boolean + default: true + description: > + Round volume sizes up to 8GB boundaries. VxFlex OS requires volumes to be + sized in multiples of 8GB. If set to False, volume creation will fail for + volumes not sized properly. + CinderVxFlexOSServerApiVersion: + type: string + default: '' + description: VxFlexOS API version. + CinderVxFlexOSUnmapVolumeBeforeDeletion: + type: boolean + default: false + description: Unmap volumes before deletion. + CinderVxFlexOSSanThinProvision: + type: boolean + default: true + description: Wheater to use thin provisioning or not. + CinderVxFlexOSDriverSSLCertVerify: + type: boolean + default: false + description: Verify the server certificate. + CinderVxFlexOSDriverSSLCertPath: + type: string + default: '' + description: Server certificate path. + 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 Cinder Dell EMC VxFlexOS backend. + value: + service_name: cinder_backend_vxflexos + config_settings: + map_merge: + - tripleo::profile::base::cinder::volume::cinder_enable_VxFlexOS_backend: {get_param: CinderEnableVxFlexOSBackend} + cinder::backend::dellemc_vxflexos::volume_backend_name: {get_param: CinderVxFlexOSBackendName} + cinder::backend::dellemc_vxflexos::san_login: {get_param: CinderVxFlexOSSanLogin} + cinder::backend::dellemc_vxflexos::san_password: {get_param: CinderVxFlexOSSanPassword} + cinder::backend::dellemc_vxflexos::san_ip: {get_param: CinderVxFlexOSSanIp} + cinder::backend::dellemc_vxflexos::vxflexos_storage_pools: {get_param: CinderVxFlexOSStoragePools} + cinder::backend::dellemc_vxflexos::vxflexos_allow_migration_during_rebuild: {get_param: CinderVxFlexOSAllowMigrationDuringRebuild} + cinder::backend::dellemc_vxflexos::vxflexos_allow_non_padded_volumes: {get_param: CinderVxFlexOSAllowNonPaddedVolumes} + cinder::backend::dellemc_vxflexos::vxflexos_max_over_subscription_ratio: {get_param: CinderVxFlexOSMaxOverSubscriptionRatio} + cinder::backend::dellemc_vxflexos::vxflexos_rest_server_port: {get_param: CinderVxFlexOSRestServerPort} + cinder::backend::dellemc_vxflexos::vxflexos_round_volume_capacity: {get_param: CinderVxFlexOSRoundVolumeCapacity} + cinder::backend::dellemc_vxflexos::vxflexos_server_api_version: {get_param: CinderVxFlexOSRoundVolumeCapacity} + cinder::backend::dellemc_vxflexos::vxflexos_unmap_volume_before_deletion: {get_param: CinderVxFlexOSUnmapVolumeBeforeDeletion} + cinder::backend::dellemc_vxflexos::san_thin_provision: {get_param: CinderVxFlexOSSanThinProvision} + cinder::backend::dellemc_vxflexos::driver_ssl_cert_verify: {get_param: CinderVxFlexOSDriverSSLCertVerify} + cinder::backend::dellemc_vxflexos::driver_ssl_cert_path: {get_param: CinderVxFlexOSDriverSSLCertPath} + - + if: + - {equals : [{get_param: CinderVxFlexOSAvailabilityZone}, '']} + - {} + - cinder::backend::dellemc_vxflexos::backend_availability_zone: {get_param: CinderVxFlexOSAvailabilityZone} diff --git a/environments/cinder-dellemc-vxflexos-config.yaml b/environments/cinder-dellemc-vxflexos-config.yaml new file mode 100644 index 0000000000..7fa284e103 --- /dev/null +++ b/environments/cinder-dellemc-vxflexos-config.yaml @@ -0,0 +1,35 @@ +# Copyright (c) 2020 Dell Inc, or its subsidiaries. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# A Heat environment file which can be used to enable a +# a Cinder Dell EMC VxFlexOS backend, configured via puppet +resource_registry: + OS::TripleO::Services::CinderBackendVxFlexOS: ../deployment/cinder/cinder-backend-vxflexos-puppet.yaml + +parameter_defaults: + CinderEnableVxFlexOSBackend: true + CinderVxFlexOSBackendName: 'tripleo_dellemc_vxflexos' + CinderVxFlexOSSanIp: '' + CinderVxFlexOSSanLogin: '' + CinderVxFlexOSSanPassword: '' + CinderVxFlexOSStoragePools: 'domain1:pool1' + CinderVxFlexOSAllowMigrationDuringRebuild: false + CinderVxFlexOSAllowNonPaddedVolumes: false + CinderVxFlexOSMaxOverSubscriptionRatio: 7.0 + CinderVxFlexOSRestServerPort: 443 + CinderVxFlexOSServerApiVersion: '' + CinderVxFlexOSUnmapVolumeBeforeDeletion: false + CinderVxFlexOSSanThinProvision: true + CinderVxFlexOSDriverSSLCertVerify: false + CinderVxFlexOSDriverSSLCertPath: '' diff --git a/overcloud-resource-registry-puppet.j2.yaml b/overcloud-resource-registry-puppet.j2.yaml index c41ebc48f6..d566936d3c 100644 --- a/overcloud-resource-registry-puppet.j2.yaml +++ b/overcloud-resource-registry-puppet.j2.yaml @@ -278,6 +278,7 @@ resource_registry: OS::TripleO::Services::CinderBackendDellEMCUnity: OS::Heat::None OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI: OS::Heat::None OS::TripleO::Services::CinderBackendDellEMCVNX: OS::Heat::None + OS::TripleO::Services::CinderBackendDellEMCVxFlexOS: OS::Heat::None OS::TripleO::Services::CinderBackendDellEMCXtremio: OS::Heat::None OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI: OS::Heat::None OS::TripleO::Services::CinderBackendNetApp: OS::Heat::None diff --git a/releasenotes/notes/vxflexos-driver-bec8e372280c44e6.yaml b/releasenotes/notes/vxflexos-driver-bec8e372280c44e6.yaml new file mode 100644 index 0000000000..e71e749a50 --- /dev/null +++ b/releasenotes/notes/vxflexos-driver-bec8e372280c44e6.yaml @@ -0,0 +1,4 @@ +--- +features: + - Added support for VxFlexOS cinder block + storage backend driver diff --git a/roles/Controller.yaml b/roles/Controller.yaml index 7fa112caa2..cef28b8d65 100644 --- a/roles/Controller.yaml +++ b/roles/Controller.yaml @@ -63,6 +63,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp diff --git a/roles/ControllerNoCeph.yaml b/roles/ControllerNoCeph.yaml index fea660189e..b976bf7b96 100644 --- a/roles/ControllerNoCeph.yaml +++ b/roles/ControllerNoCeph.yaml @@ -55,6 +55,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp diff --git a/roles/ControllerNovaStandalone.yaml b/roles/ControllerNovaStandalone.yaml index e768f60198..9c1489abee 100644 --- a/roles/ControllerNovaStandalone.yaml +++ b/roles/ControllerNovaStandalone.yaml @@ -48,6 +48,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp diff --git a/roles/ControllerStorageDashboard.yaml b/roles/ControllerStorageDashboard.yaml index 50c473efab..2fc0ca2f63 100644 --- a/roles/ControllerStorageDashboard.yaml +++ b/roles/ControllerStorageDashboard.yaml @@ -64,6 +64,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp diff --git a/roles/ControllerStorageNfs.yaml b/roles/ControllerStorageNfs.yaml index c3fd95d804..ccfcf47d0c 100644 --- a/roles/ControllerStorageNfs.yaml +++ b/roles/ControllerStorageNfs.yaml @@ -65,6 +65,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp diff --git a/roles/Standalone.yaml b/roles/Standalone.yaml index 279e8be8e2..fa65d187e1 100644 --- a/roles/Standalone.yaml +++ b/roles/Standalone.yaml @@ -54,6 +54,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendDellSc diff --git a/roles_data.yaml b/roles_data.yaml index 80523d579d..dca3d9ac84 100644 --- a/roles_data.yaml +++ b/roles_data.yaml @@ -66,6 +66,7 @@ - OS::TripleO::Services::CinderBackendDellEMCUnity - OS::TripleO::Services::CinderBackendDellEMCVMAXISCSI - OS::TripleO::Services::CinderBackendDellEMCVNX + - OS::TripleO::Services::CinderBackendDellEMCVxFlexOS - OS::TripleO::Services::CinderBackendDellEMCXtremio - OS::TripleO::Services::CinderBackendDellEMCXTREMIOISCSI - OS::TripleO::Services::CinderBackendNetApp