By default (and as we can see in the ID_NET_LINK_FILE= property above),
the name policy is controlled by NamePolicy= in
/usr/lib/systemd/network/99-default.link. On Jammy, this looks like:

root@jammy:~# cat /lib/systemd/network/99-default.link 
#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Match]
OriginalName=*

[Link]
NamePolicy=keep kernel database onboard slot path
AlternativeNamesPolicy=database onboard slot path
MACAddressPolicy=persistent

Basically, udev will try those policies in order until one matches.
Based on the udev properties above, it looks like the 'path' policy was
selected. This *might* different than before, or maybe something else
changed on the system that then changed resulting name constructed by
udev.

Can you please enable debug logs for udev (ideally on both a working and
non-working system), and share them here? E.g.

$ mkdir -p /etc/systemd/system/systemd-udevd.service.d
$ cat  > /etc/systemd/system/systemd-udevd.service.d/debug.conf << EOF
[Service]
Environment=SYSTEMD_LOG_LEVEL=debug
EOF

Then, reboot, and then run:

$ journalctl -u systemd-udevd.service -b > udev.log

and attach the result.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2085835

Title:
  "Predictable Network Interface Naming" suddenly changed the name from
  enp96s0f0 to enp96s0f0np0 causing outage

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2085835/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to