Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1709842 - Tracer shows the machines needs rebooting even after reboot if kernel-debug is installed
Summary: Tracer shows the machines needs rebooting even after reboot if kernel-debug i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-tracer
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high with 3 votes
Target Milestone: 6.8.0
Assignee: Jonathon Turel
QA Contact: Ondrej Gajdusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-14 12:02 UTC by Ahmed Eladawy
Modified: 2023-12-15 16:30 UTC (History)
3 users (show)

Fixed In Version: tracer-0.7.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:58:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29435 0 Normal Closed Tracer shows the machines needs rebooting even after reboot if kernel-debug is installed 2021-02-15 05:45:15 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:58:50 UTC

Description Ahmed Eladawy 2019-05-14 12:02:47 UTC
Description of problem:

- If the kernel-debug is installed on the machine, the tracer command output will be like the following even after rebooting the machine.

You should restart:
  * These applications rebooting your computer:
      kernel
- This will case the machine to be marked as "Reboot Required" on the machine Properties and on Content Hosts

Application    | Type	   |  Helper
kernel	       | static	   |  You will have to reboot your computer

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

katello-host-tools-tracer-3.3.5-3.el7sat.noarch
tracer-common-0.7.0-3.el7sat.noarch
python2-tracer-0.7.0-3.el7sat.noarch


How reproducible:Confirmed

Steps to Reproduce:
1. Install katello-host-tools-tracer package on any registered machine.
2. Install kernel-debug package
3. Reboot the machine.
4. Run "tracer -a"
5. Check the machine on the satellite "All Hosts" and "Content Hosts -> Traces"

Actual results:

You should restart:
  * These applications rebooting your computer:
      kernel

Expected results:

The machine does not need to be rebooted because of the kernel.

Comment 3 Ahmed Eladawy 2019-05-14 12:06:39 UTC
Extract the kernel checking code from /usr/lib/python2.7/site-packages/tracer/resources/tracer.py and run it on the machine :

------
        def _has_updated_kernel(self):
                if os.path.isdir('/lib/modules/'):
                        for k_version in next(os.walk('/lib/modules/'))[1]:
                                if parse_version(os.uname()[2]) < parse_version(k_version):
                                        return True
                        return False
                return False
-----

Run it on the machine after modifying it to print the valuses:

-----
import os
from pkg_resources import parse_version

print "All Installed Kernel"
print next(os.walk('/lib/modules/'))[1]
print "Current running kernel"
print os.uname()[2]

for k_version in next(os.walk('/lib/modules/'))[1]:
	if parse_version(os.uname()[2]) < parse_version(k_version):
		print parse_version(os.uname()[2]) 
		print parse_version(k_version) 
-----

The output:

All Installed Kernel
['3.10.0-957.el7.x86_64', '3.10.0-957.5.1.el7.x86_64.debug']
Current running kernel
3.10.0-957.el7.x86_64
('00000003', '00000010', '*final-', '00000957', '*el', '00000007', '*x', '00000086', '*_', '00000064', '*final')
('00000003', '00000010', '*final-', '00000957', '00000005', '00000001', '*el', '00000007', '*x', '00000086', '*_', '00000064', '*debug', '*final')

Comment 4 Jonathon Turel 2020-03-30 13:05:27 UTC
Created redmine issue https://projects.theforeman.org/issues/29435 from this bug

Comment 5 Bryan Kearney 2020-04-01 14:05:08 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29435 has been resolved.

Comment 6 Ondrej Gajdusek 2020-08-13 14:42:33 UTC
$ rpm -q kernel
kernel-3.10.0-1062.9.1.el7.x86_64

$ uname -r
3.10.0-1062.9.1.el7.x86_64

$ rpm -q kernel-debug
kernel-debug-3.10.0-1127.18.2.el7.x86_64
kernel-debug-3.10.0-1062.9.1.el7.x86_64

$ rpm -qa | grep tracer
katello-host-tools-tracer-3.5.1-2.el7sat.noarch
python2-tracer-0.7.1-2.el7sat.noarch
tracer-common-0.7.1-2.el7sat.noarch

$ tracer --user=* -av
You should restart:
  * These applications rebooting your computer:
      kernel

katello-tracer-upload

On Satellite:
$ hammer host traces list --host myhost.com
---------|-------------|---------------------------------------|-------
TRACE ID | APPLICATION | HELPER                                | TYPE  
---------|-------------|---------------------------------------|-------
534      | kernel      | You will have to reboot your computer | static
---------|-------------|---------------------------------------|-------

Back on client:
$ yum update katello-host-tools-tracer katello-host-tools-tracer katello-host-tools-tracer
... output omitted ...

$ rpm -qa | grep tracer
tracer-common-0.7.3-1.el7sat.noarch
katello-host-tools-tracer-3.5.4-1.el7sat.noarch
python2-tracer-0.7.3-1.el7sat.noarch

$ tracer --user=* -av
(shows no output)

katello-tracer-upload

On Satellite, no traces are shown:
$ hammer host traces list --host dhcp-3-49.vms.sat.rdu2.redhat.com
---------|-------------|--------|-----
TRACE ID | APPLICATION | HELPER | TYPE
---------|-------------|--------|-----

Comment 9 errata-xmlrpc 2020-10-27 12:58:35 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 (Important: Satellite 6.8 release), 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-2020:4366


Note You need to log in before you can comment on or make changes to this bug.