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

Bug 1810291

Summary: Tripleo tools/process-templates.py generates network-environment-v6.yaml without TenantInterfaceDefaultRoute
Product: Red Hat OpenStack Reporter: Yuri Obshansky <yobshans>
Component: openstack-tripleo-heat-templatesAssignee: Adriano Petrich <apetrich>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: bfournie, dsneddon, hjensas, mburns, ramishra, slinaber
Target Milestone: z2Keywords: Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200403214903.7648856.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-14 12:16:18 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:
Attachments:
Description Flags
network-environment-v6.yaml
none
network_data.yaml
none
roles_data.yaml none

Description Yuri Obshansky 2020-03-04 21:42:10 UTC
Description of problem:
Generated by Tripleo tools/process-templates.py /home/stack/openstack-tripleo-heat-templates-rendered-central/environments/network-environment-v6.yaml doesn't contain parameter TenantInterfaceDefaultRoute.

Version-Release number of selected component (if applicable):
openstack-tripleo-puppet-elements-11.2.2-0.20200128210949.d668f88.el8ost.noarch
python3-tripleoclient-12.3.2-0.20200130192329.78ac810.el8ost.noarch
python3-tripleo-common-11.3.3-0.20200206225551.18d4fbc.el8ost.noarch
openstack-tripleo-common-11.3.3-0.20200206225551.18d4fbc.el8ost.noarch
puppet-tripleo-11.4.1-0.20200205150840.71ff36d.el8ost.noarch
openstack-tripleo-image-elements-10.6.1-0.20191022065313.7338463.el8ost.noarch
openstack-tripleo-validations-11.3.2-0.20200206065550.1a9b92a.el8ost.noarch
openstack-tripleo-heat-templates-11.3.2-0.20200211065544.d3d6dc3.el8ost.noarch
ansible-tripleo-ipsec-9.2.0-0.20191022054642.ffe104c.el8ost.noarch
tripleo-ansible-0.4.2-0.20200207140442.b750574.el8ost.noarch
python3-tripleoclient-heat-installer-12.3.2-0.20200130192329.78ac810.el8ost.noarch
ansible-role-tripleo-modify-image-1.1.1-0.20200122200932.58d7a5b.el8ost.noarch
openstack-tripleo-common-containers-11.3.3-0.20200206225551.18d4fbc.el8ost.noarch


How reproducible:
$ cd /usr/share/openstack-tripleo-heat-templates
$ ./tools/process-templates.py -o ~/openstack-tripleo-heat-templates-rendered-central -n /home/stack/central/network/network_data.yaml -r /home/stack/central/roles/roles_data.yaml


Steps to Reproduce:
1.
2.
3.

Actual results:
  # Customize the IP range to use for static IPs and VIPs
  TenantAllocationPools: [{'start': '172.19.1.4', 'end': '172.19.1.250'}]
  # Customize the VLAN ID to match the local environment
  TenantNetworkVlanID: 1189
  # MTU of the underlying physical network. Neutron uses this value to
  # calculate MTU for all virtual network components. For flat and VLAN
  # networks, neutron uses this value without modification. For overlay
  # networks such as VXLAN, neutron automatically subtracts the overlay
  # protocol overhead from this value.
  TenantNetPhysnetMtu: 1500

  TenantSubnetCidr_tenant_leaf1: 172.19.2.0/24
  TenantAllocationPools_tenant_leaf1: [{'start': '172.19.2.4', 'end': '172.19.2.250'}]
  TenantInterfaceDefaultRoute_tenant_leaf1: 172.19.2.254
  TenantNetworkVlanID_tenant_leaf1: 1179

  TenantSubnetCidr_tenant_leaf2: 172.19.3.0/24
  TenantAllocationPools_tenant_leaf2: [{'start': '172.19.3.4', 'end': '172.19.3.250'}]
  TenantInterfaceDefaultRoute_tenant_leaf2: 172.19.3.254
  TenantNetworkVlanID_tenant_leaf2: 1169

Expected results:
  # Customize the IP range to use for static IPs and VIPs
  TenantAllocationPools: [{'start': '172.19.1.4', 'end': '172.19.1.250'}]
  TenantInterfaceDefaultRoute: 172.19.1.254
  # Customize the VLAN ID to match the local environment
  TenantNetworkVlanID: 1189
  # MTU of the underlying physical network. Neutron uses this value to
  # calculate MTU for all virtual network components. For flat and VLAN
  # networks, neutron uses this value without modification. For overlay
  # networks such as VXLAN, neutron automatically subtracts the overlay
  # protocol overhead from this value.
  TenantNetPhysnetMtu: 1500

  TenantSubnetCidr_tenant_leaf1: 172.19.2.0/24
  TenantAllocationPools_tenant_leaf1: [{'start': '172.19.2.4', 'end': '172.19.2.250'}]
  TenantInterfaceDefaultRoute_tenant_leaf1: 172.19.2.254
  TenantNetworkVlanID_tenant_leaf1: 1179

  TenantSubnetCidr_tenant_leaf2: 172.19.3.0/24
  TenantAllocationPools_tenant_leaf2: [{'start': '172.19.3.4', 'end': '172.19.3.250'}]
  TenantInterfaceDefaultRoute_tenant_leaf2: 172.19.3.254
  TenantNetworkVlanID_tenant_leaf2: 1169


Additional info:

Comment 1 Yuri Obshansky 2020-03-04 21:44:36 UTC
Created attachment 1667586 [details]
network-environment-v6.yaml

Comment 2 Yuri Obshansky 2020-03-04 21:45:06 UTC
Created attachment 1667587 [details]
network_data.yaml

Comment 3 Yuri Obshansky 2020-03-04 21:45:40 UTC
Created attachment 1667588 [details]
roles_data.yaml

Comment 6 Harald Jensås 2020-03-12 20:34:05 UTC
The header of the file says the file is deprecated, and is only there for backward compatibility.

  # NOTE: This file is deprecated, and is included for backwards-compatibility
  # for use in upgrades. For new deployments, set ipv6: true for isolated
  # networks using IPv6 (Tenant network should use IPv4 for tunneling),
  # and set the default_route_networks to "['ControlPlane', 'External']"
  # on the Controller role to use ControlPlane for IPv4 and External for IPv6
  # default routes, and include network-environment.yaml instead of this file.


I opened a bug upstream and proposed a fix[1], please test it.

But, this environment file should not be used in this setup. The network-environment-v6.j2.yaml file was deprecated in queens cycle.


[1] https://review.opendev.org/712789

Comment 9 Bob Fournier 2020-04-16 12:52:31 UTC
Verified that TenantInterfaceDefaultRoute is now being added to network-environment-v6.yaml when gateway_ipv6 is set.  Again this file has been deprecated and shouldn't be used.

Comment 13 errata-xmlrpc 2020-05-14 12:16:18 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, 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-2020:2114