Bug 1983000
Summary: | PPC64: grub2-install doesn't execute properly, making the recovered system unbootable | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Renaud Métrich <rmetrich> |
Component: | rear | Assignee: | Pavel Cahyna <pcahyna> |
Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 7.9 | CC: | djez, fkrska, jreznik, lzaoral, ovasik, pcahyna |
Target Milestone: | rc | Keywords: | Triaged, ZStream |
Target Release: | --- | Flags: | pm-rhel:
mirror+
|
Hardware: | ppc64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rear-2.4-14.el7_9 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-01-11 17:36:05 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
Renaud Métrich
2021-07-16 08:52:23 UTC
Thank you for the suggested fix. I suppose that in this case the system could be affected also by bz1983008, as "ofpathname" is included in the same package that may be missing (powerpc-utils) and is added to PROGS, not to REQUIRED_PROGS? Is there a way to determine whether "ofpathname" will be needed in order to add it to REQUIRED_PROGS conditionally? (Maybe, do it always except on PowerNV?) I suppose the code in ReaR 2.6 was introduced in commit 61f36e6e5326888111b97450cf21f0b859e669c5 (PR 1848). Also, how to reproduce the problem? I suppose that if any ppc machine had the problem, it would have been discovered a long time ago. Is multipath the key element that makes the setup special and vulnerable to the problem? The "ofpathname" + "bootlist" binaries need to be added to REQUIRED_PROGS in all non-PowerNV cases. To reproduce, you need multipath indeed, I had a reproducer on a QEMU/KVM with a multipath disk but it's gone now. (In reply to Renaud Métrich from comment #5) > The "ofpathname" + "bootlist" binaries need to be added to REQUIRED_PROGS in > all non-PowerNV cases. According to the code, KVM-emulated virtual machines do not need "bootlist"? So maybe the condition should be non-PowerNV, non KVM cases? But perhaps it does not do any harm to include it even in the KVM case and it will make the conditions a bit simpler? I would say the simpler the better indeed. (In reply to Renaud Métrich from comment #7) > I would say the simpler the better indeed. Well, in the meantime I submitted PR 2665, which goes the more complicated way of requiring ofpathname except on PowerNV and bootlist on PowerVM. I tried to reproduce the bug on RHEL 8 (bz1983003) and despite the error messages the system has booted fine. How does exactly the problem manifest? You say "unbootable system", but does it mean that it does not enter GRUB, or that GRUB is not able to load the kernel, or that there is some error message from GRUB? The problem might be RHEL 7-specific, I don't have a compatible RHEL 7 system (yet). > The problem might be RHEL 7-specific, I don't have a compatible RHEL 7 system (yet).
I realized that one can use RHEL-ALT-7.6 as a replacement because we have LPARs compatible with that. Still, I was not able to reproduce the problem. Despite the error messages from ofpathname called from grub-install in the recovery log the system has booted fine. Are you sure that ofpathname error was the real cause behind the unbootable system that you encountered?
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 (rear bug fix and enhancement update), 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-2022:0069 |