No simple way to add static route on provisioning network via undercloud.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Harald Jensås |
Bug Description
An issue was reported in RHBZ#1665874 where the DHCP relay agent on a switch used source address that is not the IP range of any of the ctlplane network subnets. The DHCP relay have a source address that is not in any of the provisioning subnets, thus the undercloud forwards the packet out the default gateway and the asymetric filters drop the packages in the kernel.
A workaround is possible by using ``net_config_
net_config_override = /home/stack/
File: /home/stack/
"network_config": [
{
"type": "ovs_bridge",
"name": "br-ctlplane",
"ovs_extra": [
"br-
],
"members": [
{
"type": "interface",
"name": "{{LOCAL_
"primary": "true",
"mtu": {{LOCAL_MTU}},
"dns_servers": {{UNDERCLOUD_
}
],
"addresses": [
{
"ip_netmask": "{{PUBLIC_
}
],
"routes": [
#
# The first two are the routes to the peer ctlplane subnets
#
{
"next_hop": "192.168.24.1"
},
{
"next_hop": "192.168.24.1"
},
#
# This additional route to the DHCP relay
#
{
"next_hop": "192.168.24.1"
}
],
"mtu": {{LOCAL_MTU}}
}
]
The undercloud.conf should have a way to define additonal routes for the ctlplane interface. It also makes sense for these routes to be present on the overcloud nodes. We probably want to add a 'host_routes' option to the subnet defenitions in undercloud.conf, i.e:
[ctlplane-subnet]
local_subnet = ctlplane-subnet
cidr = 192.168.24.0/24
dhcp_start = 192.168.24.5
dhcp_end = 192.168.24.24
gateway = 192.168.24.1
inspection_iprange = 192.168.
masquerade = False
host_routes = [{"destination": "192.168.
Related fix proposed to branch: master /review. openstack. org/642566
Review: https:/