Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 956506 - virsh snapshot-delete --children-only bypasses safety check for deleting disk-only children
virsh snapshot-delete --children-only bypasses safety check for deleting disk...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt (Show other bugs)
7.0
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Eric Blake
Virtualization Bugs
:
Depends On: 903052
Blocks: 1113520 1134674
  Show dependency treegraph
 
Reported: 2013-04-25 02:12 EDT by tingting zheng
Modified: 2016-04-26 09:52 EDT (History)
8 users (show)

See Also:
Fixed In Version: libvirt-1.2.8-6.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 903052
: 1134674 (view as bug list)
Environment:
Last Closed: 2015-03-05 02:20:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0323 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2015-03-05 07:10:54 EST

  None (edit)
Comment 2 Eric Blake 2013-06-05 22:58:31 EDT
Still needs fixing upstream, but should be relatively easy to reproduce and thus locate the bug.
Comment 4 Eric Blake 2013-07-10 16:59:37 EDT
Right now, libvirt documents that it refuses to delete external snapshots only because it is not implemented safely; this bug represents a hole where we aren't following the documentation.  Alternatives are to patch code to match docs (quick), or to actually implement snapshot deletion (longer, but more desirable).  I see no need to do a quick patch now only to undo it later when true snapshot deletion is implemented.
Comment 6 Eric Blake 2014-10-27 07:45:17 EDT
Upstream proposed patch:
https://www.redhat.com/archives/libvir-list/2014-October/msg00823.html
Comment 9 Shanzhi Yu 2014-11-14 04:19:42 EST
Change to VERIFIED status. Steps as below:

# virsh snapshot-create-as rh7 internal
Domain snapshot internal created
# virsh snapshot-create-as rh7 external --disk-only
Domain snapshot external created
# virsh snapshot-delete rh7 internal --children
error: Failed to delete snapshot internal
error: unsupported configuration: deletion of 1 external disk snapshots not supported yet
# virsh snapshot-delete rh7 internal --children-only 
error: Failed to delete snapshot internal
error: unsupported configuration: deletion of 1 external disk snapshots not supported yet
Comment 11 errata-xmlrpc 2015-03-05 02:20:19 EST
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://rhn.redhat.com/errata/RHSA-2015-0323.html

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