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
This commit is contained in:
Oliver Walsh 2020-04-20 17:51:00 +01:00
parent a74a8cd69b
commit f5bcd0acfc
4 changed files with 18 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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