Bug 26069

Summary: e100 module loaded but no fixed IP after urpmi --auto-select upgrade from mga7 to cauldron
Product: Mageia Reporter: Felix Miata <mrmazda>
Component: New RPM package requestAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: rolfpedersen, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: initscripts CVE:
Status comment:
Attachments: lspcidrake, dmesg & journalctl -b

Description Felix Miata 2020-01-14 12:50:45 CET
Created attachment 11457 [details]
lspcidrake, dmesg & journalctl -b

Original summary:
e100 module loaded but no fixed IP after urpmi --auto-select upgrade from mga7 to cauldron

I tried this 4 times on same system. Always same result, no IP assigned to eth0 on reboot after upgrade completes. Same problem if I boot 5.4.10 or 5.3.13 mga7 kernel. This is an old E6600 Core2Duo HP desktop which has no e1000e.

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether (redacted MAC) brd ff:ff:ff:ff:ff:ff 

# inxi -NSxx
System:    Host: hp945 Kernel: 5.4.11-desktop-3.mga8 x86_64 bits: 64 compiler: gcc v: 9.2.1 Console: tty 3 dm: N/A 
           Distro: Mageia 8 mga8 
Network:   Device-1: Intel NM10/ICH7 Family LAN vendor: Hewlett-Packard driver: e100 v: 3.5.24-k2-NAPI port: ef00 
           bus ID: 01:08.0 chip ID: 8086:27dc 

# systemctl status network-up.service
● network-up.service - LSB: Wait for the hotplugged network to be up
   Loaded: loaded (/etc/rc.d/init.d/network-up; generated)
   Active: active (exited) since Tue 2020-01-14 05:50:23 EST; 26min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 652 ExecStart=/etc/rc.d/init.d/network-up start (code=exited, status=0/SUCCESS)

Jan 14 05:49:56 hp945 systemd[1]: Starting LSB: Wait for the hotplugged network to be up...
Jan 14 05:50:23 hp945 network-up[652]: Waiting for network to be up[FAILED]
Jan 14 05:50:23 hp945 systemd[1]: Started LSB: Wait for the hotplugged network to be up.

# /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.redacted
NETMASK=255.255.255.0
GATEWAY=192.168.redacted
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=no
DNS1=192.168.redacted
DNS2=8.8.4.4
DOMAIN=redacted
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
NM_CONTROLLED=no
Comment 1 Rolf Pedersen 2020-01-14 14:57:08 CET
I had a similar symptom on a newer machine using an Intel nic with e1000e module loaded, nic deactivated, when upgraded to any 5.4 kernel on MGA7.  The protocol is DHCP with the router assigning a "static dhcp" IP.  In case there is some commonality, consider what got network working on this machine for the newer kernels:  https://bugs.mageia.org/show_bug.cgi?id=26049#c17

CC: (none) => rolfpedersen

Comment 2 Felix Miata 2020-01-15 06:14:28 CET
# systemd-analyze blame | grep net # mga8
         27.277s network-up.service
           941ms network.service
# systemctl status network.service
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; generated)
   Active: active (exited) since Tue 2020-01-14 23:21:36 EST; 2min 11s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 813 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)

Jan 14 23:21:35 hp945 systemd[1]: Starting LSB: Bring up/down networking...
Jan 14 23:21:36 hp945 network[813]: Bringing up loopback interface:  [  OK  ]
Jan 14 23:21:36 hp945 systemd[1]: Started LSB: Bring up/down networking.

# systemctl status network-up.service # mga8
● network-up.service - LSB: Wait for the hotplugged network to be up
   Loaded: loaded (/etc/rc.d/init.d/network-up; generated)
   Active: active (exited) since Tue 2020-01-14 23:22:02 EST; 2min 11s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 682 ExecStart=/etc/rc.d/init.d/network-up start (code=exited, status=0/SUCCESS)

Jan 14 23:21:34 hp945 systemd[1]: Starting LSB: Wait for the hotplugged network to be up...
Jan 14 23:22:02 hp945 network-up[682]: Waiting for network to be up[FAILED]
Jan 14 23:22:02 hp945 systemd[1]: Started LSB: Wait for the hotplugged network to be up.

## mga7
# systemctl list-unit-files | grep net
netconsole.service                     generated      
network-auth.service                   generated      
network-up.service                     generated      
network.service                        generated      
systemd-networkd-wait-online.service   disabled       
systemd-networkd.service               disabled       
xinetd.service                         enabled        
systemd-networkd.socket                disabled       
network-online.target                  static         
network-pre.target                     static         
network.target                         static         

## mga8
# systemctl list-unit-files | grep net
systemd-networkd-wait-online.service   disabled
systemd-networkd.service               disabled
xinetd.service                         enabled 
systemd-networkd.socket                disabled
network-online.target                  static  
network-pre.target                     static  
network.target                         static  


Why are the generateds from mga8 missing? What's supposed to generate them?
Comment 3 Felix Miata 2020-01-15 12:13:22 CET
ifup eth0 works around the failure.
Comment 4 Lewis Smith 2020-01-16 20:00:20 CET
Not sure about the validity of bugs upgrading to Cauldron - a new one on me.
Assigning to the kernel/drivers people.

Assignee: bugsquad => kernel

Comment 5 Felix Miata 2020-01-20 22:26:50 CET
On host big31 I just did a urpmi --auto-select upgrade from mga7 to cauldron and network came up automatically.

There was a 28.461 second wait for the non-existent hotplugged network (ethernet, no wireless) to be up.
Comment 6 Thierry Vignaud 2020-01-22 08:20:36 CET
Fixed in initscripts-9.78-13.mga8

CC: (none) => thierry.vignaud
Resolution: (none) => FIXED
Source RPM: (none) => initscripts
Status: NEW => RESOLVED

Thierry Vignaud 2020-01-22 08:21:03 CET

Component: Installer => New RPM package request