Bug 1248104

Summary: Cannot run simultaneously multiple VM's that use host devices of one host.
Product: [oVirt] ovirt-engine Reporter: Martin Betak <mbetak>
Component: GeneralAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: high    
Version: ---CC: bugs, ecohen, gklein, lsurette, mavital, mgoldboi, michal.skrivanek, rbalakri, yeylon
Target Milestone: ovirt-3.6.0-rcFlags: rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: 3.6.0-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-22 13:30:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Betak 2015-07-29 15:28:56 UTC
Description of problem:

HostDevice lock is not released when running multiple VMs that have configured devices of the same host.


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

How reproducible:


Steps to Reproduce:
1. Have two VMs pinned to the same host. Configure some host devices for them.
2. In webadmin select both of them and press the "Run" button.

Actual results:

No VMs are run and log repeatedly outputs [org.ovirt.engine.core.bll.lock.InMemoryLockManager] (default task-109) [] Failed to acquire lock and wait lock 'EngineLock:{exclusiveLocks='[30067f58-01b0-44b4-95a6-6ec2930c10c7=<HOST_DEVICES, ACTION_TYPE_FAILED_OBJECT_LOCKED>]', sharedLocks='null'}'

and no futher runs of host-device VMs pinned on that host will have any effects, until the engine is restarted.


Expected results:
Multiple host-device VMs should run successfully.

Comment 1 Israel Pinto 2015-12-15 12:32:57 UTC
Verify with:
RHEVM Version: 3.6.1.3-0.1.el6 
vdsm: vdsm-4.17.13-1.el7ev

Scenario:
1. Set 2 VMs with the same host device.
2. Both VMs pinned to same host(with the host device)
3. Run simultaneously 2 VMs
Results:
The deadlock is solve, I run 2 VMs simultaneously and only one VM is up. 
PASS

Comment 2 Sandro Bonazzola 2015-12-22 13:30:36 UTC
oVirt 3.6.0 has been released and the bz verified, moving to closed current release.