Bug 2148880

Summary: stap-prep doesn't work with kernel-rt
Product: Red Hat Enterprise Linux 9 Reporter: Renaud Métrich <rmetrich>
Component: systemtapAssignee: Frank Ch. Eigler <fche>
systemtap sub component: system-version QA Contact: qe-baseos-tools-bugs
Status: CLOSED MIGRATED Docs Contact:
Severity: low    
Priority: low CC: lberk, mcermak, mjw, qguo
Version: 9.1Keywords: MigratedToJIRA, Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-22 15:55:59 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 Renaud Métrich 2022-11-28 09:13:04 UTC
Description of problem:

When booted with kernel-rt, executing *stap-prep* script still tries to install non-existing packages:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# uname -r
5.14.0-162.6.1.rt21.168.el9_1.x86_64

# stap-prep
Configuring for kernel release 5.14.0-162.6.1.rt21.168.el9_1.x86_64
Debuginfo automatic downloading is not configured via $DEBUGINFOD_URLS
Need to install the following packages:
kernel-5.14.0-162.6.1.rt21.168.el9_1.x86_64
kernel-devel-5.14.0-162.6.1.rt21.168.el9_1.x86_64
kernel-debuginfo-5.14.0-162.6.1.rt21.168.el9_1.x86_64
...
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

The root cause is the naming which doesn't match what must be used in *stap-prep* script (but I didn't check the script at all).
It searches for "kernel-" instead of "kernel-rt-", "kernel-debuginfo-" instead of "kernel-rt-debuginfo-" and "kernel-devel-" instead of "kernel-rt-devel-".

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

systemtap-4.7-2.el9.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Install kernel-rt and reboot
2. Execute stap-prep

Actual results:

Can't find packages

Expected results:

Install proper packages

Comment 1 RHEL Program Management 2023-09-22 15:55:18 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-22 15:55:59 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.