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.
Version:
libvirt-4.5.0-10.el7
+++ This bug was initially created as a clone of Bug #1650419 +++
Description of problem:
“virsh snapshot-list“ with option --no-metadata can't show snapshots without metadata
Version-Release number of selected component (if applicable):
Linux test2 4.18.0-31.el8.x86_64 #1 SMP
libvirt-4.5.0-14.module+el8+2210+474b8474.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Prepare a guest and take snapshots with option --no-metadata
# virsh snapshot-create-as rhel s1 --no-metadata
Domain snapshot s1 created
2.List the snapshot with option --no-metadata
# virsh snapshot-list rhel --no-metadata
Name Creation Time State
------------------------------------------------------------
Actual results:
There is no snapshot shown with snapshot-list --no-metadata.
Expected results:
Show the snapshots which is established in step 1.
Additional info:
There are some discussions about this question:
https://www.redhat.com/archives/libvir-list/2018-November/msg00045.htmlhttps://www.redhat.com/archives/libvir-list/2018-November/msg00517.html
This means implementing internal snapshot loading from qcow. Given that qemu's stance is that external snapshots are the way to go I don't expect much attention here, but it's a legitimately missing feature.
The problems which would arise from attempting libvirt to deal with snapshots with no libvirt metadata (e.g. missing snapshot of the XML state) far outweigh the benefits of implementing this, thus I'll close this BZ for now.