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 1683682

Summary: grub2-tools scriptlet taking a lot of time to complete
Product: Red Hat Enterprise Linux 8 Reporter: Michal Reznik <mreznik>
Component: grub2Assignee: Bootloader engineering team <bootloader-eng-team>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: ddelcian, fmartine
Target Milestone: rc   
Target Release: 8.0   
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-10-29 16:25:44 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:
Attachments:
Description Flags
pstree
none
vgs strace
none
vgs_cmd_output none

Description Michal Reznik 2019-02-27 14:52:47 UTC
Created attachment 1539178 [details]
pstree

Description of problem:

While performing upgrade from RHEL7 to RHEL8 "grub2-tools" scriptlet is taking always about 20 minutes to complete.

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

grub2-tools-1:2.02-65.el8.x86_64

How reproducible:

Upgrade RHEL 7 to RHEL 8.


Steps to Reproduce:
1. leapp upgrade
2. reboot
3. watch upgrade process in console  

Actual results:

"grub2-tools" scriptlet is taking always about 20 minutes to complete.

Expected results:

"grub2-tools" scriptlet finishes in reasonable amount of time

Additional info:

Attached pstree. Last 3 processes are looping. It looks like the vgs command itself is having issue however that should not cause the process to take 20 mins. "vgs" strace attached too.

Comment 1 Michal Reznik 2019-02-27 14:53:33 UTC
Created attachment 1539179 [details]
vgs strace

Comment 2 Michal Reznik 2019-02-27 15:10:34 UTC
Created attachment 1539181 [details]
vgs_cmd_output

Comment 4 Michal Reznik 2019-03-12 07:20:42 UTC
After we made udev db accessible the issue is gone. It should however not take for grub2-tools 20 minutes to upgrade on machine with one storage device.

Comment 5 Daniel Del Ciancio 2019-10-24 16:56:17 UTC
My customer is hitting the same issue (grub2-tools bug) even though they have the above leapp-repository version (leapp-repository-0.8.1-2.el7_6.noarch) installed.  

We've attempted to try to add the following options to break the rd boot process but the upgrade process still hangs and doesn't break out:

 rd.upgrade.debug rd.upgrade.break=leapp-upgrade


Reference case:  https://access.redhat.com/support/cases/02485812 


We have run out of ideas at this point.  Is there anything else we can try?

Comment 6 Javier Martinez Canillas 2019-10-28 07:29:02 UTC
(In reply to Michal Reznik from comment #4)
> After we made udev db accessible the issue is gone. It should however not
> take for grub2-tools 20 minutes to upgrade on machine with one storage
> device.

This looks like a duplicate of Bug #1712456.

Comment 7 Michal Reznik 2019-10-29 16:25:44 UTC
Ack, root cause is the same. Closing...

*** This bug has been marked as a duplicate of bug 1712456 ***