Bug 17651 - 6_d1: network cards were identified as eth[01] instead of enp2s[05] ("Error changing net interface name")
Summary: 6_d1: network cards were identified as eth[01] instead of enp2s[05] ("Error c...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
: 17683 17928 18509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-30 21:24 CET by Bit Twister
Modified: 2024-04-25 08:10 CEST (History)
7 users (show)

See Also:
Source RPM: drakx-installer-binaries, systemd, udev
CVE:
Status comment:


Attachments
from my Mageia-6-dev1-x86_64-DVD.iso insall (243.98 KB, application/x-xz)
2016-04-05 01:40 CEST, Bit Twister
Details
try including more udev/systemd stuff (1.49 KB, patch)
2016-04-29 11:00 CEST, Thierry Vignaud
Details | Diff
wait for udevd to complete (739 bytes, patch)
2016-04-29 14:00 CEST, Thierry Vignaud
Details | Diff

Description Bit Twister 2016-01-30 21:24:25 CET
Description of problem:
 network cards were identified as eth0 and eth1 instead of enp2s0 and enp3s5
after boot I used mcc draknetcenter to configure /etc/sysconfig/network-scripts/ifcfg-enp2s0 and  /etc/sysconfig/network-scripts/ifcfg-enp3s5


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. download all.rdz and vmlinuz from mageia/distrib/cauldron/x86_64/isolinux/x86_64/

current test used Jan 29 10:24 all.rdz  and Jan 29 10:24 vmlinuz

2. create /boot/grub/menu.lst boot stanza something like

title Network_install
kernel (hd0,7)/vmlinuz root=/dev/ram3 ramdisk_size=32000 noresume audit=0  vga=791
initrd (hd0,7)/all.rdz

3. run through http network install. note nic name(s) during mirror selection and during network configuration after packages are installed.



Reproducible: 

Steps to Reproduce:
Samuel Verschelde 2016-02-02 14:33:21 CET

Assignee: bugsquad => thierry.vignaud
CC: (none) => mageia

Bit Twister 2016-04-02 08:08:12 CEST

Source RPM: (none) => drakx-installer-stage2

Comment 1 Thierry Vignaud 2016-04-05 00:36:17 CEST
@Bit: can you attach your /root/drakx/report.bug.xz file?

@Colin: I was thinking about including /usr/lib/udev/rules.d/60-net.rules & /lib/udev/rename_device from initscripts in installer's stage2, but that's not what we need.
Are you aware of any change in udev rules regarding naming interfaces?
Do we need to include /etc/udev/hwdb.bin & /usr/bin/systemd-hwdb ?

There's also biosdevname:
I'm thinking about /usr/lib/udev/rules.d/71-biosdevname.rules & /sbin/biosdevname
But that's not supposed to be used by default.

CC: (none) => mageia
Keywords: (none) => NEEDINFO

Comment 2 Bit Twister 2016-04-05 01:40:31 CEST
Created attachment 7630 [details]
from my Mageia-6-dev1-x86_64-DVD.iso insall

How can I view report.bug.xz
Comment 3 Rémi Verschelde 2016-04-05 09:19:20 CEST
(In reply to Bit Twister from comment #2)
> How can I view report.bug.xz

It's a compressed text file, so you need to uncompress it with `xz -d report.bug.xz` to read it (but it's good to have attached it compressed though, as it makes it fit bugzilla's size limit).
Comment 4 Bit Twister 2016-04-05 14:36:58 CEST
(In reply to Rémi Verschelde from comment #3)
> 
> It's a compressed text file, so you need to uncompress it with `xz -d
> report.bug.xz` to read it (but it's good to have attached it compressed
> though, as it makes it fit bugzilla's size limit).

Thank you. My notes has zcat report.bug.xz for viewing, but could not find it.

Might consider using gdisk instead of fdisk. Snippet of my sda drive.

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1640447   800.0 MiB   8300  recovery part
   2         1640448         2164735   256.0 MiB   8300  EFI SYSTEM
   3         2164736         2410495   120.0 MiB   8300  Ms reserved
   4         2410496        86378495   40.0 GiB    8300  mga3
   5        86378496       170346495   40.0 GiB    8300  mga4
   6       170346496       254314495   40.0 GiB    8300  mga5
   7       254314496       338282495   40.0 GiB    8300  cauldron
Comment 5 Bit Twister 2016-04-18 12:25:24 CEST
The problem causes a dead network and causes shorewall to be mis-configured upon reboot. 

User then has to reconfigure the network, modify /etc/shorewall/interfaces and possibly zones depending on number of nics, and remove the /etc/sysconfig/network-scripts/ifcfg-eth* files.

Summary: mga6: network cards were identified as eth0 and eth1 instead of enp2s0 and enp3s5 => 6_d1: network cards were identified as eth0 and eth1 instead of enp2s0 and enp3s5
Keywords: NEEDINFO => (none)
Severity: normal => major

Comment 6 Marja Van Waes 2016-04-27 15:30:56 CEST
(In reply to Bit Twister from comment #2)
> Created attachment 7630 [details]
> from my Mageia-6-dev1-x86_64-DVD.iso insall
> 
> How can I view report.bug.xz

with

   xzcat report.bug.xz | less


Btw, I had missed this report when I first saw bug 17683, so missed that was a duplicate.

It is mentioned there that this bug is also valid for wlan cards
https://bugs.mageia.org/show_bug.cgi?id=17683#c2

CC: (none) => marja11

Comment 7 Marja Van Waes 2016-04-27 15:31:46 CEST
*** Bug 17683 has been marked as a duplicate of this bug. ***

CC: (none) => westel

Georges Eckenschwiller 2016-04-27 15:40:54 CEST

CC: (none) => paiiou

Comment 8 Thierry Vignaud 2016-04-29 10:58:13 CEST
*** Bug 17928 has been marked as a duplicate of this bug. ***

CC: (none) => dvgevers

Comment 9 Thierry Vignaud 2016-04-29 11:00:04 CEST
Created attachment 7708 [details]
try including more udev/systemd stuff
Comment 10 Ben McMonagle 2016-04-29 11:01:27 CEST
valid for 

Mageia-6-sta1-i586-DVD.iso
DATE.txt: Mon Apr 25 22:13:53 CEST 2016
Marja Van Waes 2016-04-29 11:08:37 CEST

Keywords: (none) => 6sta1

Comment 11 Thierry Vignaud 2016-04-29 11:11:34 CEST
Colin, I played with adding more udev rules when I saw:
systemd-udevd[908]: Error changing net interface name 'eth0' to 'ens3': Device or resource busy
systemd-udevd[908]: could not rename interface '2' from 'eth0' to 'ens3': Device or resource busy

Any idea?
Shouldn't we include the renaming rules in stage1?
Comment 12 Thierry Vignaud 2016-04-29 11:12:56 CEST
err forgot last line as those logs came from stage1.
Any idea though?
Should we run "udevadm settle" before using network?
Thierry Vignaud 2016-04-29 13:21:26 CEST

Source RPM: drakx-installer-stage2 => drakx-installer-binaries, systemd
Summary: 6_d1: network cards were identified as eth0 and eth1 instead of enp2s0 and enp3s5 => 6_d1: network cards were identified as eth[01] instead of enp2s[05] ("Error changing net interface name")

Comment 13 Thierry Vignaud 2016-04-29 14:00:53 CEST
Created attachment 7710 [details]
wait for udevd to complete

I've tried this.
This silenced the systemd error but still the interface kept be named "eth0"...
Thierry Vignaud 2016-04-29 15:09:06 CEST

Status: NEW => ASSIGNED

Comment 14 Ben McMonagle 2016-04-30 00:28:17 CEST
Mageia-6-sta1-i586-DVD

my wired lan connection is identified as enp3s0.
however connects to modem, does not connect to internet.
removing connection and configuring a new wired connection works.
new connection is identified as enp3s0
Marja Van Waes 2016-05-23 10:59:36 CEST

Depends on: (none) => 18509

Thierry Vignaud 2016-06-08 17:12:52 CEST

Source RPM: drakx-installer-binaries, systemd => drakx-installer-binaries, systemd, udev

Comment 15 Thierry Vignaud 2016-06-08 17:13:58 CEST
*** Bug 18509 has been marked as a duplicate of this bug. ***

Depends on: 18509 => (none)

Comment 16 Thomas Backlund 2016-06-12 16:55:00 CEST
Interface renaming in stage1 fixed in dracut-044-10.mga6 and drakx-installer-images-2.35-15.mga6

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED

Comment 17 Mageia Robot 2024-04-25 08:10:33 CEST
commit 69461af9b8bd2fc335142856d97cc2669fb55098
Author: Thomas Backlund <tmb@...>
Date:   Sun Jun 12 14:41:10 2016 +0000

    mgainstaller: fix network interface renaming (mga#17651)
    
    Since systemd 220 interface renaming changed, and this file is needed for it to trigger
    in stage1 as we dont run full systemd/udev there.
    
    Fixes: https://bugs.mageia.org/show_bug.cgi?id=17651
    
    Signed-of-by: Thomas Backlund <tmb@mageia.org>
---
 Commit Link:
   https://gitweb.mageia.org/software/mageia-dracut-conf/commit/?id=69461af9b8bd2fc335142856d97cc2669fb55098

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