Bug 2012123

Summary: CS8 - NetworkManager undefined symbol: ifname_valid
Product: Red Hat Enterprise Linux 8 Reporter: Leon Fauster <leonfauster>
Component: NetworkManagerAssignee: Ana Cabral <acabral>
Status: CLOSED ERRATA QA Contact: Vladimir Benes <vbenes>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: acabral, bgalvani, bstinson, dtardon, jwboyer, lrintel, rkhan, rmetrich, sukulkar, systemd-maint-list, till, vbenes
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: acabral: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.34.0-0.3.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 14:54:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leon Fauster 2021-10-08 10:49:20 UTC
Description of problem:

While doing

# dnf update

following shows up:

  Ausgeführtes Scriptlet: NetworkManager-1:1.34.0-0.2.el8.x86_64                 6/40 
  Aktualisieren         : NetworkManager-1:1.34.0-0.2.el8.x86_64                 6/40 
  Ausgeführtes Scriptlet: NetworkManager-1:1.34.0-0.2.el8.x86_64                 6/40 
/usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol: ifname_valid, version SD_SHARED
/usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol: ifname_valid, version SD_SHARED


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

# rpm -q NetworkManager
NetworkManager-1.34.0-0.2.el8.x86_64

# head -3 /etc/os-release 
NAME="CentOS Stream"
VERSION="8"
ID="centos"


How reproducible:
Update NetworkManager from previous version to NetworkManager-1.34.0-0.2.el8

Comment 1 Beniamino Galvani 2021-10-08 11:19:32 UTC
/usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol: ifname_valid, version SD_SHARED

This looks like a problem with udevadm compilation/linking. Reassigning.

Comment 2 David Tardon 2021-10-14 07:31:46 UTC
(In reply to Beniamino Galvani from comment #1)
> /usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol:
> ifname_valid, version SD_SHARED
> 
> This looks like a problem with udevadm compilation/linking. Reassigning.

udevadm compilation/linking is fine. ifname_valid is a symbol from an internal library that's been renamed recently and *new* udevadm uses the new name. The problem here is that there is a mix of new /usr/lib/systemd/libsystemd-shared-239.so (systemd-libs rpm) and old /usr/bin/udevadm (systemd-udev rpm) on the system at the point NetworkManager's post scriptlet is run. That's because NetworkManager doesn't have Requires(post): systemd-udev.

Steps to reproduce:
1. Take an older installation of CS8 (with systemd < 239-51).
2. Run "yum update NetworkManager systemd".
3. Observe that systemd-libs is updated before NetworkManager, but systemd-udev after it.

Comment 11 Vladimir Benes 2021-11-11 11:42:14 UTC
Requires(post): systemd-udev added to spec file

Comment 12 David Tardon 2022-01-20 10:58:51 UTC
*** Bug 2042879 has been marked as a duplicate of this bug. ***

Comment 15 errata-xmlrpc 2022-05-10 14:54:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (NetworkManager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:1985