Merge "Filter empty string in PingTestGatewayIPsMap yagl"

This commit is contained in:
Zuul 2022-05-23 07:49:34 +00:00 committed by Gerrit Code Review
commit 857321d49a
2 changed files with 12 additions and 1 deletions

View File

@ -1241,7 +1241,7 @@ resources:
{%- for role in roles %}
{{role.name}}:
yaql:
expression: list($.data.where($ != null)).flatten()
expression: list($.data.where($ != null and len($) > 0)).flatten()
data:
- {get_attr: [Networks, net_attributes_map, ctlplane, subnets, {get_param: {{role.name}}ControlPlaneSubnet}, gateway_ip]}
{%- for network in networks %}

View File

@ -0,0 +1,11 @@
---
fixes:
- |
Fixes an issue where gateway ping validations performed during deployment
would fail. When setting the `ManageNetworks` parameter to `false` and no
gateway was configured, the list of gateway IP addresses to ping would
include empty strings for networks with no gateway. The validation would
attempt to run a ping command without the address to ping, which caused the
deployment to fail. See bug:
`1973866 <https://bugs.launchpad.net/tripleo/+bug/1973866>`_.