Bug 903233 - Snapshot created while VM is in hibernate will be ignored when VM will be running again and the volume which the VM disk will write on will be the original volume it was running on
Summary: Snapshot created while VM is in hibernate will be ignored when VM will be run...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michal Skrivanek
QA Contact:
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-23 14:36 UTC by Maor
Modified: 2014-01-01 08:46 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-29 11:00:59 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 877978 0 high CLOSED engine: we are able to create live snapshot and suspend vm 2021-02-22 00:41:40 UTC

Internal Links: 877978

Description Maor 2013-01-23 14:36:10 UTC
Description of problem:

Snapshot created while VM is in hibernate will be ignored when VM will be running again and the volume which the VM disk will write on will be the original volume it was running on

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create VM with OS on it
2. Run the VM
4. hibernate the VM
5. Create snapshot of the VM called "snapshot1"
6. Run the VM again
7. Create folder "first folder" in the VM
8. Stop the VM
9. Preview snapshot "snapshot1"
10. Run the VM

  
Actual results:
After VM will run in preview you can see the folder that was created after the snapshot was taken

Expected results:
The VM should not have the folder while it is running under preview.

Additional info:
The cause of this might be because on running hibernated VM the engine send hibernatevol which contains the meta data which the VM is working with.
VDSM reads from the hibernatevol and ignore the disks which it gets in the createVdsCommand

Comment 1 Itamar Heim 2013-01-24 10:47:52 UTC
I wonder if snapshoting a suspended vm should also *clone* the disk containing the RAM

Comment 2 Vinzenz Feenstra [evilissimo] 2013-01-24 13:55:44 UTC
(In reply to comment #1)
> I wonder if snapshoting a suspended vm should also *clone* the disk
> containing the RAM

well if it is suspended of course.

Comment 3 Vinzenz Feenstra [evilissimo] 2013-01-31 13:37:18 UTC
This issue is on engine backend side.

Comment 4 Libor Spevak 2013-02-01 08:27:45 UTC
Can you specify the tested RHEVM version?

I tried latest oVirt and it seems without problems according to the description.

Comment 5 Maor 2013-02-03 12:29:14 UTC
(In reply to comment #4)
> Can you specify the tested RHEVM version?
It was latest upstream of 3.2
> 
> I tried latest oVirt and it seems without problems according to the
> description.
Did you verify according to the steps? Was the previewed snapshot showed the directory you created before?

Comment 6 Libor Spevak 2013-02-04 16:02:28 UTC
Sorry, the hibernate VM in your description means to run SUSPEND command, I used shutdown VM action. It looks like snapshot created from SHUTDOWN or LIVE VM behaves correctly, but snapshot from SUSPENDED state has a problem.
Investigating...

Scenario 1 (OK):
1. create and run VM
2. create file Hello1
3. shutdown VM
4. create snapshot1 (VM is SHUTDOWN)
5. run VM
6. create file Hello2
7. shutdown VM
8. Select Preview snapshot1 + run VM
9. VM contains just file Hello1

Scenario 2 (OK):
1. run VM
2. remove Hello2 file
3. Create snapshot1 (LIVE)
4. create file Hello2
5. shutdown VM
6. Preview snapshot1
7. VM contains just file Hello1

Scenario 3 (ERROR):
1. run VM
2. remove Hello2 file
3. SUSPEND VM
4. create snapshot1
5. create file Hello2
6. shutdown VM
7. Preview snapshot1
7. VM contains file Hello2, and it shouldn't

Comment 8 Sean Cohen 2013-02-05 13:51:20 UTC
If the system allows you to take a snapshot at a suspended VM state, it should be able to perfrom this tasks fully. 
Therefore it is a bug.  

As our current design does allows such operation, I would rather see it taken a full snapshot state rahter than block the operation.

Comment 14 Itamar Heim 2013-12-29 11:00:59 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


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