Bug 1153060 - Discovery can possibly set wrong default route
Summary: Discovery can possibly set wrong default route
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1164813
TreeView+ depends on / blocked
 
Reported: 2014-10-15 14:18 UTC by Lukas Zapletal
Modified: 2017-02-23 20:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1164813 (view as bug list)
Environment:
Last Closed: 2015-08-12 05:18:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10562 0 None None None 2016-04-22 15:09:30 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Lukas Zapletal 2014-10-15 14:18:56 UTC
On some bare-metal hardware (Dell PowerEdge in our case) due to systemd/udevd NIC renaming dance, a wrong default gw can be set. This blocks from provisioning.

I believe that setting DEFROUTE=no on all the interfaces except the one we are booting from should fix the issue.

Comment 1 RHEL Program Management 2014-10-15 14:22:51 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-10-16 13:33:39 UTC
Connecting redmine issue http://projects.theforeman.org/issues/7973 from this bug

Comment 4 Dominic Cleal 2014-10-16 13:35:10 UTC
Does this need a BZ against RHEL too, if it's caused by systemd/udevd?

Comment 6 Bryan Kearney 2014-10-21 08:05:04 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7973 has been closed
-------------
Lukas Zapletal
https://github.com/theforeman/ovirt-node-plugin-foreman/commit/f8ac33db72a8ece5a656442685e0285d0e470231

Comment 7 Lukas Zapletal 2015-01-19 08:06:08 UTC
This will be actually fixed when Jason builds Discovery 2.0 for the first time.

Comment 10 Bryan Kearney 2015-02-18 01:47:18 UTC
Upstream bug assigned to lzap

Comment 11 Lukas Zapletal 2015-02-18 08:36:21 UTC
QA: To VERIFY discover a host with multiple network cards and various combinations of card order. In all cases, the provisioning interface (the one on the discovery network) should be the default route (check with "ip route" command).

Comment 12 Sachin Ghai 2015-05-20 10:24:09 UTC
Verified with sat6.1 GA snap4 compose2: Looks like this issue is still reproducible.

I tried to reproduce the original issue by discovering a host with multiple nics on libvirt compute-resource. Host was discovered but default route was not pointing to interface on discovery network.

for ex:

[root@fdi ~]# ip route
default via 10.65.207.254 dev eth1  proto static  metric 1024
10.65.201.89 via 10.65.207.254 dev eth3  proto static  metric 1
10.65.206.0/23 dev eth1  proto kernel  scope link  src 10.65.207.34
10.65.206.0/23 dev eth3  proto kernel  scope link  src 10.65.207.187
192.168.110.0/24 dev eth0  proto kernel  scope link  src 192.168.110.35
192.168.110.0/24 dev eth2  proto kernel  scope link  src 192.168.110.36

Comment 13 Sachin Ghai 2015-05-20 12:17:00 UTC
Verified following image:

foreman-discovery-image-2.1.0-20.el7sat.noarch

[root@fdi network-scripts]#  cat /usr/share/fdi/VERSION
2.1.0
[root@fdi network-scripts]# cat /usr/share/fdi/RELEASE 
20150327.1

Comment 14 Lukas Zapletal 2015-05-20 12:39:01 UTC
Reproduced!

Comment 16 Mike McCune 2015-05-27 05:48:17 UTC
el6 still uses the el7 wrapper RPM so this is MODIFIED now and will be in the next snap 6

Comment 18 Sachin Ghai 2015-05-28 10:40:55 UTC
Verified with sat6.1 GA snap6

Now provisioning interface eth0 is set on default route..

--
[root@fdi ~]#  cat /usr/share/fdi/VERSION
2.1.0
[root@fdi ~]# cat /usr/share/fdi/RELEASE 
20150525.1
[root@fdi ~]# ip route
default via 192.168.100.1 dev eth0  proto static  metric 100 
default via 192.168.100.1 dev ens9  proto static  metric 101 
default via 10.16.99.254 dev ens11  proto static  metric 102 
10.16.36.29 via 10.16.99.254 dev ens11  proto dhcp  metric 100 
10.16.96.0/22 dev ens11  proto kernel  scope link  src 10.16.99.245  metric 100 
169.254.95.0/24 dev ens10  proto kernel  scope link  src 169.254.95.120  metric 100 
192.168.100.0/24 dev ens9  proto kernel  scope link  src 192.168.100.12 
192.168.100.0/24 dev eth0  proto kernel  scope link  src 192.168.100.11  metric 100 
[root@fdi ~]# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.11  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::5054:ff:fef3:c80a  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:f3:c8:0a  txqueuelen 1000  (Ethernet)
        RX packets 168  bytes 10082 (9.8 KiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 9  bytes 1262 (1.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@fdi ~]

Thank you for fixing the issue.

Comment 19 Bryan Kearney 2015-08-11 13:35:16 UTC
This bug is slated to be released with Satellite 6.1.

Comment 20 errata-xmlrpc 2015-08-12 05:18:08 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/RHSA-2015:1592


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