Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1673674

Summary: redhat-upgrade-tool does not install grub2
Product: Red Hat Enterprise Linux 6 Reporter: jcastran
Component: preupgrade-assistant-el6toel7Assignee: Petr Stodulka <pstodulk>
Status: CLOSED ERRATA QA Contact: Alois Mahdal <amahdal>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.10CC: jcastran, jzeleny, mbocek
Target Milestone: rcKeywords: Extras, Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: preupgrade-assistant-el6toel7-0.7.9-1.el6 Doc Type: Bug Fix
Doc Text:
Previously, the Red Hat Upgrade Tool was unable to install GRUB 2 when GRUB Legacy was installed. This update fixes the bug, and the grub2 packages are successfully installed during an in-place upgrade. Note that the bootloader still needs to be replaced manually after the upgrade. For more information, see the System Administrator's Guide at https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/system_administrators_guide/#sec-Upgrading_from_GRUB_Legacy_to_GRUB_2.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-26 10:30:49 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:

Description jcastran 2019-02-07 18:27:26 UTC
Description of problem:
redhat-upgrade-tool does not install grub2

This seems to be a regression of bugzilla 1497731 that was solved with:

   https://access.redhat.com/errata/RHBA-2017:3212

Version-Release number of selected component (if applicable):
RHEL 6.10
preupgrade-assistant-el6toel7-data-0.20181005-1.el6.noarch
preupgrade-assistant-2.6.1-1.el6.noarch
preupgrade-assistant-el6toel7-0.7.7-1.el6.noarch
preupgrade-assistant-ui-2.6.1-1.el6.noarch
redhat-upgrade-tool-0.8.0-4.el6.noarch

How reproducible:
Everytime so far

Steps to Reproduce:
    How do I upgrade from Red Hat Enterprise Linux 6 to Red Hat Enterprise Linux 7? - Red Hat Customer Portal
    https://access.redhat.com/solutions/637583


Actual results:
grub2 is not installed at all


Expected results:
grub2 is installed

Additional info:

Comment 2 Petr Stodulka 2019-02-11 16:49:26 UTC
Hi guys. I am not able to reproduce described issue with current RHEL 6.10 and packages you mentioned. Please provide me reproducer (ideally machine) where I can see it. From the source code, there are only two ways (that I see) how the issue would occur
- there is not installed the grub rpm signed by RH on RHEL 6 system (notabug)
- the rpm is not available during installation (means, e.g. network failure? or dependency issue because of other installed RPMs - not in the mentioned group of supported rpms) - in such case, this is about completely different problem and possibly notabug as well


Or send me please /var/log/upgrade.log from the upgraded machine. The script that is supposed to install grub2 is (after run of preupg) stored here:
 /root/preupgrade/postupgrade.d/grub/postupgrade-grub.sh

Comment 10 Alois Mahdal 2019-02-21 19:43:50 UTC
OK, verified semi-manually:  No matter if --no-cleanup-post (or whatever is the name) is used, in both cases grub is correctly replaced by grub2.

Comment 13 errata-xmlrpc 2019-02-26 10:30:49 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.

https://access.redhat.com/errata/RHBA-2019:0411