Bug 1248104 - Cannot run simultaneously multiple VM's that use host devices of one host.
Summary: Cannot run simultaneously multiple VM's that use host devices of one host.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Martin Betak
QA Contact: Israel Pinto
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-29 15:28 UTC by Martin Betak
Modified: 2016-02-10 19:24 UTC (History)
9 users (show)

Fixed In Version: 3.6.0-10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-22 13:30:36 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 44245 0 master MERGED backend: Fix Deadlock in multiple hostdev RunVmCommands Never
oVirt gerrit 44413 0 ovirt-engine-3.6 MERGED backend: Fix Deadlock in multiple hostdev RunVmCommands Never

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.


Note You need to log in before you can comment on or make changes to this bug.