Bug 1650420 - [RFE] implement support for qcow2 internal snapshots without libvirt metadata
Summary: [RFE] implement support for qcow2 internal snapshots without libvirt metadata
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Han Han
URL:
Whiteboard:
Depends On: 1650419
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-16 06:37 UTC by gaojianan
Modified: 2019-01-22 13:28 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1650419
Environment:
Last Closed: 2019-01-22 13:28:46 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description gaojianan 2018-11-16 06:37:35 UTC
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.html
https://www.redhat.com/archives/libvir-list/2018-November/msg00517.html

Comment 2 Peter Krempa 2018-11-16 09:15:39 UTC
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.

Comment 4 Peter Krempa 2019-01-22 13:28:46 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.