Bug 1810291 - Tripleo tools/process-templates.py generates network-environment-v6.yaml without TenantInterfaceDefaultRoute
Summary: Tripleo tools/process-templates.py generates network-environment-v6.yaml with...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 16.0 (Train on RHEL 8.1)
Assignee: Adriano Petrich
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-04 21:42 UTC by Yuri Obshansky
Modified: 2020-05-14 12:16 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200403214903.7648856.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-14 12:16:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
network-environment-v6.yaml (7.31 KB, text/plain)
2020-03-04 21:44 UTC, Yuri Obshansky
no flags Details
network_data.yaml (3.29 KB, text/plain)
2020-03-04 21:45 UTC, Yuri Obshansky
no flags Details
roles_data.yaml (9.73 KB, text/x-matlab)
2020-03-04 21:45 UTC, Yuri Obshansky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1867207 0 None None None 2020-03-12 20:34:04 UTC
OpenStack gerrit 712789 0 None MERGED Fix TenantInterfaceDefaultRoute in net-env-v6 2020-06-10 04:36:24 UTC
Red Hat Product Errata RHBA-2020:2114 0 None None None 2020-05-14 12:16:36 UTC

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


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