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 1089229 - strict dependency between lvm2 and device-mapper
Summary: strict dependency between lvm2 and device-mapper
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.5
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-18 10:02 UTC by Cedric Buissart
Modified: 2014-10-14 08:25 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.02.107-1.el6
Doc Type: Bug Fix
Doc Text:
LVM2 and all its subpackages now define strict version dependencies among them so after updating any of these LVM2 subpackages we end up with consistent update of the main LVM2 package too. As there's only one debuginfo package for LVM2 and all its subpackages, this also fixes a problem where we may have ended up with unusable debuginfo if one of the subpackages were updated to a newer version.
Clone Of:
Environment:
Last Closed: 2014-10-14 08:25:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1387 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2014-10-14 01:39:47 UTC

Description Cedric Buissart 2014-04-18 10:02:23 UTC
Description of problem:

Since RHEL6, device-mapper packages are merged inside lvm2. However, the dependencies are not strict, and you can end up updating device-mapper without updating lvm2, leading to version mismatch.


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


How reproducible:100%


Steps to Reproduce:
1. yum update device-mapper

Actual results:
lvm2 is not updated to matching version.


Expected results:
my understanding is that both lvm2 and device-mapper should remain to a strict matching version


Additional info:
- That for example becomes an issue when you try to open a coredump that is made for mixed lvm2/device-mapper versions.

- current spec file is requires lvm2 to have "at least" the device-mapper matching version, leading to the ability to update device-mapper without updating its lvm2 counterpart.

Comment 3 Alasdair Kergon 2014-04-18 23:21:47 UTC
To be clear, until RHEL6 we built the packages separately and sometimes did update one without the other.  We should not be breaking compatibility intentionally without updating dependencies accordingly: it should be OK to run different versions of the packages alongside each other provided the spec file dependencies are satisfied.

However, now that we do always build them together, we have decided we don't lose much if we make the spec file stricter than necessary and require exact version matching.

If you're having problems with debuginfo when mixing subpackages taken from different (but compatible) main packages then that would be a separate problem for debuginfo packagers to address.

Comment 6 Nenad Peric 2014-07-14 12:18:29 UTC
--> Running transaction check
---> Package lvm2.x86_64 0:2.02.107-1.el6 will be updated
---> Package lvm2.x86_64 0:2.02.107-2.el6 will be an update
---> Package lvm2-cluster.x86_64 0:2.02.107-1.el6 will be updated
---> Package lvm2-cluster.x86_64 0:2.02.107-2.el6 will be an update
---> Package lvm2-libs.x86_64 0:2.02.107-1.el6 will be updated
---> Package lvm2-libs.x86_64 0:2.02.107-2.el6 will be an update
--> Processing Dependency: device-mapper-event = 1.02.86-2.el6 for package: lvm2-libs-2.02.107-2.el6.x86_64
--> Finished Dependency Resolution
Error: Package: lvm2-libs-2.02.107-2.el6.x86_64 (/lvm2-libs-2.02.107-2.el6.x86_64)
           Requires: device-mapper-event = 1.02.86-2.el6

The similar message gets printed out when the packages are added one by one, asking for further device-mapper dependencies following the stricter dependency rules as suggested.

Finally this passed:

yum update lvm2-2.02.107-2.el6.x86_64.rpm lvm2-libs-2.02.107-2.el6.x86_64.rpm lvm2-cluster-2.02.107-2.el6.x86_64.rpm device-mapper-event-1.02.86-2.el6.x86_64.rpm device-mapper-1.02.86-2.el6.x86_64.rpm device-mapper-libs-1.02.86-2.el6.x86_64.rpm device-mapper-event-libs-1.02.86-2.el6.x86_64.rpm cmirror-2.02.107-2.el6.x86_64.rpm 

all of the dependencies were met. 

Marking this one as VERIFIED with:

lvm2-2.02.107-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
lvm2-libs-2.02.107-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
lvm2-cluster-2.02.107-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
udev-147-2.55.el6    BUILT: Wed Jun 18 13:30:21 CEST 2014
device-mapper-1.02.86-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
device-mapper-libs-1.02.86-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
device-mapper-event-1.02.86-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
device-mapper-event-libs-1.02.86-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014
device-mapper-persistent-data-0.3.2-1.el6    BUILT: Fri Apr  4 15:43:06 CEST 2014
cmirror-2.02.107-2.el6    BUILT: Fri Jul 11 15:47:33 CEST 2014

Comment 7 errata-xmlrpc 2014-10-14 08:25:10 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1387.html


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