Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1974732

Summary: RHEL 8 latest updates fail when kmod-redhat-oracleasm-kernel* is installed
Product: Red Hat Enterprise Linux 8 Reporter: jcastran
Component: kmod-redhat-oracleasmAssignee: Eugene Syromiatnikov <esyr>
Status: CLOSED ERRATA QA Contact: Ziqian SUN (Zamir) <zsun>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.4CC: amkulkar, esyr, kwalker, paygupta, pdwyer, skozina, sujagtap, zsun
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kmod-redhat-oracleasm-2.0.8-14.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:06:35 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 jcastran 2021-06-22 12:15:07 UTC
Description of problem:
With 8.4 comes an update for kmod-redhat-oracleasm but there is no update or obsolete for the kmod-redhat-oracleasm-kernel_4_18_0_240-8:2.0.8-1.3.el8_3.x86_64 package.

Version-Release number of selected component (if applicable):
kmod-redhat-oracleasm-2.0.8-1.3.el8_3.x86_64
kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-2.0.8-1.3.el8_3.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. # yum install kmod-redhat-oracleasm-2.0.8-1.3.el8_3.x86_64 kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-2.0.8-1.3.el8_3.x86_64
2. # yum update
3.

Actual results:
Error:
 Problem: package kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-8:2.0.8-1.3.el8_3.x86_64 requires kmod-redhat-oracleasm = 8:2.0.8-1.3.el8_3, but none of the providers can be installed
  - package kmod-redhat-oracleasm-8:2.0.8-1.3.el8_3.x86_64 conflicts with kmod-oracleasm provided by kmod-redhat-oracleasm-8:2.0.8-11.el8.x86_64
  - package kmod-redhat-oracleasm-8:2.0.8-11.el8.x86_64 conflicts with kmod-oracleasm provided by kmod-redhat-oracleasm-8:2.0.8-1.3.el8_3.x86_64
  - cannot install both kmod-redhat-oracleasm-8:2.0.8-11.el8.x86_64 and kmod-redhat-oracleasm-8:2.0.8-1.3.el8_3.x86_64
  - cannot install the best update candidate for package kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-8:2.0.8-1.3.el8_3.x86_64
  - cannot install the best update candidate for package kmod-redhat-oracleasm-8:2.0.8-1.3.el8_3.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Expected results:
There should either be an update for kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-2.0.8-1.3.el8_3.x86_64
 OR
the latest kmod-redhat-oracleasm should obsolete it
 OR
These should not conflict

Additional info:

Comment 1 Eugene Syromiatnikov 2021-06-22 12:28:21 UTC
--allowerasing should solve the issue. I thought it was documented in a KB article, but I can't find it at the moment, not sure if it made it in the end.

Comment 3 jcastran 2021-06-22 13:01:48 UTC
If that package is required for the older kernel, then --allowerasing will remove it and take it from the still installed older kernel. I'm not entirely sure what that package is providing

The removal of the package will remove the modules.

postuninstall scriptlet (using /bin/sh):
	if rpm -q --filetriggers kmod 2> /dev/null| grep -q "Trigger for weak-modules call on kmod removal"; then
		initramfs_opt="--no-initramfs"
	else
		initramfs_opt=""
	fi

	modules=( $(cat "/var/lib/rpm-state/kmod-dups/rpm-kmod-oracleasm-modules") )
	rm -f "/var/lib/rpm-state/kmod-dups/rpm-kmod-oracleasm-modules"
	printf '%s\n' "${modules[@]}" | /usr/sbin/weak-modules --remove-modules $initramfs_opt

	rmdir "/var/lib/rpm-state/kmod-dups" 2> /dev/null


It doesn't seem like it will rebuild the initramfs so they should stay in there unless that gets rebuilt. I can add it to a KCS. Currently I recommended --nobest or excluding the latest kmod-redhat-oracleasm to allow them to update the rest of the system without uninstalling anything that may be required.

Comment 4 Eugene Syromiatnikov 2021-06-22 13:15:01 UTC
Well, yes, contrary to the kernel package, kmod-* packages do not enable parallel installability ("installonly").  I think it may be addressed in RHEL 9.

Comment 5 Kyle Walker 2021-06-22 15:59:57 UTC
That isn't entirely the case. These particular kmods embed the kernel version in the name identifier. So they inherently become installonly since they are on different version streams.

    $ rpm -qp kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-2.0.8-1.3.el8_3.x86_64.rpm kmod-redhat-oracleasm-2.0.8-1.3.el8_3.x86_64.rpm --qf "%{NAME}\n"
    kmod-redhat-oracleasm-kernel_4_18_0_240_14_1
    kmod-redhat-oracleasm

Also, it looks like we have some content that is in kmod-redhat-oracleasm-2.0.8-1.3.el8_3.x86_64.rpm that isn't in the one that embeds the kernel version in the name for the 8.3.0.z build:

$ rpm -qlp kmod-redhat-oracleasm-2.0.8-1.3.el8_3.x86_64.rpm 
/etc/depmod.d/oracleasm.conf
/usr/share/doc/kmod-redhat-oracleasm/greylist.txt

$ rpm -qlp kmod-redhat-oracleasm-kernel_4_18_0_240_14_1-2.0.8-1.3.el8_3.x86_64.rpm 
/lib/modules/4.18.0-240.14.1.el8_3.x86_64
/lib/modules/4.18.0-240.14.1.el8_3.x86_64/extra
/lib/modules/4.18.0-240.14.1.el8_3.x86_64/extra/kmod-redhat-oracleasm
/lib/modules/4.18.0-240.14.1.el8_3.x86_64/extra/kmod-redhat-oracleasm/oracleasm.ko
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/70d02eb82753edf737bffadb192ac6827f6a88
/usr/share/doc/kmod-redhat-oracleasm/greylist.txt.4.18.0-240.14.1.el8_3


Whereas the newer 8.4.0 version seems to combine these:

$ rpm -qlp kmod-redhat-oracleasm-2.0.8-11.el8.x86_64.rpm 
/etc/depmod.d/oracleasm.conf
/lib/modules/4.18.0-286.el8.x86_64
/lib/modules/4.18.0-286.el8.x86_64/extra
/lib/modules/4.18.0-286.el8.x86_64/extra/kmod-redhat-oracleasm
/lib/modules/4.18.0-286.el8.x86_64/extra/kmod-redhat-oracleasm/oracleasm.ko
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/2c95d384be86bd5f302f0bd11875d0faf20384
/usr/share/doc/kmod-redhat-oracleasm/greylist.txt

If the 8.4.0 version combines these two, wouldn't that meant that the Obsolete tag (for the two previously split RPMs) is the correct way to go about fixing this?

Comment 18 errata-xmlrpc 2022-11-08 10:06: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 (kmod-redhat-oracleasm 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:7678

Comment 19 Red Hat Bugzilla 2023-09-18 00:27:46 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days