Add NovaCrossAZAttach parameter

Adds a parameter to set [cinder]/cross_az_attach in nova to control whether
instances can attach cinder volumes from a different availability zone.
Defaults to true.
Set to false in DCN sample environment files as block I/O between sites would
be extremely slow (if it functions at all).

Change-Id: Ib15e305e34a3fddfc6f50986d2e27b6da815bd19
(cherry picked from commit f5bcd0acfc)
This commit is contained in:
Oliver Walsh 2020-04-20 17:51:00 +01:00
parent 623f6fa9ca
commit 72cb712e16
4 changed files with 18 additions and 0 deletions

View File

@ -241,6 +241,11 @@ parameters:
default: false
description: Whether this is an cell additional to the default cell.
type: boolean
NovaCrossAZAttach:
default: true
description:
Whether instances can attach cinder volumes from a different availability zone.
type: boolean
conditions:
@ -368,6 +373,7 @@ outputs:
nova::cron::purge_shadow_tables::all_cells: {get_param: NovaCronPurgeShadowTablesAllCells}
nova::compute::sync_power_state_interval: {get_param: NovaSyncPowerStateInterval}
nova_is_additional_cell: {get_param: NovaAdditionalCell}
nova:cross_az_attach: {get_param: NovaCrossAZAttach}
- get_attr: [RoleParametersValue, value]
-
if:

View File

@ -38,6 +38,10 @@ parameter_defaults:
# Type: string
NovaComputeAvailabilityZone: ''
# Whether instances can attach cinder volumes from a different availability zone.
# Type: boolean
NovaCrossAZAttach: False
resource_registry:
OS::TripleO::Network::Ports::OVNDBsVipPort: ../network/ports/noop.yaml
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/noop.yaml

View File

@ -25,6 +25,10 @@ parameter_defaults:
# Type: string
NovaComputeAvailabilityZone: ''
# Whether instances can attach cinder volumes from a different availability zone.
# Type: boolean
NovaCrossAZAttach: False
resource_registry:
OS::TripleO::Network::Ports::OVNDBsVipPort: ../network/ports/noop.yaml
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/noop.yaml

View File

@ -15,8 +15,12 @@ environments:
network/external.yaml:
parameters:
- ManageNetworks
deployment/nova/nova-base-puppet.yaml:
parameters:
- NovaCrossAZAttach
sample_values: &sample_values
ManageNetworks: false
NovaCrossAZAttach: false
resource_registry: &dcn_resource_registry
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/noop.yaml
OS::TripleO::Network::Ports::OVNDBsVipPort: ../network/ports/noop.yaml