Bug 2235325 - Deploying ovn-bgp-agent overrides frr per-role parameters
Summary: Deploying ovn-bgp-agent overrides frr per-role parameters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.1 (Wallaby)
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: z1
: 17.1
Assignee: Luca Miccini
QA Contact: Eduardo Olivares
URL:
Whiteboard:
Depends On:
Blocks: 2210151
TreeView+ depends on / blocked
 
Reported: 2023-08-28 13:13 UTC by Eduardo Olivares
Modified: 2023-09-20 00:30 UTC (History)
4 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-1.20230519151023.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-20 00:29:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 892914 0 None NEW Only run ovn_bgp_agent tasks from the tripleo_frr role 2023-08-29 15:20:07 UTC
Red Hat Issue Tracker OSP-27897 0 None None None 2023-08-29 14:58:36 UTC
Red Hat Product Errata RHBA-2023:5138 0 None None None 2023-09-20 00:30:08 UTC

Description Eduardo Olivares 2023-08-28 13:13:05 UTC
Description of problem:
During the verification of BZ2210151, the following parameters were configured at per-role level:
  ControllerRack1Parameters:
    FrrBgpAsn: 65101
    FrrOvnBgpAgentAsn: 65101
  ControllerRack2Parameters:
    FrrBgpAsn: 65102
    FrrOvnBgpAgentAsn: 65102
  ControllerRack3Parameters:
    FrrBgpAsn: 65103
    FrrOvnBgpAgentAsn: 65103
  ComputeRack1Parameters:
    FrrBgpAsn: 65101
    FrrOvnBgpAgentAsn: 65101
  ComputeRack2Parameters:
    FrrBgpAsn: 65102
    FrrOvnBgpAgentAsn: 65102
  ComputeRack3Parameters:
    FrrBgpAsn: 65103
    FrrOvnBgpAgentAsn: 65103


After the overcloud deploy was successful, we found some of the values were wrong on the overcloud nodes configuration (the following node is a compute from rack1, so its values should be 65101 in both cases):
[root@cmp-1-0 ~]# grep bgp_AS /var/lib/config-data/ansible-generated/ovn-bgp-agent/etc/ovn-bgp-agent/bgp-agent.conf
bgp_AS=65101
[root@cmp-1-0 ~]# grep "router bgp" /var/lib/config-data/ansible-generated/frr/etc/frr/frr.conf
router bgp 65103


After some investigation, it seems the problem is that the frr configuration, which is correctly generated at first, is overriden later during the step that generates the ovn-bgp-agent configuration. It seems the reason for this is that both frr and ovn-bgp-agent share the same role "tripleo_frr" when their configurations are generated.


Version-Release number of selected component (if applicable):
RHOS-17.1-RHEL-9-20230824.n.1
openstack-tripleo-heat-templates-14.3.1-1.20230519151022.el9ost.noarch
tripleo-ansible-3.3.1-1.20230518201537.el9ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy Overcloud nodes with both Frr and OVNBgpAgent services
2. Configure per-role parameters with different values, like the configuration shown above 


Actual results:
values from the per-role parameters are wrong on the frr configuration

Expected results:
values from the per-role parameters are correct on the frr configuration

Comment 11 errata-xmlrpc 2023-09-20 00:29:56 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 (Release of components for Red Hat OpenStack Platform 17.1.1 (Wallaby)), 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/RHBA-2023:5138


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