Bug 1375254 - Snapshots remains though disk removed
Summary: Snapshots remains though disk removed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 3.6.7
Hardware: All
OS: Linux
unspecified
low vote
Target Milestone: ovirt-4.0.5
: ---
Assignee: Allon Mureinik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-12 14:45 UTC by Nicolas Ecarnot
Modified: 2016-09-13 05:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-13 05:24:31 UTC
oVirt Team: Storage
amureini: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
PYI : The test VM was called "snapbug". (1.86 MB, application/x-gzip)
2016-09-12 14:45 UTC, Nicolas Ecarnot
no flags Details

Description Nicolas Ecarnot 2016-09-12 14:45:13 UTC
Created attachment 1200234 [details]
PYI : The test VM was called "snapbug".

Description of problem:
[I'm not sure whether this is a wanted behavior, so please feel free to close this BZ if irrelevant.]
After the disk is permanently removed, the snapshots still exist.
I thought the snapshots were stored and related to a VM's disk. Thus, deleting a disk would have removed the snapshots.


Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.6.7.5-1.el7.centos


How reproducible:

twice

I saw that once on a production VM.
I then reproduced it on a dedicated test VM.


Steps to Reproduce:
1. Create a VM, add a disk, make 2 snapshots
2. Preview the first one, then commit. Shutdown the VM
3. Remove the disk. The snapshots remain.

Actual results:
Surviving snapshots.

Expected results:
Snapshots get erased.

Additional info:
The steps described above may be necessary to reproduce this bug. A simpler path may act different...

Comment 1 Nicolas Ecarnot 2016-09-12 14:46:13 UTC
PS : The attachment contains engine and vdsm log files.

Comment 2 Allon Mureinik 2016-09-13 05:24:31 UTC
A snapshot is a VM level entity, not a disk level entity. It contains the VM's configuration at the time is was taken, the memory dump (optionally) and the state of the disk(s). If a disk is removed, the rest of the information is still valuable, and should not be removed. If you want to remove a snapshot, you can do so explicitly.

Long story short - this is the expected behavior.


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