Bug 1310390

Summary: Restore snapshot with only subset of vm's disks will stuck the vm in image locked state
Product: [oVirt] ovirt-engine Reporter: Raz Tamir <ratamir>
Component: BLL.StorageAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Aharon Canan <acanan>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.6.3.1CC: amureini, bugs, derez, ebenahar, mst, ratamir, sbonazzo, ylavi
Target Milestone: ovirt-3.6.4Keywords: Automation, Regression
Target Release: 3.6.4Flags: rule-engine: ovirt-3.6.z+
rule-engine: blocker+
ylavi: planning_ack+
rule-engine: devel_ack+
acanan: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-05 13:54:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1317258    
Attachments:
Description Flags
engine and vdsm logs none

Description Raz Tamir 2016-02-21 09:50:54 UTC
Created attachment 1128943 [details]
engine and vdsm logs

Description of problem:
After restoring a previewed snapshot that contain only subset ov the vm's disks, the vm state will stuck in 'image locked'.
Setup:
VM + 1 disk
Create a snapshot and after, create a new disk.
After the second disk s created, create second snapshot.
Preview the first snapshot and choose the option:
"Include in the previewed VM only the disks that are included in the snapshot."

Restore the previewed snapshot and wait for the vm state to change to 'image locked'.

Version-Release number of selected component (if applicable):
rhevm-3.6.3-0.1.el6.noarch
vdsm-4.17.21-0.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create vm + 1 disk
2. Create snapshot from the vm
3. Create second disk + second snapshot containing both disks
4. preview the first snapshot (step 2) and choose the option to "previewed VM only the disks that are included in the snapshot"
5. commit

Actual results:
The vm state will stuck on 'image locked'

Expected results:


Additional info:

Comment 1 Allon Mureinik 2016-02-21 11:36:36 UTC
Daniel, can you please take a look at this ASAP?

Comment 2 Red Hat Bugzilla Rules Engine 2016-02-21 11:36:42 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Daniel Erez 2016-02-21 14:06:37 UTC
Hi Raz,

The issue doesn't seem to reproduce on my local env (latest build). In which build did you reproduce it? Can you please attach a screencast with the exact steps (just in case I didn't follow it accurately).

Thanks!

Comment 4 Raz Tamir 2016-02-22 13:09:42 UTC
Hi Daniel,
I use rhevm-3.6.3-0.1.el6.noarch on my environment.
1) Create vm
2) Add disk to vm
3) create snapshot
4) Add disk to vm
5) create snapshot
6) Preview the first snapshot (step 2) and choose the option to "previewed VM only the disks that are included in the snapshot"
7) Commit

Comment 5 Elad 2016-03-17 08:42:47 UTC
Commit snapshot gets completed successfully after the following:
1. Create vm + 1 disk
2. Create snapshot from the vm
3. Create second disk + second snapshot containing both disks
4. preview the first snapshot (step 2) and choose the option to "previewed VM only the disks that are included in the snapshot"
5. commit

VM and its attached images get unlocked once commit snapshot is finished.

Used:
rhevm-3.6.4-0.1.el6.noarch
vdsm-4.17.23.1-0.el7ev.noarch