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 1766709 - RHEL 7.7: leapp doesn't update grub config with upgrade initramfs boot entries
Summary: RHEL 7.7: leapp doesn't update grub config with upgrade initramfs boot entries
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp
Version: 7.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Leapp team
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks: 1727807
TreeView+ depends on / blocked
 
Reported: 2019-10-29 17:36 UTC by Luca Miccini
Modified: 2020-05-26 08:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 08:55:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Luca Miccini 2019-10-29 17:36:35 UTC
Description of problem:

hit this twice in a row, I see in the log file:

2019-10-29 15:18:54.936 INFO     PID: 472011 leapp.workflow.InterimPreparation: Executing actor add_upgrade_boot_entry 
2019-10-29 15:18:55.45  DEBUG    PID: 515216 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: External command is started: [/usr/sbin/grubby --add-kernel /boot/vmlinuz-upgrade.x86_64 --initrd /boot/initramfs-upgrade.x86_64.img --title RHEL Upgrade Initramfs --copy-default --make-default --args debug enforcing=0 rd.plymouth=0 plymouth.enable=0]
2019-10-29 15:18:56.855 DEBUG    PID: 515216 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: External command is finished: [/usr/sbin/grubby --add-kernel /boot/vmlinuz-upgrade.x86_64 --initrd /boot/initramfs-upgrade.x86_64.img --title RHEL Upgrade Initramfs --copy-default --make-default --args debug enforcing=0 rd.plymouth=0 plymouth.enable=0]
2019-10-29 15:18:57.22  INFO     PID: 472011 leapp.workflow.InterimPreparation: Starting stage After of phase InterimPreparation

but the actual grub config is not updated, thus the system boots into the "old" rhel 7.x kernel (similarly to https://bugzilla.redhat.com/show_bug.cgi?id=1755841) and never completes the upgrade.

Comment 3 Michal Bocek 2019-10-29 19:18:16 UTC
Luca, I can see that you're trying to upgrade RHEL 7.7 which is not and will not be supported for upgrades: https://access.redhat.com/articles/4263361. Could you please test it with RHEL 7.6 EUS?
If you try to make the upgrade from RHEL 7.7 working (I suppose it's because of the OSP requirements, with related BZ https://bugzilla.redhat.com/show_bug.cgi?id=1766578), then I must thank you in the first place for the proactive approach but at the same time I need to say that we haven't even tried to make the upgrades work on 7.7 and that there is potentially many issues lying ahead.
We've now been full steam on delivering RHEL 7.6 EUS to 8.1 and the next milestone is 7.6 EUS to 8.2. I'm not saying we won't try to fix the issues appearing during the upgrade of 7.7 to 8.x, like you reported, because we'll need to address them for the upgrades of 7.last to 8.x anywat. I just can't promise any timeframe for such fixes now.

Comment 4 Petr Stodulka 2019-10-29 19:26:04 UTC
Btw, it even looks like issue of grubby, as what we are doing there, is what we should do. Grubby is supposed to update the configuration. It's even possible, the issue is connected to OSP on the system and there are some additional steps we need to do because of that. Who knows..

Comment 5 Luca Miccini 2019-10-30 06:53:50 UTC
(In reply to Michal Bocek from comment #3)
> Luca, I can see that you're trying to upgrade RHEL 7.7 which is not and will
> not be supported for upgrades: https://access.redhat.com/articles/4263361.
> Could you please test it with RHEL 7.6 EUS?
> If you try to make the upgrade from RHEL 7.7 working (I suppose it's because
> of the OSP requirements, with related BZ
> https://bugzilla.redhat.com/show_bug.cgi?id=1766578), then I must thank you
> in the first place for the proactive approach but at the same time I need to
> say that we haven't even tried to make the upgrades work on 7.7 and that
> there is potentially many issues lying ahead.
> We've now been full steam on delivering RHEL 7.6 EUS to 8.1 and the next
> milestone is 7.6 EUS to 8.2. I'm not saying we won't try to fix the issues
> appearing during the upgrade of 7.7 to 8.x, like you reported, because we'll
> need to address them for the upgrades of 7.last to 8.x anywat. I just can't
> promise any timeframe for such fixes now.

Thanks Michal! Unfortunately EUS is not really an option for OSP, I'll try and see if I can figure out what is going on with grubby as suggested by Petr, maybe I can save you a couple of cycles down the road.

Comment 6 Michal Bocek 2020-05-21 13:49:12 UTC
Luca, we have recently released new version of Leapp that allows upgrades from RHEL 7.8 to RHEL 8.2: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/upgrading_to_rhel_8/index
We've fixed couple of issues with grub so please try to upgrade your scenario on RHEL 7.8 and let us know if there are still any grub-related issues. Thanks.

Comment 7 Luca Miccini 2020-05-26 07:16:25 UTC
(In reply to Michal Bocek from comment #6)
> Luca, we have recently released new version of Leapp that allows upgrades
> from RHEL 7.8 to RHEL 8.2:
> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/
> html-single/upgrading_to_rhel_8/index
> We've fixed couple of issues with grub so please try to upgrade your
> scenario on RHEL 7.8 and let us know if there are still any grub-related
> issues. Thanks.

Hey Michal, I just ran three or four upgrades in a row starting from 7.7 and 7.8 and didn't hit any grub issues :)
Thanks a lot!
Luca

Comment 8 Michal Bocek 2020-05-26 08:55:30 UTC
That's awesome. Thanks.


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