Bug 1302280 - "Required lock is already taken by other running tasks" when doing two parallel deployments
"Required lock is already taken by other running tasks" when doing two parall...
Status: NEW
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - RHELOSP (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: John Matthews
Dave Johnson
Dan Macpherson
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2016-01-27 06:16 EST by Antonin Pagac
Modified: 2016-09-23 14:50 EDT (History)
1 user (show)

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

Attachments (Terms of Use)

  None (edit)
Description Antonin Pagac 2016-01-27 06:16:55 EST
Description of problem:
I started two deployments in parallel. One for RHEV+CFME and the other for RHELOSP. Both of them are now syncing content, but the second one (RHELOSP) reports sub task failed. The sub task:

Id: a2cc12a5-ebe0-4584-8c8c-26c7982b91e4
Label: Actions::Katello::Repository::Sync
Name: Synchronize
Owner: admin
Started at: 2016-01-27 10:56:20 UTC
Ended at: 2016-01-27 10:56:22 UTC
State: stopped
Result: error
Params: repository 'Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.1'; product 'Red Hat Enterprise Linux Server'; organization 'Default Organization'

reports error:

Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Required lock: read
Conflicts with tasks:
- https://<URL>/foreman_tasks/tasks/48b8eefb-3174-4924-8ac2-9f56372ae0d2

The conflicting task is:

Id: 48b8eefb-3174-4924-8ac2-9f56372ae0d2
Label: Actions::Fusor::Content::ManageContent
Name: Manage Content
Owner: admin
Started at: 2016-01-27 10:37:02 UTC
Ended at:
State: running
Result: -
Params: {"services_checked"=> ["pulp", "pulp_auth", "candlepin", "candlepin_auth", "elasticsearch"], "locale"=>"en"} 

which is the manage content task for the first deployment (RHEVM+CFME).

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

How reproducible:
Happened to me once

Steps to Reproduce:
1. Do two parallel deployments in such a way that they will try to sync content at the same time
2. Inspect Installation Progress screen of the second deployment

Actual results:
Sub task failed; Required lock is already taken by other running tasks

Expected results:
Maybe the second task should wait for the first task to finish

Additional info:

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