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

Bug 2080869

Summary: [16.2][regression] When using ManageNetworks: false stack create fail with `Invalid condition "is_ipv6"`
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: openstack-tripleo-heat-templatesAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: bdobreli, jparker, mburns, mkrcmari, owalsh, sbekkerm, spower, tvignaud
Target Milestone: z3Keywords: Patch, Regression, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20220409014851.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 16:07:20 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 Martin Schuppert 2022-05-02 08:29:12 UTC
Description of problem:

With osp-director-operator ManageNetworks: false is used as there is no full undercloud and neutron. 

Backports for BZ1875962 missed the `is_ipv6` condition and `CloudDomain` parameter in network.j2. As a result rendering the ansible playbooks fail with [1]:
~~~
2022-05-02T06:55:47.087417616Z ERROR: resources.Networks<file:///home/cloud-admin/tripleo-deploy-scratch/tripleo-heat-installer-templates/network/networks.yaml>.resources.TenantNetwork<file:///home/cloud-admin/tripleo-deploy-scratch/tripleo-heat-installer-templates/network/tenant.yaml>.outputs.subnet_attrs.value.if.tenant_subnet.ip_version.if: : Invalid condition "is_ipv6"
~~~

A fix got merged upstream via [2], but is missing in the downstream z3 compose.

[1] https://rhos-ci-staging-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/k8s/view/osp-director-operator/view/rhos/job/osp-director-dev-tools-16.2_subnet/114/artifact/logs/must-gather-20220502T070707008767/quay-io-openstack-k8s-operators-must-gather-sha256-dc694a23be27f9011e5f86dcdd664c6501b2f33648341e430ac93c3aee474daf/namespaces/openstack/pods/generate-config-default-qsmwg/generateplaybooks/generateplaybooks/logs/current.log
[2] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/839195/

Version-Release number of selected component (if applicable):
16.2.3 - container tag: 16.2_20220418.1

How reproducible:
always

Steps to Reproduce:
1. use ManageNetworks: false
2.
3.

Actual results:
fail with above error

Expected results:
Heat stack create to render playbooks should render fine.

Additional info:

Comment 4 Martin Schuppert 2022-05-02 13:03:56 UTC
Also affects DCN deployments with traditional undercloud which also use ManageNetworks: false.

Comment 6 Martin Schuppert 2022-05-03 06:56:09 UTC
Also affects multi cell deployments with traditional undercloud when ManageNetworks: false is used.

Comment 15 errata-xmlrpc 2022-06-22 16:07:20 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 16.2.3 (Train)), 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-2022:4793