Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2189491

Summary: [RHOSP16.2] [tripleo] PingTestGatewayIPsMap will never have ctlplane gateways
Product: Red Hat OpenStack Reporter: Walter Reiner <wreiner>
Component: openstack-tripleo-heat-templatesAssignee: Harald Jensås <hjensas>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: medium Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: gregraka, hjensas, jlabarre, mariel, mburns, pweeks
Target Milestone: z6Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)Flags: hjensas: needinfo-
Hardware: x86_64   
OS: Linux   
URL: https://bugs.launchpad.net/tripleo/+bug/2017636
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20230717085025.1608f56.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 19:18:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Walter Reiner 2023-04-25 12:49:22 UTC
Description of problem:

When setting up their new RHOSP 16.2.4 cluster one of my partners got the warning:
"WARNING: Following parameter(s) are defined but not currently used in the deployment plan. These parameters may be valid but not in use due to the service or deployment configuration. CinderEnableNetappBackend, CtlplaneNetworkAttributes, ..."

The parameter seems to be set in the file builddir/tripleo-config-generated-env-files/undercloud_parameters.yaml.                                                                              

They also do have a second, but older cluster running 16.2 where this parameter is not present in the created files.

I've already checked the source of the triple-o client and the heat templates, also I have compared the two installation templates regarding the undercloud conf (please see case 03450021) but I'm not sure which config directive would set/not-set this parameter.

An upstream bug was already created to track upstream:

We never set [Networks, net_attributes_map, ctlplane] in Train. The PingTestGatewayIPsMap tries to use that information but it will always result in 'null' since the data is never set in net_attributes_map.

There is a missing backport: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/753282

The PingTestGatewayIPsMap[1] which is the fix for RHBZ#1875962 tries to get the ctlplane gateways.

overcloud.j2.yaml#L1111
 {get_attr: [Networks, net_attributes_map, ctlplane, subnets, {get_param: {{role.name}}ControlPlaneSubnet}, gateway_ip]}

However, we never set anything for the ctlplane in Train so that would return "null" which does not create an error since null is filtered in the YAQL on overcloud.j2.yaml#L1109.

[1] https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/train/overcloud.j2.yaml#L1105-L1111

Comment 6 James E. LaBarre 2023-10-18 11:59:22 UTC
Confirmed shanges are in place, current openstack-tripleo-heat-templates-11.6.1-2.20230808225216 RPM in latest compose

Comment 11 errata-xmlrpc 2023-11-08 19:18:36 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 (Red Hat OpenStack Platform 16.2.6 (Train) bug fix and enhancement advisory), 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:6307