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 2028113 - Conflict when updating libblockdev-lvm-devel
Summary: Conflict when updating libblockdev-lvm-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libblockdev
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vojtech Trefny
QA Contact: guazhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-01 13:57 UTC by Vojtech Trefny
Modified: 2022-05-17 13:35 UTC (History)
1 user (show)

Fixed In Version: libblockdev-2.25-11.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:24:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-104464 0 None None None 2021-12-01 14:01:01 UTC
Red Hat Product Errata RHBA-2022:2503 0 None None None 2022-05-17 13:24:41 UTC

Description Vojtech Trefny 2021-12-01 13:57:27 UTC
This was discovered by RHEL 9.0 gating. The problem is that libblockdev-lvm-devel and libblockdev-lvm-dbus-devel are in theory independent packages so it is possible to update only one of them with dnf. But these also share the /usr/include/blockdev/lvm.h header file so if there is a change in this file upgrading only one of these packages will result in a conflict between them. We need to somehow fix this in libblockdev spec file to make sure libblockdev-lvm-devel and libblockdev-lvm-dbus-devel are always the same version and release.


Output from the gating test showing the error:

 -------------------------------------------------------------------
|                                                                   |
|   Prepare for updating libblockdev-lvm-devel-0:2.25-9.el9.x86_64  |
|                                                                   |
-------------------------------------------------------------------
Found available older package: libblockdev-lvm-devel-0:2.25-7.el9.x86_64
Package libblockdev-lvm-devel-0:2.25-9.el9.x86_64 absent. No downgrade.
Install an older version for libblockdev-lvm-devel-0:2.25-9.el9.x86_64: libblockdev-lvm-devel-0:2.25-7.el9.x86_64
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:04:08 ago on Tue 30 Nov 2021 12:00:29 PM EST.
Dependencies resolved.
================================================================================
 Package                   Arch       Version        Repository            Size
================================================================================
Installing:
 libblockdev-lvm-devel     x86_64     2.25-7.el9     rhel-9-buildroot      17 k
Downgrading:
 libblockdev-lvm           x86_64     2.25-7.el9     rhel-9-appstream      39 k

Transaction Summary
================================================================================
Install    1 Package
Downgrade  1 Package

Total download size: 57 k
Downloading Packages:
(1/2): libblockdev-lvm-2.25-7.el9.x86_64.rpm    790 kB/s |  39 kB     00:00    
(2/2): libblockdev-lvm-devel-2.25-7.el9.x86_64. 297 kB/s |  17 kB     00:00    
--------------------------------------------------------------------------------
Total                                           940 kB/s |  57 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  file /usr/include/blockdev/lvm.h from install of libblockdev-lvm-devel-2.25-7.el9.x86_64 conflicts with file from package libblockdev-lvm-dbus-devel-2.25-9.el9.x86_64

Comment 1 Vojtech Trefny 2021-12-16 15:04:43 UTC
upstream PR: https://github.com/storaged-project/libblockdev/pull/681

Comment 2 guazhang@redhat.com 2022-01-13 04:49:55 UTC
HI

1. upgrade libblockdev-lvm, libblockdev-lvm-devel  from  2.25-7.el9 to  2.25-9.el9, hit the error.

Last metadata expiration check: 0:19:45 ago on Wed 12 Jan 2022 10:31:43 PM EST.
Dependencies resolved.
========================================================================================================================================
 Package                                  Architecture              Version                       Repository                       Size
========================================================================================================================================
Upgrading:
 libblockdev-lvm                          x86_64                    2.25-9.el9                    @commandline                     37 k
 libblockdev-lvm-devel                    x86_64                    2.25-9.el9                    @commandline                     16 k

Transaction Summary
========================================================================================================================================
Upgrade  2 Packages

Total size: 53 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/include/blockdev/lvm.h from install of libblockdev-lvm-devel-2.25-9.el9.x86_64 conflicts with file from package libblockdev-lvm-dbus-devel-2.25-7.el9.x86_64


2. upgrade libblockdev-lvm, libblockdev-lvm-devel  from  2.25-10.el9 to  2.25-11.el9, test pass.

[root@hp-dl380-gen9-6 ~]# yum install libblockdev-lvm-2.25-11.el9.x86_64.rpm libblockdev-lvm-devel-2.25-11.el9.x86_64.rpm   libblockdev-utils-devel-2.25-11.el9.x86_64.rpm  libblockdev-utils-2.25-11.el9.x86_64.rpm  --allowerasing
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:44:23 ago on Wed 12 Jan 2022 10:31:43 PM EST.
Dependencies resolved.
========================================================================================================================================
 Package                                   Architecture             Version                       Repository                       Size
========================================================================================================================================
Upgrading:
 libblockdev-lvm                           x86_64                   2.25-11.el9                   @commandline                     38 k
 libblockdev-lvm-devel                     x86_64                   2.25-11.el9                   @commandline                     17 k
 libblockdev-utils                         x86_64                   2.25-11.el9                   @commandline                     30 k
 libblockdev-utils-devel                   x86_64                   2.25-11.el9                   @commandline                     18 k
Removing dependent packages:
 libblockdev-plugins-all                   x86_64                   2.25-10.el9                   @@commandline                     0  

Transaction Summary
========================================================================================================================================
Upgrade  4 Packages
Remove   1 Package

