Bug 1981625
| Summary: | virsh dump file format not correct when using "elf" or "kdump-zlib" format | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | zhentang <zhetang> |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
| Status: | CLOSED ERRATA | QA Contact: | zhentang <zhetang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.5 | CC: | hhan, jdenemar, jsuchane, lcheng, lmen, virt-maint, xuzhang, yafu, yidliu |
| Target Milestone: | rc | Keywords: | Automation, Regression, Triaged |
| Target Release: | 8.5 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-7.6.0-1.module+el8.5.0+12097+2c77910b | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-16 07:55:01 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: | 7.6.0 |
| Embargoed: | |||
|
Description
zhentang
2021-07-13 02:11:19 UTC
One tiny patch to fix it: https://listman.redhat.com/archives/libvir-list/2021-July/msg00279.html Fixed upstream:
commit 78b1a53df13e2acff872327da933be9fa2c0d069
Author: Han Han <hhan>
Date: Tue Jul 13 16:04:12 2021 +0800
virsh: Fix the order of format arguments in doDump
According to definition of virDomainCoreDumpFormat, the "elf" should be
the first argument in VIR_ENUM_*.
Fixes: 84cc4543be
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1981625
Signed-off-by: Han Han <hhan>
Reviewed-by: Peter Krempa <pkrempa>
Tested on v7.5.0-128-g8ad2882cb6 and it works as expected Verified libvirt-7.6.0-1.scrmod+el8.5.0+12133+c45b5bc2 -------------------------------------------------------------------- [root@zhetang-rhel8 x86_64]# virsh dump rhel9.0 --memory-only --format elf /tmp/elf-vm Domain 'rhel9.0' dumped to /tmp/elf-vm [root@zhetang-rhel8 x86_64]# file /tmp/elf-vm /tmp/elf-vm: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style [root@zhetang-rhel8 x86_64]# virsh dump rhel9.0 --memory-only --format kdump-zlib /tmp/kdump-vm Domain 'rhel9.0' dumped to /tmp/kdump-vm [root@zhetang-rhel8 x86_64]# file /tmp/kdump-vm /tmp/kdump-vm: data 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 (virt:av 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-2021:4684 |