Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 873329

Summary: engine [Live Storage Migrate]: power down of vm during creation of live migration snapshot will rollback but leave snapshot and disks in image lock
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: abaron, amureini, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, vvyazmin, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI24.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
logs and screen shots none

Description Dafna Ron 2012-11-05 15:00:47 UTC
Created attachment 638681 [details]
logs and screen shots

Description of problem:

power down of a vm while the storage live migration snapshot is created (for move disk) will leave the vm's snapshot and disks in image lock. 
there are no tasks to clean that would prevent the lock from being freed. 

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

si24

How reproducible:

100%

Steps to Reproduce:
1. run a vm
2. move image -> while the snapshot is created power down the vm
3.
  
Actual results:

we will fail the move disk but the snapshot and disk images will remain locked (not a task clear issue since after roll back there are no tasks at all in vdsm or async tasks table)

Expected results:

snapshot and disks should be freed. 

Additional info: logs + screen shot


engine=# SELECT * from async_tasks;
 task_id | action_type | status | result | action_parameters | action_params_class | step_id | command_id | started_at | storage_pool_id | task_type 
---------+-------------+--------+--------+-------------------+---------------------+---------+------------+------------+-----------------+-----------


[root@gold-vdsc ~]# vdsClient -s 0 getAllTasksInfo

[root@gold-vdsc ~]#

Comment 1 Ayal Baron 2012-11-07 10:11:38 UTC
Daniel, isn't this fixed?

Comment 3 Daniel Erez 2012-11-10 17:41:20 UTC
Patch sent:
http://gerrit.ovirt.org/#/c/9142/
Change-Id: I24f9bc88623a9cd0addade874c7f2beeab67d423

Comment 4 Allon Mureinik 2012-11-11 10:58:26 UTC
Merged change id I24f9bc88623a9cd0addade874c7f2beeab67d423

Comment 5 Dafna Ron 2012-11-12 11:42:15 UTC
verified on si24.1