Bug 1997398

Summary: Transaction test error when in-place upgrading RHEL8 to RHEL9
Product: Red Hat Enterprise Linux 9 Reporter: Michal Reznik <mreznik>
Component: wireless-regdbAssignee: Michal Schmidt <mschmidt>
Status: CLOSED ERRATA QA Contact: Ken Benoit <kbenoit>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: dbayly, jstodola, kzhang, ldu, mschmidt, pstodulk, rvykydal, snagar, xuli, yacao, yuxisun
Target Milestone: rcKeywords: TestBlocker, Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wireless-regdb-2020.11.20-6.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:58:05 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:
Attachments:
Description Flags
bump provides/obsoletes for crda none

Description Michal Reznik 2021-08-25 07:27:42 UTC
Description of problem:

When in-place upgrading RHEL8 to RHEL9 with "wireless-regdb" package included in the rpm transaction, it fails with:

Error: Transaction test error:
file /usr/lib/firmware/regulatory.db from install of wireless-regdb-2020.11.20-4.el9.noarch conflicts with file from package crda-3.18_2020.04.29-1.el8.noarch
file /usr/lib/firmware/regulatory.db.p7s from install of wireless-regdb-2020.11.20-4.el9.noarch conflicts with file from package crda-3.18_2020.04.29-1.el8.noarch 
file /usr/sbin/setregdomain from install of wireless-regdb-2020.11.20-4.el9.noarch conflicts with file from package crda-3.18_2020.04.29-1.el8.noarch

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

wireless-regdb-2020.11.20-4.el9.noarch

How reproducible:

During in-place upgrade from RHEL8 to RHEL9 (with "wireless-regdb" package)

Actual results:

The upgrade fails with transaction error.

Expected results:

The upgrade passes.

Comment 1 Radek Vykydal 2021-10-08 07:55:17 UTC
Hello, gating test leapp.brew-build.upgrade.distro of anaconda build for 9.0.0 anaconda-34.25.0.18-1.el9 is failing with the issue.

Comment 2 Radek Vykydal 2021-10-21 06:33:35 UTC
Are you planning to address this issue?
We are still waiving our leapp gating test.

Comment 6 Michal Schmidt 2021-11-18 15:26:02 UTC
wireless-regdb in RHEL 9 is supposed to obsolete the crda package from RHEL 8. crda had an update in RHEL 8 and its version is no longer covered. The provides/obsoletes version in wireless-regdb.spec needs to be bumped to cover the current crda in RHEL 8.

Comment 7 Michal Schmidt 2021-11-18 15:28:26 UTC
Created attachment 1842599 [details]
bump provides/obsoletes for crda

Proposed spec file patch.

Comment 14 Ken Benoit 2021-12-01 12:57:30 UTC
Installed RHEL-8.5.0 on a system. Confirmed crda installed. Set up a repo file pointing at RHEL-9.0.0-20211129.2. Ran dnf install wireless-regdb. Was able to successfully install wireless-regdb, which also correctly removed crda. Rebooted the system. Still able to probe the current regulatory settings without issue. Marking as verified.

Comment 16 errata-xmlrpc 2022-05-17 15:58:05 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 (new packages: wireless-regdb), 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:3981