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 1946863

Summary: [RHEL9.0] Install cryptsetup-devel failed
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: cryptsetupAssignee: Ondrej Kozina <okozina>
Status: CLOSED NOTABUG QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: high    
Version: 9.0CC: agk, jbrassow, mbroz, okozina, prajnoha, senrique
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-18 13:46:43 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 guazhang@redhat.com 2021-04-07 04:13:04 UTC
Description of problem:
install libblockdev failed because Failed build dependencies

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

libblockdev-2.25-2.el9.src.rpm
cryptsetup-devel-2.3.4-2.el9.x86_64

How reproducible:


Steps to Reproduce:
1. rpmbuild --recompile --noclean libblockdev-2.25-2.el9.src.rpm
2.
3.


[root@dell-per430-16 ~]# yum install -y  cryptsetup-devel
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 3:22:57 ago on 2021年04月06日 星期二 20时40分28秒.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides cryptsetup-libs(x86-64) = 2.3.4-2.el9 needed by cryptsetup-devel-2.3.4-2.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@dell-per430-16 ~]# 
[root@dell-per430-16 ~]# 
[root@dell-per430-16 ~]# 
[root@dell-per430-16 ~]# yum install -y  cryptsetup-devel cryptsetup-libs 
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 3:23:33 ago on 2021年04月06日 星期二 20时40分28秒.
Package cryptsetup-libs-2.3.5-2.el9.x86_64 is already installed.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides cryptsetup-libs(x86-64) = 2.3.4-2.el9 needed by cryptsetup-devel-2.3.4-2.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


[root@dell-per430-16 ~]# yum list | grep cryptsetup-libs
cryptsetup-libs.x86_64                                                                                                                                                                                             2.3.5-2.el9                                @beaker-BaseOS                                  
cryptsetup-libs.i686                                                                                                                                                                                               2.3.5-2.el9                                beaker-BaseOS                                   
cryptsetup-libs-debuginfo.i686                                                                                                                                                                                     2.3.5-2.el9                                beaker-BaseOS-debuginfo                         
cryptsetup-libs-debuginfo.x86_64                                                                                                                                                                                   2.3.5-2.el9                                beaker-BaseOS-debuginfo                         
[root@dell-per430-16 ~]# 
[root@dell-per430-16 ~]# yum list | grep cryptsetup-devel
cryptsetup-devel.i686                                                                                                                                                                                              2.3.4-2.el9                                rhel-buildroot-beaker                           
cryptsetup-devel.x86_64                                                                                                                                                                                            2.3.4-2.el9                                rhel-buildroot-beaker                           
[root@dell-per430-16 ~]# 
[root@dell-per430-16 ~]#

Comment 1 Ondrej Kozina 2021-04-07 07:20:39 UTC
Seems the machine is missing repository with cryptsetup-devel-2.3.5-2.el9 package. The error message you see is consequence of cryptsetup-devel-2.3.4 trying to pull in older cryptsetup-libs (which triggers conflicts with installed packages)

Comment 2 guazhang@redhat.com 2021-04-07 09:07:38 UTC
Yes, 

Could you add the newer cryptsetup-devel to RHEL9 repo ?

# cat /etc/yum.repos.d/beaker-BaseOS.repo 
[beaker-BaseOS]
name=beaker-BaseOS
baseurl=http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.0.0-20210330.8/compose/BaseOS/x86_64/os
enabled=1
gpgcheck=0
skip_if_unavailable=1

Comment 5 guazhang@redhat.com 2021-04-08 08:02:58 UTC
Hi,

Anyway, I have created a script to install all cryptsetup dependencies package.

rpm -q --qf %{NAME}/%{VERSION}/%{RELEASE} cryptsetup 
cryptsetup/2.3.5/2.el9


yum install -y  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-debuginfo-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-debugsource-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-devel-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-libs-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-libs-debuginfo-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-reencrypt-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/cryptsetup-reencrypt-debuginfo-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/integritysetup-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/integritysetup-debuginfo-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/veritysetup-2.3.5-2.el9.x86_64.rpm  http://download-node-02.eng.bos.redhat.com/brewroot/packages/cryptsetup/2.3.5/2.el9/x86_64/veritysetup-debuginfo-2.3.5-2.el9.x86_64.rpm