Bug 141849

Summary: GFS-modules dependency problem when used with up2date
Product: [Retired] Red Hat Cluster Suite Reporter: Jos Vos <jos>
Component: gfsAssignee: Chris Feist <cfeist>
Status: CLOSED CURRENTRELEASE QA Contact: GFS Bugs <gfs-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 3CC: jbrassow
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-31 21:29:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jos Vos 2004-12-04 00:43:04 UTC
Description of problem:

-  GFS-modules now provides kernel-modules (why?).

-  Up2date standard has "kernel-modules" in the list of
   "pkgsToInstallNotUpdate".

-  So up2date tries to keep the old GFS-modules-6.0.0-15.

-  But GFS-modules-6.0.0-15 requires GFS-6.0.0-15, that conflicts
   with the new GFS-6.0.2-12.

-  So up2date reports a dependency problems and does not update.

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

How reproducible:
Use up2date with the standard configuration and try to update GFS and
GFS-modules.

Solution: GFS-modules should not provide kernel-modules, as this was
in earlier days used for the main kernel package with modules. 
Another solution could be to let the GFS-modules not require exact the
same version of GFS, although this is maybe not recommendable.

Comment 2 Chris Feist 2004-12-06 17:19:05 UTC
We have to have the GFS-modules package provide kernel modules
otherwise an up2date could update the GFS-modules, but not the kernel
which could potentially cause problems.

I'm currently trying to find out the best way to handle updating GFS rpms.


Comment 3 Jos Vos 2004-12-06 17:46:34 UTC
GFS-modules already *does* have a Requires: kernel = ..., so providing
kernel-modules does not help anything with *that*.

The problem is: GFS can only be upgraded (no multiple installs
possible), for GFS-modules you ideally want to be able to have
multiple versions installed (like the kernel), but GFS-modules
requires the exact same version of GFS.  Result: a serious dependency
problem :-(.

One of the solutions can be to have GFS-modules requires GFS >=
%{version} or so, if that's technically ok, so they are not completely
bound to each other.

Comment 4 Chris Feist 2004-12-06 21:18:39 UTC
You're correct about the dependency problem.  I've fixed the Requires
for GFS-modules so they require a GFS rpm >= the GFS-modules rpm. 
This should fix the dependency problems you were having.

This fix is included in GFS-6.0.2-19

Comment 5 Jos Vos 2004-12-06 21:42:59 UTC
I didn't test it, but I think it doesn't: the old GFS-modules still
requires the exact same version of GFS, and the new GFS-modules wants
the newer version of GFS, so these two GFS-modules can't be installed
together.

I think the only solution now is to remove kernel-modules *and*
include the >= test for the first time, so that the next version of
GFS will work ok with kernel-modules added.

Comment 6 Chris Feist 2004-12-06 23:17:18 UTC
If you upgrade to the two latest packages (GFS & GFS-modules) you will
be able to have multiple versions of the future GFS-modules installed.
 And you will not have a problem if up2date upgrades your GFS package.

Unfortunately there is no way to change the behavior of the old
package, but you should be able to do a rpm -Uvh of the new packages.
 (or bring them both down with up2date).

Comment 7 Jos Vos 2004-12-06 23:29:40 UTC
The problem is that the "Provides: kernel-modules" and the default
setting of up2date (pkgsInstallNotUpdate) make it not possible to
upgrade to the GFS and GFS-modules combination via up2date (a rpm -Uvh
is possible).  But that's already a problem with the currently
released version (or didn't you release that yet - I only got the
src.rpm).

As said, the best way is to first release a package with >= ... and
without kernel-modules, and add kernel-modules again in the version
after that.

Comment 8 Chris Feist 2005-05-31 21:29:52 UTC
The latest release version should fix this problem.

GFS-modules requires a version of GFS >= to the version of GFS-modules.