Bug 2111567
| Summary: | EDK2 build stuck with qemu-kvm-7.0.0-8.el9 or newer | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Miroslav Rezanina <mrezanin> |
| Component: | edk2 | Assignee: | Miroslav Rezanina <mrezanin> |
| Status: | CLOSED ERRATA | QA Contact: | Xueqiang Wei <xuwei> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.1 | CC: | berrange, coli, jinzhao, juzhang, kraxel, pbonzini, virt-maint, yfu |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | edk2-20220526git16779ede2d36-3.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 09:56:33 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
Miroslav Rezanina
2022-07-27 13:43:29 UTC
> This behavior is probably related to changes related to deprecated cpu handling
It shouldn't do - those changes didn't have any functional effect on usage of QEMU beyond printing a message on stderr if a deprecated CPU is used.
(In reply to Daniel Berrangé from comment #1) > > This behavior is probably related to changes related to deprecated cpu handling > > It shouldn't do - those changes didn't have any functional effect on usage > of QEMU beyond printing a message on stderr if a deprecated CPU is used. Having said that 'ovmf-vars-generator' appears to be parsing stdout/stderr, so may in fact be impacted. I'd suggest modifying the script to pass '-cpu max' to see if that helps. 'ovmf-vars-generator' runs qemu as a 'subprocess' and uses 'subprocess.stdout.readline()' to look at the output.
If the subprocess quits unexpectedly, it can happen that 'readline()' blocks forever.
Often, this is handled like this:
while proc.poll() is None:
data = proc.stdout.readline()
...
I would be good if 'ovmf-vars-generator' would detect if qemu stopps early and also report
this via its return code.
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass. Failed to build edk2-ovmf-20220526git16779ede2d36-2.el9 # rpmbuild -bb edk2.spec ...... ...... +SqIs/vdWGA40O3SFdzET14m2k=' --skip-testing Build/Ovmf3264/DEBUG_GCC5/FV/OVMF_VARS.secboot.fd DEBUG:root:Temp output: /tmp/qosb.03nh_3vy.vars INFO:root:Starting enrollment INFO:root:Performing enrollment Never finishes. Build edk2-ovmf-20220526git16779ede2d36-3.el9 successfully. # rpmbuild -bb edk2.spec ...... ...... Wrote: /root/rpmbuild/RPMS/noarch/edk2-tools-doc-20220526git16779ede2d36-3.el9.noarch.rpm Wrote: /root/rpmbuild/RPMS/x86_64/edk2-tools-20220526git16779ede2d36-3.el9.x86_64.rpm Wrote: /root/rpmbuild/RPMS/noarch/edk2-ovmf-20220526git16779ede2d36-3.el9.noarch.rpm Wrote: /root/rpmbuild/RPMS/x86_64/edk2-tools-debuginfo-20220526git16779ede2d36-3.el9.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/edk2-debugsource-20220526git16779ede2d36-3.el9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.PvXUaE + umask 022 + cd /root/rpmbuild/BUILD + cd edk2-16779ede2d36 + /usr/bin/rm -rf /root/rpmbuild/BUILDROOT/edk2-20220526git16779ede2d36-3.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 According to Comment 15 and Comment 16, set status to VERIFIED. Thanks. 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 (edk2 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/RHEA-2022:7971 |