Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-72139

RHEL-9.6 systemd have no net naming scheme rhel-9.6

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • rhel-9.6
    • systemd
    • None
    • No
    • Important
    • rhel-plumbers
    • ssg_core_services
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When test Leapp upgrading from RHEL9.6 to RHEL10.0, nic name are not consistent even specified net.naming-scheme=rhel-9.6. I found that the reason for the inconsistent names is using default rhel-9.0 naming scheme. The RHEL-9.6.0-20241219.3 don't support rhel-9.6 scheme yet.

      What is the impact of this issue to you?

      Leapp in-place ugrade

      Please provide the package NVR for which the bug is seen:

      5.14.0-545.el9.x86_64
      RHEL-9.6.0-20241219.3

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Set kernel parameters net.naming-scheme=rhel-9.6, but scheme is still rhel-9.0 
      [root@vm-10-0-187-42 ~]# systemctl --version
      systemd 252 (252-48.el9)
      
      [root@vm-10-0-187-42 ~]# cat /proc/cmdline 
      BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.14.0-545.el9.x86_64 root=UUID=da27f21e-83bb-4fd8-be38-ed5f494e3a84 ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8 net.naming-scheme=rhel-9.6
      
      [root@vm-10-0-187-42 ~]# udevadm info /sys/class/net/eth0/
      P: /devices/pci0000:00/0000:00:03.0/virtio1/net/eth0
      M: eth0
      R: 0
      U: net
      I: 2
      E: DEVPATH=/devices/pci0000:00/0000:00:03.0/virtio1/net/eth0
      E: SUBSYSTEM=net
      E: INTERFACE=eth0
      E: IFINDEX=2
      E: USEC_INITIALIZED=4016111
      E: ID_NET_DRIVER=virtio_net
      E: ID_NET_NAMING_SCHEME=rhel-9.0
      1.  
      2.  

      Expected results

      Actual results

      https://github.com/redhat-plumbers/systemd-rhel10/blob/main/src/shared/netif-naming-scheme.h#L86
      https://github.com/redhat-plumbers/systemd-rhel9/blob/main/src/shared/netif-naming-scheme.h#L76
      have 9.6 scheme in rhel10's systemd yet

              jamacku@redhat.com Jan Macku
              rh-ee-xudu Xu Du
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: