A few default gateways appeared in CentOS 7 (Fuel 8.0)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
High
|
Fuel Library (Deprecated) |
Bug Description
Moving to CentOS 7 we faced the issue when a few default gateways appeared when an interface received configuration from DHCP. It's a CentOS behavior.
The possible workaround is add an item in the fuelmenu to choose which is default route is (between received gateways) and remove all other (unwanted). The parameter of GW should be pass to the testing environment (when fuelmenu doesn't run).
Steps to reproduce:
1. Configure one interface as internal network, the others for DHCP
# cat /etc/sysconfig/
BOOTPROTO=none
IPADDR=10.20.0.2
DEVICE=enp2s1
ONBOOT=yes
TYPE=Ethernet
PREFIX=24
# cat /etc/sysconfig/
BOOTPROTO=dhcp
DEVICE=ens34
ONBOOT=yes
TYPE=Ethernet
2. Run fuelmenu and save parameters. As the result the routing table has two (or more, depend on the number interfaces taking config from DHCP servers)
]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 172.18.201.1 0.0.0.0 UG 0 0 0 ens34
0.0.0.0 10.20.0.1 0.0.0.0 UG 0 0 0 enp2s1
10.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s1
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.201.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34
172.18.201.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34
[# ip route
default via 172.18.201.1 dev ens34 proto static metric 100
default via 10.20.0.1 dev enp2s1 proto static metric 101
10.20.0.0/24 dev enp2s1 proto kernel scope link src 10.20.0.2 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.42.1
172.18.201.0/24 dev ens34 proto kernel scope link src 172.18.201.16
172.18.201.0/24 dev ens34 proto kernel scope link src 172.18.201.16 metric 100
The two default routes break down network
The user in such case should choose correct network default route configuration.
Changed in fuel: | |
milestone: | none → 8.0 |
description: | updated |
tags: | added: area-library team-linux |
Changed in fuel: | |
assignee: | nobody → Fuel Library Team (fuel-library) |
tags: | added: covered-by-bp |
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: feature-centos7 |
IMHO, the configuration with a few default routes in the routing table required intruding a human to take a decision.
Could we add the item "default route" in the network configuration screen ?