Total size: 102 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                1/1 
  Upgrading        : libblockdev-utils-2.25-11.el9.x86_64                                                                           1/9 
  Upgrading        : libblockdev-lvm-2.25-11.el9.x86_64                                                                             2/9 
  Upgrading        : libblockdev-utils-devel-2.25-11.el9.x86_64                                                                     3/9 
  Upgrading        : libblockdev-lvm-devel-2.25-11.el9.x86_64                                                                       4/9 
  Cleanup          : libblockdev-lvm-devel-2.25-10.el9.x86_64                                                                       5/9 
  Cleanup          : libblockdev-utils-devel-2.25-10.el9.x86_64                                                                     6/9 
  Erasing          : libblockdev-plugins-all-2.25-10.el9.x86_64                                                                     7/9 
  Cleanup          : libblockdev-lvm-2.25-10.el9.x86_64                                                                             8/9 
  Cleanup          : libblockdev-utils-2.25-10.el9.x86_64                                                                           9/9 
  Running scriptlet: libblockdev-utils-2.25-10.el9.x86_64                                                                           9/9 
  Verifying        : libblockdev-lvm-2.25-11.el9.x86_64                                                                             1/9 
  Verifying        : libblockdev-lvm-2.25-10.el9.x86_64                                                                             2/9 
  Verifying        : libblockdev-lvm-devel-2.25-11.el9.x86_64                                                                       3/9 
  Verifying        : libblockdev-lvm-devel-2.25-10.el9.x86_64                                                                       4/9 
  Verifying        : libblockdev-utils-devel-2.25-11.el9.x86_64                                                                     5/9 
  Verifying        : libblockdev-utils-devel-2.25-10.el9.x86_64                                                                     6/9 
  Verifying        : libblockdev-utils-2.25-11.el9.x86_64                                                                           7/9 
  Verifying        : libblockdev-utils-2.25-10.el9.x86_64                                                                           8/9 
  Verifying        : libblockdev-plugins-all-2.25-10.el9.x86_64                                                                     9/9 
Installed products updated.

Upgraded:
  libblockdev-lvm-2.25-11.el9.x86_64             libblockdev-lvm-devel-2.25-11.el9.x86_64     libblockdev-utils-2.25-11.el9.x86_64    
  libblockdev-utils-devel-2.25-11.el9.x86_64    
Removed:
  libblockdev-plugins-all-2.25-10.el9.x86_64                                                                                            

Complete!
[root@hp-dl380-gen9-6 ~]# 

3. upgrade libblockdev-lvm, libblockdev-lvm-devel  from  2.25-7.el9 to  2.25-11.el9, test fail.

Last metadata expiration check: 1:12:03 ago on Wed 12 Jan 2022 10:31:43 PM EST.
Dependencies resolved.
========================================================================================================================================
 Package                                   Architecture             Version                       Repository                       Size
========================================================================================================================================
Upgrading:
 libblockdev-lvm                           x86_64                   2.25-11.el9                   @commandline                     38 k
 libblockdev-lvm-devel                     x86_64                   2.25-11.el9                   @commandline                     17 k
 libblockdev-utils                         x86_64                   2.25-11.el9                   @commandline                     30 k
 libblockdev-utils-devel                   x86_64                   2.25-11.el9                   @commandline                     18 k
Removing dependent packages:
 libblockdev-plugins-all                   x86_64                   2.25-7.el9                    @@commandline                     0  

Transaction Summary
========================================================================================================================================
Upgrade  4 Packages
Remove   1 Package

Total size: 102 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/include/blockdev/lvm.h from install of libblockdev-lvm-devel-2.25-11.el9.x86_64 conflicts with file from package libblockdev-lvm-dbus-devel-2.25-7.el9.x86_64


Please have a look the test result, the libblockdev-lvm-devel-2.25-11.el9.x86_64 still conflicts with libblockdev-lvm-dbus-devel-2.25-7.el9.x86_64.

Comment 3 Vojtech Trefny 2022-01-20 12:21:35 UTC
> the libblockdev-lvm-devel-2.25-11.el9.x86_64 still conflicts with libblockdev-lvm-dbus-devel-2.25-7.el9.x86_64.

The fix won't be able to resolve the upgrade from 2.25-7, it will affect only future upgrades from 2.25-11. I did a quick test scratch re-build[1], the idea is when upgrading libblockdev-lvm-devel from 2.25-11 to 2.25-12, upgrade of libblockdev-lvm-dbus-devel will be also forced:

-----------------
# dnf update libblockdev-lvm-devel
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:01:57 ago on Thu Jan 20 13:15:35 2022.
Dependencies resolved.
==================================================================================================================================================================================================================
 Package                                               Architecture                      Version                                  Repository                                                                 Size
==================================================================================================================================================================================================================
Upgrading:
 libblockdev-lvm                                       x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             38 k
 libblockdev-lvm-dbus                                  x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             44 k
 libblockdev-lvm-dbus-devel                            x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             17 k
 libblockdev-lvm-devel                                 x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             17 k
 libblockdev-utils                                     x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             31 k
 libblockdev-utils-devel                               x86_64                            2.25-12.el9                              brew-task-repo-libblockdev-2.25-12.el9-scratch                             18 k

Transaction Summary
==================================================================================================================================================================================================================
Upgrade  6 Packages

Total download size: 163 k
Is this ok [y/N]: 
-----------------

I'm not sure if it makes sense to do a new build (no changes, just a release version bump) to fix this bug or if it can be marked as fixed because any future libblockdev build will "fix" it. What do you think?


[1] http://brew-task-repos.usersys.redhat.com/repos/scratch/vtrefny/libblockdev/2.25/12.el9/libblockdev-2.25-12.el9-scratch.repo

Comment 4 guazhang@redhat.com 2022-01-21 01:52:15 UTC
Thanks for the testing,  it makes sense.

Comment 8 errata-xmlrpc 2022-05-17 13:24:34 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: libblockdev), 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:2503


Note You need to log in before you can comment on or make changes to this bug.