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-oracleasm | Assignee: | Eugene Syromiatnikov <esyr> |
| Status: | CLOSED ERRATA | QA Contact: | Ziqian SUN (Zamir) <zsun> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 8.4 | CC: | amkulkar, esyr, kwalker, paygupta, pdwyer, skozina, sujagtap, zsun |
| Target Milestone: | beta | Keywords: | 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
--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. 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.
Well, yes, contrary to the kernel package, kmod-* packages do not enable parallel installability ("installonly"). I think it may be addressed in RHEL 9.
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?
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 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |