RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 2192895 - weak-modules: support symvers.xz
Summary: weak-modules: support symvers.xz
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kmod
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eugene Syromiatnikov
QA Contact: Ziqian SUN (Zamir)
URL:
Whiteboard:
Depends On:
Blocks: 2192557
TreeView+ depends on / blocked
 
Reported: 2023-05-03 12:46 UTC by Prarit Bhargava
Modified: 2023-11-07 11:28 UTC (History)
6 users (show)

Fixed In Version: kmod-28-9.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:53:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-156302 0 None None None 2023-05-03 12:47:35 UTC
Red Hat Product Errata RHBA-2023:6636 0 None None None 2023-11-07 08:53:50 UTC

Description Prarit Bhargava 2023-05-03 12:46:12 UTC
Description of problem:  A recent kernel-ark change switched the symvers compression from gzip to xz, however, the /usr/sbin/weak-modules script only looks for gzip'd symvers files.


Version-Release number of selected component (if applicable): kmod-28-8.el9.x86_64


How reproducible: 100%


Steps to Reproduce:
1.  Download rpms from https://koji.fedoraproject.org/koji/buildinfo?buildID=2194617

kernel-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.rpm
kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.rpm
kernel-modules-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.rpm
kernel-modules-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.rpm

2. Install them

Actual results:

[root@ci-vm-10-0-137-27 ~]# rpm -ivh kernel-*
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-modules-core-6.4.0-0.rc0.2################################# [ 25%]
   2:kernel-core-6.4.0-0.rc0.20230501g################################# [ 50%]
   3:kernel-modules-6.4.0-0.rc0.202305################################# [ 75%]
   4:kernel-6.4.0-0.rc0.20230501git583################################# [100%]
Symvers dump file is not found in /boot/symvers-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.gz /lib/modules/6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64/symvers.gz
warning: %posttrans(kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64) scriptlet failed, exit status 1
[root@ci-vm-10-0-137-27 ~]#

Expected results: Installation completes

Additional info: The find_symvers_file function should be changed to

find_symvers_file() {
    local krel="$1"
    local print="$2"

    if find_kernel_file "$krel" symvers .gz > /dev/null; then
        find_kernel_file "$krel" symvers .gz "$print"
        return $?
    else
        find_kernel_file "$krel" symvers .xz "$print"
        return $?
    fi
}

Comment 10 Prarit Bhargava 2023-05-16 11:21:56 UTC
Eugene, this is needed to test ELN builds on RHEL9.  Is there any timeline on a fix for RHEL9?

P.

Comment 15 errata-xmlrpc 2023-11-07 08:53:44 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 (kmod 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-2023:6636


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