Bug 856137

Summary: [engine-core] User able attach disk in locked status to VM
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: ovirt-engineAssignee: Asaf Shakarchi <asaf>
Status: CLOSED CURRENTRELEASE QA Contact: vvyazmin <vvyazmin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, amureini, dyasny, ecohen, hateya, iheim, lnatapov, lpeer, mkenneth, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:05:43 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:
Attachments:
Description Flags
## Logs vdsm, rhevm, screen-shots none

Description vvyazmin@redhat.com 2012-09-11 09:29:21 UTC
Created attachment 611709 [details]
## Logs vdsm, rhevm, screen-shots

Description of problem:
Succeed attached disks with locked status to VMs

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

RHEVM: rhevm-3.1.0-15.el6ev.noarch 
VDSM: vdsm-4.9.6-32.0.el6_3.x86_64 
LIBVIRT: libvirt-0.9.10-21.el6_3.4.x86_64 
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.295.el6_3.2.x86_64 
SANLOCK: sanlock-2.3-3.el6_3.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create 10 floating disk
2. Select them all, and delete
3. During deleting restart “ovirt-engine” service
4. Same disk get “Locked” status
5. Attached those disk to VM
  
Actual results:
Succeeded attached disks with “Locked” status
In adding action, can see those disks

Expected results:
Block attached disks action with “Locked” status
Block view those disks in adding disks to VM

Additional info:

Comment 2 Asaf Shakarchi 2012-09-27 14:57:21 UTC
Patch submitted: http://gerrit.ovirt.org/#/c/8167/

Comment 3 Allon Mureinik 2012-10-03 11:28:06 UTC
merged change id I109654547b68da245a5fdc2b2188feedd45c2ca7

Comment 4 Leonid Natapov 2012-10-14 10:09:57 UTC
si20. fixed.