Bug 2022389

Summary: "needs-restarting -r" not notifying kernel modification
Product: Red Hat Enterprise Linux 8 Reporter: Lucas Miranda <lmiranda>
Component: dnf-plugins-coreAssignee: Nicola Sella <nsella>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.5CC: alex.j.kerzner, amdas, amkulkar, barry.snyder, bfinger, bmason, byodlows, dovechkin, fperalta, hajek, james.antill, jcastran, jean-christophe.guis, john.thomas, keith.hammel, mbanas, mkenjale, mmilgram, mschwabe, n3-infra-web-unix, nico.van.roijen, nsella, oliver, packaging-team-maint, paygupta, pkratoch, sbueno, snavale
Target Milestone: rcKeywords: CustomerScenariosInitiative, EasyFix, Reproducer, Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.21-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2037008 (view as bug list) Environment:
Last Closed: 2022-05-10 15:23:48 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:
Bug Depends On:    
Bug Blocks: 2037008    

Description Lucas Miranda 2021-11-11 14:37:51 UTC
Description of problem:
  "needs-restarting -r" isn't telling to reboot the system after the installation of a newer kernel version.

Version-Release number of selected component (if applicable):
  - yum-utils-4.0.21-3.el8.noarch
  - Old kernel: kernel-4.18.0-305.25.1.el8_4.x86_64
  - New kernel: kernel-4.18.0-348.el8.x86_64  

How reproducible:
  Every time

Steps to Reproduce:
  1. Update kernel package
  2. Run "needs-restarting -r"

Actual results:
  No core libraries or services have been updated since boot-up.
  Reboot should not be necessary.

Expected results:
  Core libraries or services have been updated since boot-up:
    * kernel

Comment 3 alex.j.kerzner 2021-11-18 12:14:38 UTC
Might be related to Fedora 34's bz#1960437, I remember dealing with that one.

The pull request for that fix was https://github.com/rpm-software-management/dnf-plugins-core/pull/432 .

Comment 26 Nicola Sella 2022-03-15 14:32:12 UTC
*** Bug 2043538 has been marked as a duplicate of this bug. ***

Comment 28 errata-xmlrpc 2022-05-10 15:23:48 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 (dnf-plugins-core 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/RHBA-2022:2052