Bug 826059 - If run multiple actions fails ,the object stays locked forever.
If run multiple actions fails ,the object stays locked forever.
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
Unspecified Unspecified
unspecified Severity urgent
: ---
: 3.1.0
Assigned To: mkublin
Leonid Natapov
Depends On:
  Show dependency treegraph
Reported: 2012-05-29 09:46 EDT by Leonid Natapov
Modified: 2016-02-10 12:11 EST (History)
11 users (show)

See Also:
Fixed In Version: SI6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Leonid Natapov 2012-05-29 09:46:19 EDT
I am trying to delete quite big amount of disks (15) from the disks tab.
Backend executes Run multiple actions and acquires lock for each object.
If,for some reason,action fails at CanDoAction (in this case CanDoAction of action RemoveDisk failed) the objects stays locked forever. As a result I have several disks that can not be deleted.

The message in UI says:Error: Can't remove Virtual Machine disk. Same action in progress.

Here is the engine.log:

2012-05-29 16:15:50,441 WARN  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp-- CanDoAction of action RemoveDisk failed. Reasons:VAR__ACTI
2012-05-29 16:15:53,564 INFO  [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-26) [797907a7] AsyncTaskManager::SetNewMap: The map contai
ns now 0 tasks
2012-05-29 16:15:53,566 INFO  [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-26) [797907a7] AsyncTaskManager::RemoveOldAndCleanedTasks:
 Cleared all tasks of pool d4510c2d-8255-404d-a846-90a80842f91f.
2012-05-29 16:15:53,569 INFO  [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-26) [797907a7] AsyncTaskManager::RemoveOldAndCleanedTasks:
 could not find vds that is spm and non-operational.
2012-05-29 16:16:26,278 INFO  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp-- Failed to Acquire Lock to object EngineLock [exclusiveLocks
= key: DISK value: 77dd0642-efb2-40a6-ad5a-4298698eb2bf
, sharedLocks= key: TEMPLATE value: 8c4981b4-6441-403e-a5f9-e6ce229c65bb
Comment 1 mkublin 2012-05-30 04:56:58 EDT
Comment 2 Leonid Natapov 2012-06-17 04:54:05 EDT
si6. fixed. can't reproduce the problem.

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