Bug 1484042

Summary: grub2 obsoleting itself
Product: Red Hat Enterprise Linux 7 Reporter: Peter Larsen <plarsen>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: adm.fkt.physik, cdonnell, cww, Frodox, ian, jansen, joe, mganisin, pasteur, rcyriac, toracat, wgianopoulos, xrobau
Target Milestone: rc   
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: 2019-06-11 20:15:48 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: 1392968    

Description Peter Larsen 2017-08-22 14:04:47 UTC
Description of problem:
Grub2 seems to be obsoleting itself. 

# rpm -q --obsoletes -p grub2-2.02-0.64.el7.x86_64.rpm 
grub2 <= 1:2.02-0.64.el7

The = seems to be wrong here. 

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

7.4

How reproducible:
Every time.

Steps to Reproduce:
Not sure how the state ended up like this, but I am unable to (re)install grub because of this:

# yum reinstall grub2
Loaded plugins: langpacks, search-disabled-repos,
              : subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package grub2.x86_64 1:2.02-0.64.el7 will be reinstalled
---> Package grub2.x86_64 1:2.02-0.64.el7 will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package     Arch         Version                Repository                Size
================================================================================
Installing:
 grub2       x86_64       1:2.02-0.64.el7        rhel-7-server-rpms        28 k
     replacing  grub2.x86_64 1:2.02-0.64.el7

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

Total download size: 28 k
Is this ok [y/d/N]: y
Downloading packages:
grub2-2.02-0.64.el7.x86_64.rpm                             |  28 kB   00:00     
Running transaction check
ERROR with transaction check vs depsolve:
grub2 <= 1:2.02-0.64.el7 is obsoleted by grub2-1:2.02-0.64.el7.x86_64
grub2 <= 1:2.02-0.64.el7 is obsoleted by (installed) grub2-1:2.02-0.64.el7.x86_64
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2017-08-22.10-01.yD8PX4.yumtx


Actual results:
Failure in install (see above).

Expected results:
Grub easily reinstalled

Additional info:

Comment 2 Bill Gianopoulos 2017-08-29 21:14:56 UTC
The package is obsolete and should just be removed, however please be aware of bug 1305889 and bug 1486454.

Comment 3 xrobau 2017-10-26 23:00:40 UTC
This appears to be resolved with an unannounced update to release 0.65. 

===============================================================================================================================================================
 Package                                    Arch                      Version                                              Repository                     Size
===============================================================================================================================================================
Installing:
 grub2                                      x86_64                    1:2.02-0.65.el7.centos.2                             updates                        29 k
     replacing  grub2.x86_64 1:2.02-0.64.el7.centos
 grub2-tools                                x86_64                    1:2.02-0.65.el7.centos.2                             updates                       1.8 M
     replacing  grub2-tools.x86_64 1:2.02-0.64.el7.centos
     replacing  grub2-tools-efi.x86_64 1:2.02-0.64.el7.centos
 grub2-tools-extra                          x86_64                    1:2.02-0.65.el7.centos.2                             updates                       993 k
     replacing  grub2-tools.x86_64 1:2.02-0.64.el7.centos
 grub2-tools-minimal                        x86_64                    1:2.02-0.65.el7.centos.2                             updates                       170 k
     replacing  grub2-tools.x86_64 1:2.02-0.64.el7.centos
 kernel                                     x86_64                    3.10.0-693.5.2.el7                                   updates                        43 M
 kernel-devel                               x86_64                    3.10.0-693.5.2.el7                                   updates                        14 M

A 'yum check' no longer errors.

Comment 4 Chris Williams 2019-06-11 21:09:52 UTC
*** Bug 1457870 has been marked as a duplicate of this bug. ***