Default route on ctlplane in CI ipv6 nic config

This template is used by featureset035 in CI, Overcloud nodes in fs035
currently have no outside connectivity. Details in Closes-Bug.

Moving default route to ctlplane for CI usecase, CI Ipv4 nic config
template also have default route on ctlplane[1].

It seems we created this template following the older nic template [2]
which we use in older branches, which have two default route - one on
ctlplane and one on external network, which seems wrong.

[1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/roles/tripleo_network_config/templates/ci/multiple_nics.j2#L9-L11
[2] https://github.com/openstack/tripleo-heat-templates/blob/stable/train/ci/environments/network/multiple-nics-ipv6/nic-configs/controller.yaml#L182-L196

Closes-Bug: #1952391
Change-Id: I3ef3728f042024033b5f48b89b97d9ac3ef08614
(cherry picked from commit 6f7f53de73)
This commit is contained in:
Sandeep Yadav 2021-11-26 12:29:56 +05:30
parent 44861f398a
commit c05bf0b042
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,9 @@ network_config:
use_dhcp: false
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
routes:
- default: true
next_hop: {{ ctlplane_gateway_ip }}
{% if 'External' in role_networks or 'external_bridge' in role_tags %}
- type: ovs_bridge
name: br-ex
@ -13,8 +16,7 @@ network_config:
domain: {{ dns_search_domains }}
use_dhcp: false
routes:
- default: true
ip_netmask: ::/0
- ip_netmask: ::/0
next_hop: {{ external_gateway_ip | default('fe80::1') }}
members:
- type: interface