Bug 17683 - [mga6-dev1] Wired network does not connect correctly at first boot
Summary: [mga6-dev1] Wired network does not connect correctly at first boot
Status: RESOLVED DUPLICATE of bug 17651
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
: 17893 18171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-04 07:01 CET by Ben McMonagle
Modified: 2016-04-27 15:31 CEST (History)
13 users (show)

See Also:
Source RPM: drakx-installer-stage2
CVE:
Status comment:


Attachments
report from Mate DE install, but same outcome (183.25 KB, application/x-xz)
2016-02-05 06:09 CET, Ben McMonagle
Details
journalctl from XFCE install, same outcome (105.32 KB, text/plain)
2016-02-05 09:10 CET, Ben McMonagle
Details
iptables before (7.42 KB, text/plain)
2016-02-09 08:58 CET, Nic Baxter
Details
iptables after (513 bytes, text/plain)
2016-02-09 08:59 CET, Nic Baxter
Details
journalctl log (33.88 KB, text/plain)
2016-03-14 08:33 CET, Nic Baxter
Details

Description Ben McMonagle 2016-02-04 07:01:16 CET
Description of problem: After setting up wired network during install, upon first login the network is unavailable, however net_applet advise that network is connected. to establish a network connection, you need to disconnect wired connection, then configure the network again.reboot or log-out and back in and connection starts as expected.

affected DE LXDE and Cinnamon


Version-Release number of selected component (if applicable):
Mageia-6-dev1-i586-DVD.iso
DATE.txt: Tue Feb  2 23:08:31 CET 2016


How reproducible:every time


Steps to Reproduce:
1.install single DE [LXDE or Cinnamon] from above .iso
set up wired network connection at configuration page. reboot
2.login to DE 
3.attempt browse web via firefox
4. net_applet indicates network is connected.
5. disconnect network and reconfigure network again.
6. reconnect and check web browser operation - ok

Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2016-02-04 09:40:09 CET
Hi Ben,

Thanks for the bug report.

Please attach /root/drakx/report.bug.xz from this install

(please do that always when reporting traditional (so non-Live) installer bugs)

I'm not sure it also contains information about what exactly you did when setting up the network, like allowing networkmanager or not, so please tell us as precisely as possible what you did when setting it up.

Please also attach the (as root) output of journalctl, but only the part from before reconfiguring the network.

Component: RPM Packages => Installer
Keywords: (none) => NEEDINFO
CC: (none) => marja11
Whiteboard: (none) => 6dev1
Assignee: bugsquad => thierry.vignaud
Source RPM: Mageia-6-dev1-i586-DVD.iso => drakx-installer-stage2

Comment 2 Herman Viaene 2016-02-04 10:25:57 CET
Same goes for Wifi. Installation settings are stored for wlan, but this does not work. Renamed ifwlan in /etc/sysconfig/network-scripts and then used MCC - New interface to setup wlp5s0.

CC: (none) => herman.viaene

