Bug 2042424

Summary: kernel-tools does not perform a daemon reload when installed/upgraded
Product: Red Hat Enterprise Linux 8 Reporter: Daniel Juarez <djuarezg>
Component: kernelAssignee: Jarod Wilson <jarod>
kernel sub component: Packaging QA Contact: Red Hat Kernel QE team <kernel-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: bstinson, cye, dhoward, hkrzesin, jwboyer, nmurray
Version: CentOS StreamKeywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-4.18.0-421.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:18:41 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 Daniel Juarez 2022-01-19 13:57:28 UTC
With a recent upgrade of the kernel-tools package we see the following.

root@testnode ~]# systemctl status cpupower.service
● cpupower.service - Configure CPU power related settings
Loaded: loaded (/usr/lib/systemd/system/cpupower.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Warning: cpupower.service changed on disk. Run 'systemctl daemon-reload' to reload units.

There seems to be no `systemctl daemon-reload`in the RPM scriptlet of this package.

In the %post part of the corresponding specfile there seems to miss a daemon reload, just where the following is specified:

```
%if %{with_tools}
%post -n %{name}-tools-libs
/sbin/ldconfig
```

For the record this issue is fixed in CentOS Stream 9: https://gitlab.com/redhat/centos-stream/rpms/kernel-tools/-/blob/c9s/kernel-tools.spec#L400

Comment 9 errata-xmlrpc 2022-11-08 10:18:41 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 (Moderate: kernel security, 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/RHSA-2022:7683