Bug 10915 - drakx-finish-install sometimes fails to find network
Summary: drakx-finish-install sometimes fails to find network
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 4alpha3
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-04 02:56 CEST by Dave Hodgins
Modified: 2016-10-15 23:27 CEST (History)
8 users (show)

See Also:
Source RPM: drakxtools-15.57-1.mga4.src.rpm
CVE:
Status comment:


Attachments
Output of journalctl -ab, from the first boot after install. (161.58 KB, text/plain)
2013-08-04 02:58 CEST, Dave Hodgins
Details
Output of journalctl -ab|grep -e Network -e finish -e ifplug (16.68 KB, text/plain)
2013-10-01 01:56 CEST, Dave Hodgins
Details
Output journalctl -ab|grep -e Network -e finish -e ifplug (10.03 KB, text/plain)
2013-10-01 03:38 CEST, Dave Hodgins
Details

Description Dave Hodgins 2013-08-04 02:56:23 CEST
On first boot after an install from a gnome live iso, sometimes
drakx-finish-install cannot access the network. It looks like a conflict
between drakxnet and networkmanager.

Result is that the online media is not added.



Reproducible: 

Steps to Reproduce:
Dave Hodgins 2013-08-04 02:56:45 CEST

CC: (none) => tmb

Comment 1 Dave Hodgins 2013-08-04 02:57:49 CEST
When the network does work, the user is not given an option to configure
the network, so they cannot set the hostname.

Whiteboard: (none) => 4alpha1

Comment 2 Dave Hodgins 2013-08-04 02:58:55 CEST
Created attachment 4237 [details]
Output of journalctl -ab, from the first boot after install.
Comment 3 Thomas Backlund 2013-08-04 11:17:22 CEST
Colin,

I think this can be a fallout of the dropped interface renaming, that drakx tools maybe does not cope with nicely yet...


the times it work I assume networkmanager got to the hw control first

CC: (none) => mageia

Comment 4 Marja Van Waes 2013-08-04 19:10:10 CEST
(In reply to Thomas Backlund from comment #3)
> Colin,
> 
> I think this can be a fallout of the dropped interface renaming, that drakx
> tools maybe does not cope with nicely yet...
> 
> 
> the times it work I assume networkmanager got to the hw control first

So this but is more in drakx-net, then?

Without networkmanager, with the new alpha 1 KDE Live DVD, it is impossible to get a WLAN connection (I did not try LAN)

CC: (none) => mageia, marja11, pablo, thierry.vignaud

Comment 5 Marja Van Waes 2013-08-04 19:11:14 CEST
s/but/bug/
Comment 6 Colin Guthrie 2013-08-05 10:15:11 CEST
Thomas, well the interface renamed is not dropped as such. udev can still do the renaming quite happily when no other interface with the same name exists. The bit that was dropped was the racey stuff that attempted to detect rename clashes etc. e.g. try to rename eth0 to eth1, when eth1 already exists and even when renaming eth1 out the way first, some other kernel device might pop up and claim it before we can rename our eth0 to that name!

But renaming code still exists for "normal" renames.

Dave, do you have any /etc/udev/rules.d/ content after the install? Perhaps the installer is using the udev rules generators that have been removed? I don't think so, but worth checking.
Comment 7 Colin Guthrie 2013-08-05 10:28:53 CEST
That said, perhaps the rules to generate our default configs are firing on the first name (kernel assigned) and not the 2nd name (what udev decides) and not writing the config file properly with the NM_CONTROLLED=no bit in the config.
Comment 8 Dave Hodgins 2013-08-05 19:07:23 CEST
The tests I've been running so far have all been clean installs.
After the install, /etc/udev/rules.d/ is empty.
Comment 9 Colin Guthrie 2013-08-05 20:00:06 CEST
Cool, can you also check if you have files in /etc/sysconfig/network-scripts/ifcfg-* relating to the "old" eth* names or just the newer style names.

I suspect that some kind of race exists somewhere but not quite sure which bit happens first. It might not be obvious from the files in here what's going on either as we may need to catch it in the act on first boot to really know where the problem lies.
Comment 10 Dave Hodgins 2013-08-05 22:36:31 CEST
Just ifcfg-enp0s3 and ifcfg-lo.
Comment 11 Sander Lepik 2013-08-05 22:41:02 CEST
Are you sure that it's not just shorewall blocking the interface it doesn't know about?

Is enp0s3 listed in /etc/shorewall/interfaces?

CC: (none) => mageia

Comment 12 Dave Hodgins 2013-08-05 23:21:32 CEST
Yes, it's listed in /etc/shorewall/interfaces.
claire robinson 2013-08-06 15:18:21 CEST

CC: (none) => eeeemail

Comment 13 Dave Hodgins 2013-10-01 01:56:04 CEST
Created attachment 4394 [details]
Output of journalctl -ab|grep -e Network -e finish -e ifplug

As shown in this log, I configured the network during first boot after install
from the 2nd build of the gnome live cd, right after finish-install runs the
ifup enp0s3, NetworkManager is deactivating device, which is preventing the
adding of online repos. This was in a vb guest.
Dave Hodgins 2013-10-01 01:56:29 CEST

Whiteboard: 4alpha1 => 4alpha3

Comment 14 Dave Hodgins 2013-10-01 03:38:22 CEST
Created attachment 4395 [details]
Output journalctl -ab|grep -e Network -e finish -e ifplug

Here's the output from the same command on an install using the kde4 live x86_64
live dvd, where the network was properly started, and the online media added.
This install is on real hardware.
Comment 15 Colin Guthrie 2013-10-02 14:36:44 CEST
Incidentally, finish-install writing the hostname to /etc/hosts is redundant these days... nss_myhostname is always available.
Comment 16 Dick Gevers 2013-10-06 17:45:52 CEST
Sometimes this is also caused by the modem: my test laptop sometimes does not get connected via the eth0 cable, though nothing is wrong. Resetting the modem (which connects all computers in the house to the net) fixes the problem then
Comment 17 Dave Hodgins 2013-10-06 20:31:48 CEST
In my case, I have a router in between my two computers
and the dsl modem.  The other computer's network activity
continues, and I can get the network working by using mcc
to delete the interface configuration and then using mcc
to recreate the nic configuration.
Comment 18 Colin Guthrie 2014-02-23 18:48:25 CET
Did this continue to be an issue for the final release?
Comment 19 Samuel Verschelde 2016-10-15 23:27:40 CEST
Closing as OLD since there was no answer to the last comment. Please reopen if still valid.

Status: NEW => RESOLVED
Resolution: (none) => OLD


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