Bug 1662849
| Summary: | virsh snapshot-list --parent fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | gaojianan <jgao> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED ERRATA | QA Contact: | gaojianan <jgao> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | hhan, jdenemar, jgao, jtomko, mtessun, rbalakri, xuzhang |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 8.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-5.0.0-3.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-29 16:04:59 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
gaojianan
2019-01-02 08:22:14 UTC
Pushed upstream as:
commit d3e5c3605a66c04e809591fb4920f5d72e72a736
Author: Ján Tomko <jtomko>
CommitDate: 2019-02-14 16:37:24 +0100
virsh: fix snapshot list --parent
The root snapshot does not have a parent.
Use NULLSTR_EMPTY to pass an empty string instead of putting
too few columns in the table.
https://bugzilla.redhat.com/show_bug.cgi?id=1662849
Signed-off-by: Ján Tomko <jtomko>
Reviewed-by: Eric Blake <eblake>
git describe: v5.0.0-397-gd3e5c3605a
Verified on: qemu-kvm-3.1.0-15.module+el8+2792+e33e01a0.x86_64 libvirt-5.0.0-2.module+el8+2779+3106feb7.x86_64 1.Create three external disk snapshot # for i in s1 s2 s3;do virsh snapshot-create-as q35demo $i --disk-only;done Domain snapshot s1 created Domain snapshot s2 created Domain snapshot s3 created 2.Get name of parent snapshot # virsh snapshot-list q35demo --parent Name Creation Time State Parent ------------------------------------------------------------ s1 2019-02-25 10:45:53 +0800 disk-snapshot s2 2019-02-25 10:45:54 +0800 disk-snapshot s1 s3 2019-02-25 10:45:54 +0800 disk-snapshot s2 Works as expected. 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, 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-2019:1293 |