Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146612 - 2006.1 live cd install fails with bogus network error
Summary: 2006.1 live cd install fails with bogus network error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 15:47 UTC by Sid Boyce
Modified: 2006-12-16 22:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sid Boyce 2006-09-06 15:47:21 UTC
The error message says it can't set the default gateway. I'm using static IP addresses and I can ping stuff on the internet and on my network, ifconfig is OK. "route -n" gives the correct gateway - stating the obvious.. Specified stage3 from CD after it failed to download stage3 from the mirror.
Exception received:
DefaultRouteError :FATAL: configure_networking: Could not set the default route!
Please submit a bug report (after searching to make sure it's not a known issue and verifying you didn't do something stupid) with the contents of /var/log/installer.log.fail
ed, /tmp/installprofile.xml, the last ~50 lines of /tmp/compile_output.log, and the version of the installer you used (release or CVS snapshot w/ date)

# less /installer.log.failed
GLI: September 04 2006 22:58:20 - Gentoo Linux Installer version 0.4.1
GLI: September 04 2006 22:58:20 - Setting root password.
GLI: September 04 2006 22:58:20 - Livecd root password set.
GLI: September 04 2006 22:58:20 - Exception received during pre-install function '<bound method GLIClientController.configure_networking of <GLIClientController(Thread-1, sta
rted daemon)>>': DefaultRouteError :FATAL: configure_networking: Could not set the default route!
GLI: September 04 2006 22:58:20 - Traceback (most recent call last):
GLI: September 04 2006 22:58:20 - File "/opt/installer/GLIClientController.py", line 111, in run
step()
GLI: September 04 2006 22:58:20 - File "/opt/installer/GLIClientController.py", line 369, in configure_networking
raise GLIException("DefaultRouteError", 'fatal','configure_networking', "Could not set the default route!")
GLI: September 04 2006 22:58:20 - GLIException: DefaultRouteError :FATAL: configure_networking: Could not set the default route!


/tmp/installprogfile.xml correctly says:
<default-gateway interface="eth0">
192.168.10.102
</default-gateway>
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-09-08 18:57:29 UTC
I just tested this. 'route' is actually returning non-zero in this case. It happens when you try to add a default route with a gateway that is already in the routing table. For example, if you already had an IP through DHCP, or you ran the installer twice with the static IP information.

I'm not sure exactly how to handle this one. I suppose we could call 'route del default gw 1.2.3.4' before calling 'route add default gw 1.2.3.4'. This appears to work properly (doesn't remove any other "default" route). Anyone have any objections?
Comment 2 Sid Boyce 2006-09-08 19:56:55 UTC
I have allowed it to use the network config acquired via dhcp and that gets over the error. After the install is finished, I can alter it to fixed IP address and gateway.
Comment 3 Costas Koulierakis 2006-09-20 07:34:50 UTC
The problem lies in the configuration file (/etc/conf.d/net) that is placed by the installer when static configuration is chosen.

The following two lines in /etc/conf.d/net, that gets installed:
routes_eth0="( "default via 10.1.1.10" )"
iface_eth0="10.1.1.1 broadcast 10.1.1.255 netmask 255.255.255.0"

should be:

routes_eth0=( "default via 10.1.1.10" )
config_eth0=( "10.1.1.1/24 brd 10.1.1.255" )

Note the extra quotes in the default gateway configuration and that the installer uses the old syntax for the network interface which results in an extra iface eth0.1 whith IP 10.1.1.255 (confused by the broadcast parameter).
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2006-09-20 07:38:03 UTC
Uhh, no. That's an entirely different bug (that's already been fixed) in an entirely different situation.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2006-12-16 22:48:26 UTC
Code is in SVN to delete the default route with the same gateway IP first before adding. This will prevent this situation.