Bug 788904

Summary: 3.1 beta2 - VDSM: lock is not released on vm that is shut down while storage is not accessible - moving vm to a different storage domain will result in vm getting stuck in image locked forever
Product: Red Hat Enterprise Linux 6 Reporter: Dafna Ron <dron>
Component: vdsmAssignee: Eduardo Warszawski <ewarszaw>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: abaron, bazulay, danken, iheim, ilvovsky, lnatapov, srevivo, ykaul
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-05 07:44:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 829428    
Bug Blocks:    
Attachments:
Description Flags
log none

Description Dafna Ron 2012-02-09 09:04:26 UTC
Description of problem:

if you shut down a vm while storage domain is not accessible we will not release the lock on the vm and if we try to move it to a different domain the vm will be stuck in image locked forever. 

I used iscsi storage domain consisting of 2 luns from different storage servers. I blocked only one of the storage servers from the host using iptables. 

also, this does not happen in upstream.  

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

vdsm-4.9-112.6.el6_2.x86_64

How reproducible:

100%

Steps to Reproduce:
1. create DC with two SD (my master domain consisted of luns from 2 different storage servers).  
2. run vm and block connectivity to one of the storage servers from the host using iptables
3. when vm pauses stop it and restore SD connectivity
4. move vm to a different domain. 
  
Actual results:

vm will be stuck in image lock forever

Expected results:

we should be able to move vm

Additional info: full log

Comment 1 Dafna Ron 2012-02-09 09:04:53 UTC
Created attachment 560473 [details]
log

Comment 3 RHEL Program Management 2012-05-05 04:15:58 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 10 Leonid Natapov 2012-08-06 14:22:38 UTC
si13. fixed. This bug was open on 3.0. There is no move VM now. VM is not entering image lock status while moving it's disks. Reproduced according to instructions above. VM with 2 disks (each disk in different SD). Blocked connection to on of the SD. Vm entered to paused state. Stopped VM and restored connection to SD. After connection was restored successfully moved VMs disk to another storage domain.