What were you trying to do that didn't work?
Ensuring that uninstall srp_daemon-57.0-1.el9.x86_64 removes all the files this package installed and stop related systemd service.
What is the impact of this issue to you?
Uninstallation of srp_daemon isn't clean unless "rdma-load-modules@srp_daemon.service" is stopped before uninstalling the package.
Please provide the package NVR for which the bug is seen:
[root@rdma-qe-42 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.7 Beta (Plow)
[root@rdma-qe-42 ~]$ grep -i DISTRO /etc/motd | uniq | tr -d " "
DISTRO=RHEL-9.7.0-updates-20250625.4
[root@rdma-qe-42 ~]$ uname -r
5.14.0-594.el9.x86_64
[root@rdma-qe-42 ~]$ rpm -qa | grep -i -E "rdma|infiniband|ibacm|iwpmd|ibverbs|ibumad|verbs" | grep -v "debuginfo"
rdma-core-57.0-1.el9.x86_64
libibverbs-57.0-1.el9.x86_64
librdmacm-57.0-1.el9.x86_64
libibumad-57.0-1.el9.x86_64
infiniband-diags-57.0-1.el9.x86_64
rdma-core-devel-57.0-1.el9.x86_64
librdmacm-utils-57.0-1.el9.x86_64
libibverbs-utils-57.0-1.el9.x86_64
ibacm-57.0-1.el9.x86_64
[root@rdma-qe-42 ~]$
How reproducible is this bug?:
Always
Steps to reproduce
- Install srp_daemon-57.0-1.el9.x86_64
- yum -y remove srp_daemon-57.0-1.el9.x86_64
- systemctl list-units rdma-load*
Expected results
Clean uninstallation of srp_daemon-57.0-1.el9.x86_64 including stopping "rdma-load-modules@srp_daemon.service".
Actual results
[root@rdma-qe-42 ~]$ yum remove rdma-core
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.
Dependencies resolved.
===================================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================================
Removing:
rdma-core x86_64 57.0-1.el9 @beaker-BaseOS 119 k
Transaction Summary
===================================================================================================================================
Remove 1 Package
Freed space: 119 k
Is this ok [y/N]: y
Running transaction check
[...snip...]
Removed:
rdma-core-57.0-1.el9.x86_64
Complete!
[root@rdma-qe-42 ~]$ systemctl list-units rdma-load*
UNIT LOAD ACTIVE SUB DESCRIPTION
rdma-load-modules@srp_daemon.service loaded active exited Load RDMA modules from /etc/rdma/modules/srp_daemon.conf
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@rdma-qe-42 ~]$ rpm -qf /etc/rdma/modules/srp_daemon.conf
error: file /etc/rdma/modules/srp_daemon.conf: No such file or directory
[root@rdma-qe-42 ~]$ systemctl daemon-reload
[root@rdma-qe-42 ~]$ systemctl list-units rdma-load*
UNIT LOAD ACTIVE SUB DESCRIPTION
● rdma-load-modules@srp_daemon.service not-found active exited rdma-load-modules@srp_daemon.service
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@rdma-qe-42 ~]$
After install srp_daemon-57.0-1.el9.x86_64 & rdma-core-57.0-1.el9.x86_64:
[root@rdma-qe-42 ~]$ rpm -q srp_daemon rdma-core
srp_daemon-57.0-1.el9.x86_64
rdma-core-57.0-1.el9.x86_64
[root@rdma-qe-42 ~]$ systemctl list-units rdma-load*
UNIT LOAD ACTIVE SUB DESCRIPTION
rdma-load-modules@infiniband.service loaded active exited Load RDMA modules from /etc/rdma/modules/infiniband.conf
rdma-load-modules@roce.service loaded active exited Load RDMA modules from /etc/rdma/modules/roce.conf
rdma-load-modules@srp_daemon.service loaded active exited Load RDMA modules from /etc/rdma/modules/srp_daemon.conf
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@rdma-qe-42 ~]$ systemctl stop rdma-load-modules@srp_daemon.service
[root@rdma-qe-42 ~]$ systemctl list-units rdma-load*
UNIT LOAD ACTIVE SUB DESCRIPTION
rdma-load-modules@infiniband.service loaded active exited Load RDMA modules from /etc/rdma/modules/infiniband.conf
rdma-load-modules@roce.service loaded active exited Load RDMA modules from /etc/rdma/modules/roce.conf
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@rdma-qe-42 ~]$