Allow Neutron to be configured for use of AZs w/o additional t-h-t services introduced. Limitations for the used NeutronMechanismDrivers: * Right now OVN doesn't support AZ aware routing scheduling (later in Train cycle OVN ml2 driver will be extended to support it). * Nor there is Neutron agents deployed normally for OVN. * We do allow the L3 agent taking AZ configs disregard of the used NeutronMechanismDrivers. * But we take the safe path for the DHCP agent and prohibit AZ configuration for it in the OVN case. So there is effectively nothing applies there for Neutron AZs and OVN as it takes a little to no sense to do that yet. Related blueprint split-controlplane-templates Change-Id: I0d97b004c4f162fdefc97a7b603c0136686fa21c Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>changes/24/660724/11
parent
4125f12527
commit
20f34fc556
@ -1,121 +0,0 @@
|
||||
heat_template_version: rocky
|
||||
|
||||
description: >
|
||||
Configuration of Neutron Availability Zones in the overcloud
|
||||
|
||||
parameters:
|
||||
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: {}
|
||||
description: Mapping of service endpoint -> protocol. Typically set
|
||||
via parameter_defaults in the resource registry.
|
||||
type: json
|
||||
AdminPassword:
|
||||
description: The password for the keystone admin account, used for
|
||||
monitoring, querying neutron etc.
|
||||
type: string
|
||||
hidden: true
|
||||
NeutronDefaultAvailabilityZones:
|
||||
description: Comma-separated list of default network availability zones to
|
||||
be used by Neutron if its resource is created without
|
||||
availability zone hints. If not set, the default will be equal
|
||||
to the stack/plan name.
|
||||
default: ''
|
||||
type: string
|
||||
NeutronL3AgentAvailabilityZone:
|
||||
description: Availability zone for Neutron L3 agent. If not set, the
|
||||
default will be equal to the stack/plan name
|
||||
default: ''
|
||||
type: string
|
||||
NeutronDhcpAgentAvailabilityZone:
|
||||
description: Availability zone for Neutron DHCP agent. If not set, the
|
||||
default will be equal to the stack/plan name
|
||||
default: ''
|
||||
type: string
|
||||
NeutronNetworkSchedulerDriver:
|
||||
description: The network schedule driver to use for avialability zones.
|
||||
default: neutron.scheduler.dhcp_agent_scheduler.AZAwareWeightScheduler
|
||||
type: string
|
||||
NeutronRouterSchedulerDriver:
|
||||
description: The router schedule driver to use for avialability zones.
|
||||
default: neutron.scheduler.l3_agent_scheduler.AZLeastRoutersScheduler
|
||||
type: string
|
||||
NeutronDhcpLoadType:
|
||||
description: Additional to the availability zones aware network scheduler.
|
||||
default: networks
|
||||
type: string
|
||||
RootStackName:
|
||||
description: The name of the stack/plan.
|
||||
type: string
|
||||
|
||||
resources:
|
||||
NeutronAvailabilityZones:
|
||||
type: OS::Heat::Value
|
||||
properties:
|
||||
value:
|
||||
if:
|
||||
- equals:
|
||||
- {get_param: NeutronDefaultAvailabilityZones}
|
||||
- ""
|
||||
- {get_param: RootStackName}
|
||||
- {get_param: NeutronDefaultAvailabilityZones}
|
||||
|
||||
NeutronL3AgentAvailabilityZoneReal:
|
||||
type: OS::Heat::Value
|
||||
properties:
|
||||
value:
|
||||
if:
|
||||
- equals:
|
||||
- {get_param: NeutronL3AgentAvailabilityZone}
|
||||
- ""
|
||||
- {get_param: RootStackName}
|
||||
- {get_param: NeutronL3AgentAvailabilityZone}
|
||||
|
||||
NeutronDhcpAgentAvailabilityZoneReal:
|
||||
type: OS::Heat::Value
|
||||
properties:
|
||||
value:
|
||||
if:
|
||||
- equals:
|
||||
- {get_param: NeutronDhcpAgentAvailabilityZone}
|
||||
- ""
|
||||
- {get_param: RootStackName}
|
||||
- {get_param: NeutronDhcpAgentAvailabilityZone}
|
||||
|
||||
outputs:
|
||||
role_data:
|
||||
description: Role data for the Neutron Availability Zone configuration value
|
||||
service:
|
||||
service_name: neutron_az_config
|
||||
config_settings:
|
||||
neutron::server::dhcp_load_type: {get_param: NeutronDhcpLoadType}
|
||||
neutron::server::network_scheduler_driver:
|
||||
{get_param: NeutronNetworkSchedulerDriver}
|
||||
neutron::server::router_scheduler_driver:
|
||||
{get_param: NeutronRouterSchedulerDriver}
|
||||
neutron::server::default_availability_zones:
|
||||
{str_split: [',', {get_attr: [NeutronAvailabilityZones, value]}]}
|
||||
neutron::agents::l3::availability_zone:
|
||||
{get_attr: [NeutronL3AgentAvailabilityZoneReal, value]}
|
||||
neutron::agents::dhcp::availability_zone:
|
||||
{get_attr: [NeutronDhcpAgentAvailabilityZoneReal, value]}
|
@ -1,2 +0,0 @@
|
||||
resource_registry:
|
||||
OS::TripleO::Services::NeutronAZConfig: ../deployment/nova/neutron-az-config.yaml
|
@ -1,14 +1,24 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
A new service, NeutronAZConfig, is avaialable which can be used to configure
|
||||
Neutron for using avaialabiity zones. By default the service is mapped to
|
||||
None, but can be enabled by including `environments/neutron-az-config.yaml`.
|
||||
``NeutronDefaultAvailabilityZones``, ``NeutronDhcpAgentAvailabilityZone``,
|
||||
``NeutronL3AgentAvailabilityZone``, ``NeutronDhcpAgentsPerNetwork``,
|
||||
``NeutronNetworkSchedulerDriver``, ``NeutronRouterSchedulerDriver`` and
|
||||
``NeutronDhcpLoadType`` parameters can be used to configure various AZ
|
||||
configurations. By default, ``Neutron*AvailabilityZone`` takes the name of
|
||||
the heat stack/deployment plan, and ``NeutronDefaultAvailabilityZones``
|
||||
takes an additional value 'nova'. For details, see
|
||||
`Official Documentaion <https://docs.openstack.org/neutron/latest/admin/config-az.html>`_.
|
||||
Neutron can be configured for using avaialabiity zones (AZs).
|
||||
|
||||
.. note:: OVN does not normally run Neutron agents and also has yet support
|
||||
for AZ-aware routing scheduling. Therefore, no effective AZ configurations
|
||||
can be applied for the network services for the
|
||||
``NeutronMechanismDrivers: ovn`` case.
|
||||
|
||||
`NeutronDefaultAvailabilityZones`, `NeutronDhcpAgentAvailabilityZone`,
|
||||
`NeutronL3AgentAvailabilityZone`, `NeutronDhcpAgentsPerNetwork`,
|
||||
`NeutronNetworkSchedulerDriver`, `NeutronRouterSchedulerDriver` and
|
||||
`NeutronDhcpLoadType` can be used to configure various AZ configurations.
|
||||
|
||||
By default, `Neutron*AvailabilityZone(s)` takes an empty value, which
|
||||
defines no AZs associated with the associated Neutron network service.
|
||||
|
||||
.. note:: The empty AZ name cannot be re-defined via
|
||||
`Neutron*AvailabilityZone(s)` because of the empty value has been
|
||||
reserved for another purposes in t-h-t.
|
||||
|
||||
For details, see
|
||||
`Official Documentaion <https://docs.openstack.org/neutron/latest/admin/config-az.html>`_.
|
||||
|
Loading…
Reference in new issue