Bug 856135

Summary: [engine-core] During deleting action multiple floating disks and restart ovirt-engine service action disks get locked status
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: ovirt-engineAssignee: Ayal Baron <abaron>
Status: CLOSED DUPLICATE QA Contact: vvyazmin <vvyazmin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, amureini, dyasny, hateya, iheim, lpeer, mkenneth, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.5   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-09 12:15:23 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:25:08 UTC
Created attachment 611707 [details]
## Logs vdsm, rhevm, screen-shots

Description of problem: 
During deleting action multiple floating disks and restart ovirt-engine service action disks get locked status


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:
Occasionally

Steps to Reproduce:
1. Create 10 floating disk
2. Select them all, and delete
3. During deleting restart “ovirt-engine” service
  
Actual results:
Same disk get “Locked” status
No option delete them

Expected results:
No “Locked” disks
Option remove (delete them) them 

Additional info:
# psql -U postgres engine -c 'select disk_id,disk_alias,imagestatus  from all_disks where imagestatus = 2;'  | less -S 

               disk_id                | disk_alias | imagestatus 
--------------------------------------+------------+-------------
 c5cc119c-f9d0-4d54-a5c6-f9e24ba7194e | 1          |           2

# psql -U postgres engine -c 'select * from async_tasks;'  | less -S 

 task_id | action_type | status | result | action_parameters | action_params_class | step_id | command_id 
---------+-------------+--------+--------+-------------------+---------------------+---------+------------
(0 rows)

Comment 1 vvyazmin@redhat.com 2012-09-11 12:33:25 UTC
In DB “async_tasks” table: no tasks are running
In VDSM (vdsClient -s 0 getAllTasksInfo) : no tasks are running
In DB “all_disks” table, disk have status: imagestatus == 2

Comment 3 vvyazmin@redhat.com 2012-10-09 12:15:23 UTC

*** This bug has been marked as a duplicate of bug 856203 ***