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: beta   
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