Bug 1246476

Summary: [ISO] RHSS-3.0.4 to RHGS-3.1 ISO Tree Update fails due to dependency resolution errors
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: distributionAssignee: Sreenath G <sgirijan>
Status: CLOSED CANTFIX QA Contact: Prasanth <pprakash>
Severity: urgent Docs Contact:
Priority: high    
Version: rhgs-3.1CC: amainkar, annair, asrivast, nlevinki, nsathyan, pprakash, rcyriac, rhs-bugs, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
If dracut packages are previously installed, system administrators need to exclude the dracut packages while updating to 3.1 during offline ISO update: # yum update -x dracut -x dracut-kernel
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-28 04:47:53 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:
Bug Depends On:    
Bug Blocks: 1202842, 1216951    

Description Prasanth 2015-07-24 12:14:57 UTC
Description of problem:

RHSS-3.0.4 to RHGS-3.1 ISO Upgrade fails due to dependency resolution errors.

Version-Release number of selected component (if applicable): 
RHSS-3.0u4-20150318.0-RHS-x86_64-DVD1.iso
RHGSS-3.1-RHEL-6-20150722.2-RHS-x86_64-DVD1.iso


How reproducible: 100%


Steps to Reproduce:
1. Install the RHSS-3.0.4 ISO - RHSS-3.0u4-20150318.0-RHS-x86_64-DVD1.iso
2. While installing the ISO, choose the 'Customize Now' option and select ALL the available 'Optional Packages'
3. Complete the installation and add the ISO tree of the latest RHGS-3.1 RC ISO - RHGSS-3.1-RHEL-6-20150722.2-RHS-x86_64-DVD1.iso
4. Now do, #yum update to update to 3.1

Actual results: yum update is broken with the following error:

######
--> Running transaction check
---> Package dracut.noarch 0:004-356.el6_6.1 will be updated
--> Processing Dependency: dracut = 004-356.el6_6.1 for package: dracut-network-004-356.el6_6.1.noarch
--> Processing Dependency: dracut = 004-356.el6_6.1 for package: dracut-fips-004-356.el6_6.1.noarch
---> Package keyutils-libs.i686 0:1.4-5.el6 will be installed
---> Package libselinux.i686 0:2.0.94-5.8.el6 will be installed
--> Finished Dependency Resolution
Error: Package: dracut-fips-004-356.el6_6.1.noarch (@anaconda-InstallationRepo-201503181435.x86_64/3.0u4)
           Requires: dracut = 004-356.el6_6.1
           Removing: dracut-004-356.el6_6.1.noarch (@anaconda-InstallationRepo-201503181435.x86_64/3.0u4)
               dracut = 004-356.el6_6.1
           Updated By: dracut-004-388.el6.noarch (rhsqe-repo.lab.eng.blr.redhat.com_iso_rhgs3.1_Release-Candidate-ISO_RHGSS-3.1-RHEL-6-20150722.2-RHS-x86_64-DVD1_)
               dracut = 004-388.el6
Error: Package: dracut-network-004-356.el6_6.1.noarch (@anaconda-InstallationRepo-201503181435.x86_64/3.0u4)
           Requires: dracut = 004-356.el6_6.1
           Removing: dracut-004-356.el6_6.1.noarch (@anaconda-InstallationRepo-201503181435.x86_64/3.0u4)
               dracut = 004-356.el6_6.1
           Updated By: dracut-004-388.el6.noarch (rhsqe-repo.lab.eng.blr.redhat.com_iso_rhgs3.1_Release-Candidate-ISO_RHGSS-3.1-RHEL-6-20150722.2-RHS-x86_64-DVD1_)
               dracut = 004-388.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
######


Expected results: yum update should be successful as ISO tree update is the most preferred way for an Offline upgrade


Additional info: More details will be added after my debugging

Comment 1 Prasanth 2015-07-24 12:21:13 UTC
On further debugging, found that the following packages which are available in the 3.0.4 ISO are missing in the 3.1 ISO:

######
dracut-fips-004-356.el6_6.1.noarch
dracut-network-004-356.el6_6.1.noarch
######

Comment 2 Prasanth 2015-07-24 12:39:04 UTC
Additional Info 2:

dracut-fips and dracut-network are actually part of Optional Packages in 3.0.4 and if any users had selected these packages during their installation, they will not be able to do an Offline ISO Update to RHGS-3.1.

The only work-around is to exclude all these 4 packages while doing an update:

######
dracut-004-356.el6_6.1.noarch
dracut-kernel-004-356.el6_6.1.noarch
dracut-fips-004-356.el6_6.1.noarch
dracut-network-004-356.el6_6.1.noarch
######

Comment 3 Prasanth 2015-07-27 11:28:02 UTC
Excluding the dracut packages while updating to 3.1 is the only way which works. I've used the following command to perform the offline ISO update to 3.1 and that worked:

# yum update -x dracut -x dracut-kernel