Bug 1983748 - NeutronL3AgentAvailabilityZone does not set specified value for Availability zone of Neutron L3 agent
Summary: NeutronL3AgentAvailabilityZone does not set specified value for Availability ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Bernard Cafarelli
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-19 16:20 UTC by Marian Krcmarik
Modified: 2023-02-16 11:24 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20210726124811.d647156.el8ost
Doc Type: Known Issue
Doc Text:
In Red Hat OpenStack Platform (RHOSP) deployments that use the Modular Layer 2 plug-in with the Open vSwitch (ML2/OVS) mechanism driver, there is currently a known issue where the Orchestration service (heat) parameter, `NeutronL3AgentAvailabilityZone` does not set the relevant Neutron L3 agent parameter correctly. + Workaround: use a custom hieradata statement to set this value. In the example that follows, replace `[ROLE]` with the composable role name that is appropriate for your site. + .Example + ---- [ROLE]ExtraConfig: neutron::agents::l3::availability_zone: role_availability_zone ---- + https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/advanced_overcloud_customization/assembly_configuration-hooks#proc_puppet-customizing-hieradata-for-roles_configuration-hooks For more information, see link:[Puppet: Customizing hieradata for roles] in the _Advanced Overcloud Customization_ guide.
Clone Of:
Environment:
Last Closed: 2022-03-23 22:28:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1937369 0 None None None 2021-07-23 10:37:11 UTC
OpenStack gerrit 802001 0 None MERGED [stable only] Fix NeutronL3AgentAvailabilityZone parameter 2021-07-26 10:46:54 UTC
Red Hat Issue Tracker OSP-6308 0 None None None 2021-11-15 13:06:28 UTC
Red Hat Product Errata RHSA-2022:0995 0 None None None 2022-03-23 22:28:57 UTC

Description Marian Krcmarik 2021-07-19 16:20:50 UTC
Description of problem:
If the NeutronL3AgentAvailabilityZone THT paramater is used the specified value of AZ for L3 agent is not being set, instead the default value "nova" is set for Neutron Availability zone of L3 agent.
The similar parameter NeutronDhcpAgentAvailabilityZone works as expected as well as setting it as ExtraConfig parameter for the role works as expected too, for example:
  Controller0ExtraConfig:
      neutron::agents::l3::availability_zone: az-central

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Use NeutronL3AgentAvailabilityZone parameter for setting AZ of Neutron L3 agent in tripleo heat templates.

Actual results:
The value of "nova" is set as AZ for L3 agent.

Expected results:
The specified value of the parameter should be set as the Neutron AZ for L3 agent.

Additional info:

Comment 2 Bernard Cafarelli 2021-07-23 10:24:11 UTC
Confirmed, the parameter is currently ignored, there is a typo in deployment/neutron/neutron-l3-container-puppet.yaml:
          -
          - if:
            - az_unset
            - {}
            - neutron::agents::l3::availability_zone: {get_param: NeutronL3AgentAvailabilityZone}
            if:
            - l3_agent_extensions_empty
            - {}
            - neutron::agents::l3::extensions: {get_param: NeutronL3AgentExtensions}

That second if should not be in same item. This was fixed in the middle of larger commit https://opendev.org/openstack/tripleo-heat-templates/commit/27788212ccaff768fbf192d6a16e478d6bfc75bb in wallaby, so parameter is broken in earlier stable versions.

Comment 18 errata-xmlrpc 2022-03-23 22:28:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat OpenStack Platform 16.2 (openstack-tripleo-heat-templates) security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0995


Note You need to log in before you can comment on or make changes to this bug.