Comment 3 Ben McMonagle 2016-02-05 06:09:53 CET
Created attachment 7408 [details]
report from Mate DE install, but same outcome
Comment 4 Ben McMonagle 2016-02-05 06:37:40 CET
(In reply to Marja van Waes from comment #1)
>
> 
> I'm not sure it also contains information about what exactly you did when
> setting up the network, like allowing networkmanager or not, so please tell
> us as precisely as possible what you did when setting it up.


at end of installation, set up user configuration =>network
choose wired =>
select the network interface to configure: eth0 =>
choose connection protocol : automatic IP =>
choose IP settings: : get DNS servers from DCHP =>
choose connection control: 
allow users to manage the connection- yes
start the connection at boot - yes
allow interface to be controlled by network manager: "automatic" =>
do you want to start the connection now: choose "yes" =>

("=>" = next)
Comment 5 Ben McMonagle 2016-02-05 09:10:16 CET
Created attachment 7409 [details]
journalctl from XFCE install, same outcome
Comment 6 Ben McMonagle 2016-02-05 09:10:51 CET
please advise if anything else required
Comment 7 Nic Baxter 2016-02-09 08:58:21 CET
Created attachment 7435 [details]
iptables before

CC: (none) => nic

Comment 8 Nic Baxter 2016-02-09 08:59:09 CET
Created attachment 7436 [details]
iptables after
Comment 9 Nic Baxter 2016-02-09 09:12:49 CET
I can reproduce this report
Install Mate DE using nonfree-boot.iso and cauldron mirror
reboot
from terminal ifconfig 192.168.3.20

ping router 192.168.3.1 - connect: Network is unreachable

iptables -L -n see attachment before

drakfirewall select 'Everything - no firewall'

ping router 192.168.3.1 responds normally

iptables -L -n see attachment after
Comment 10 Ben McMonagle 2016-03-08 09:02:26 CET
still valid for

Mageia-6-dev1-x86_64-DVD.iso
DATE.txt: Mon Mar  7 23:20:36 CET 2016
Comment 11 Shlomi Fish 2016-03-08 11:58:26 CET
Here with the x86-64 mga6 dev1 DVD on vbox, iptables interferes with the connection, and "service iptables stop" appears to do nothing. I had to disable iptables using this script, which I had to key in manually - https://bitbucket.org/shlomif/shlomif-computer-settings/src/c20df4b49667f1dbf88f04335e3a05603cd75c1a/shlomif-settings/home-bin-executables/bin/stop-iptables?at=default&fileviewer=file-view-default . Very annoying.

CC: (none) => shlomif

Comment 12 Florian Hubold 2016-03-13 23:26:18 CET
It would be helpful if the output of "route" and "route -n" could also be provided.

CC: (none) => doktor5000

Comment 13 Nic Baxter 2016-03-14 08:33:03 CET
I have just done a fresh install using
Mageia-6-dev1-i586-DVD.iso with date of Thu Mar 10 21:45:52 CET 2016

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.17  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::a00:27ff:fed4:fb28  prefixlen 64  scopeid 0x20<link>
        inet6 2001:44b8:411f:a300:a00:27ff:fed4:fb28  prefixlen 64  scopeid 0x0<global>
        ether 08:00:27:d4:fb:28  txqueuelen 1000  (Ethernet)
        RX packets 138  bytes 9571 (9.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 40  bytes 4455 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4078  bytes 448998 (438.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4078  bytes 448998 (438.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 enp0s3
link-local      0.0.0.0         255.255.0.0     U     1002   0        0 enp0s3
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.3.1     0.0.0.0         UG    0      0        0 enp0s3
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 enp0s3
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 enp0s3

I stopped shorewall using service shorewall stop and the network is OK. I have added a journal log that shows 

Mar 14 18:18:27 localhost kernel: Shorewall:OUTPUT:REJECT:IN= OUT=enp0s3 SRC=192.168.3.17 DST=192.168.3.1 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=30371 DF PROTO=ICMP TYPE=8 CODE=0 ID=2390 SEQ=1 

Why is Shorewall running? During the install I deselected the firewall from starting.
Comment 14 Nic Baxter 2016-03-14 08:33:53 CET
Created attachment 7569 [details]
journalctl log
Comment 15 Thomas Andrews 2016-03-16 20:06:00 CET
Seeing the same behavior with Plasma 5 installs both on real hardware and in VBox, both i586 and x86_64.

CC: (none) => andrewsfarm

Comment 16 Shlomi Fish 2016-03-17 14:45:42 CET
Adding a "6dev1" keyword and setting the platform as all.

Hardware: i586 => All
Keywords: (none) => 6dev1

psyca 2016-03-19 21:48:05 CET

CC: (none) => linux

Comment 17 Marc Lattemann 2016-03-29 23:15:31 CEST
I could reproduce it with Mageia-6-dev1-x86_64-DVD.iso in VirtualBox. Thanks to David Hodgins it seems to be related to /etc/shorewall/interfaces:

After the default installation the content looks like:

#ZONE           INTERFACE               OPTIONS
net     eth0  detect

changing it to 

#ZONE           INTERFACE               OPTIONS
net     enp0s3  detect

and restart shorewall.service fixes the internet connection

CC: (none) => marc.lattemann

Dave Hodgins 2016-03-29 23:18:41 CEST

CC: (none) => davidwhodgins

Comment 18 Bit Twister 2016-03-30 00:49:41 CEST
(In reply to Marc Lattemann from comment #17)
> I could reproduce it with Mageia-6-dev1-x86_64-DVD.iso in VirtualBox. Thanks
> to David Hodgins it seems to be related to /etc/shorewall/interfaces:

Yup, but the problem is not with shorewall but can be traced back to bug 17651

CC: (none) => bittwister2

Comment 19 Nic Baxter 2016-04-02 04:57:43 CEST
I don't think bug 17651 is relevant. The networking scripts and the network works fine. If shorewall is stopped then everything works. It is more about the default configuration of shorewall.
less /etc/shorewall/interfaces
#ZONE   INTERFACE  OPTIONS
net     eth0 detect
After running drakfirewall and enabling port 22 outbound traffic is allowed. 

less /etc/shorewall/interfaces 

#ZONE  INTERFACE  OPTIONS
net     eth0  detect
net    enp0s3  detect


How is the interfaces file populated?
Does it come preset or is there a detection method?
Comment 20 Bit Twister 2016-04-02 07:00:03 CEST
(In reply to Nic Baxter from comment #19)
> I don't think bug 17651 is relevant. The networking scripts and the network
> works fine. If shorewall is stopped then everything works. It is more about
> the default configuration of shorewall.
> less /etc/shorewall/interfaces
> #ZONE   INTERFACE  OPTIONS
> net     eth0 detect
> After running drakfirewall and enabling port 22 outbound traffic is allowed. 
> 
> less /etc/shorewall/interfaces 
> 
> #ZONE  INTERFACE  OPTIONS
> net     eth0  detect
> net    enp0s3  detect
> 
> 
> How is the interfaces file populated?
> Does it come preset or is there a detection method?

It does not come preset. when you went back through drakfirewall, your eth0 was detected with systemd normal naming convention and it became enp0s3.

Once that was placed in interfaces "shorewall" was working.
We never had the problem in mga5 because the network configuration tool asked the user to configure enpXsY instead of ethX as it did on mga6 install.

Going to guess sysemd networking software came up on boot, saw enp0s3 was not defined and created a dynamic configuration file enp0s3 for you and then brought it up. That software did not and should not add an entry in interfaces.
Comment 21 Nic Baxter 2016-04-02 07:08:38 CEST
So are suggesting this is an installer bug?
Comment 22 Bit Twister 2016-04-02 08:07:35 CEST
(In reply to Nic Baxter from comment #21)
> So are suggesting this is an installer bug?

Yes, and if you look at Source RPM: box top of this bug report, that is the current suggest culprit.
Comment 23 Nic Baxter 2016-04-02 10:07:13 CEST
I have just installed Mageia-6-dev1-x86_64-DVD (Wed Mar 16 23:02:20 CET 2016) and when I try to configure the network from the installer summary screen the only interface available is eth0 so now I understand. Thanks Bit Twister. This is no doubt when eth0 is written to /etc/shorewall/interfaces. 

I renamed eth0 to enp0s3 during the installation and then from the summary windows was able to configure shorewall to use enp0s3 and when the installation was over the network worked.
Comment 24 Maurice Batey 2016-04-05 18:45:50 CEST
> 3.attempt browse web via firefox
> 4. net_applet indicates network is connected.
> 5. disconnect network and reconfigure network again.
> 6. reconnect and check web browser operation - ok

Same here on real nVidia h/w, 64-bit classical .iso of 16/3.

CC: (none) => maurice

Marja Van Waes 2016-04-05 20:46:04 CEST

Whiteboard: 6dev1 => (none)

Comment 25 Marja Van Waes 2016-04-25 11:12:52 CEST
*** Bug 17893 has been marked as a duplicate of this bug. ***

CC: (none) => paiiou

Comment 26 Marja Van Waes 2016-04-25 11:13:29 CEST
*** Bug 18171 has been marked as a duplicate of this bug. ***

CC: (none) => juergen.harms

Marja Van Waes 2016-04-25 11:15:47 CEST

Keywords: NEEDINFO => (none)

Comment 27 Marja Van Waes 2016-04-27 15:31:46 CEST
I had missed that there was already an existing bug about this issue, when this bug was filed.

Let's use first bug report.

*** This bug has been marked as a duplicate of bug 17651 ***

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


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