Project

General

Profile

Bug #16401

Enabling repos concurrently doesnt release lock even if its 100% completed.

Added by Brad Buckingham almost 3 years ago. Updated 11 months ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1291624

Description of problem:
Enable repos concurrently as shown below.   They never release lock even its 100% completed
time hammer -u "${ADMIN_USER}" -p "${ADMIN_PASSWORD}" repository-set enable --name="Red Hat Enterprise Linux 5 Server (RPMs)" --basearch="x86_64" --releasever="5Server" --product "Red Hat Enterprise Linux Server" --organization "${ORG}" 2>&1 &
time hammer -u "${ADMIN_USER}" -p "${ADMIN_PASSWORD}" repository-set enable --name="Red Hat Enterprise Linux 5 Server (RPMs)" --basearch="i386" --releasever="5Server" --product "Red Hat Enterprise Linux Server" --organization "${ORG}" 2>&1 &
time hammer -u "${ADMIN_USER}" -p "${ADMIN_PASSWORD}" repository-set enable --name="Red Hat Enterprise Linux 6 Server (RPMs)" --basearch="x86_64" --releasever="6Server" --product "Red Hat Enterprise Linux Server" --organization "${ORG}"  2>&1 &
time hammer -u "${ADMIN_USER}" -p "${ADMIN_PASSWORD}" repository-set enable --name="Red Hat Enterprise Linux 6 Server (RPMs)" --basearch="i386" --releasever="6Server" --product "Red Hat Enterprise Linux Server" --organization "${ORG}" 2>&1 &
Once its done, if i try to sync 
Required lock: read
Conflicts with tasks:
- https://<sat-server>/foreman_tasks/tasks/bf03ad39-8f58-4d75-a762-650b3d2f3350
Could not synchronize the repository:
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://<sat-server>/foreman_tasks/tasks/3fe6659f-3975-4be4-96e5-b4cfc1034737
Could not synchronize the repository:
Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.
Version-Release number of selected component (if applicable):
katello-2.2.0.16-1.el7sat.noarch
pulp-server-2.6.0.17-1.el7sat.noarch
candlepin-0.9.49.9-1.el7.noarch
Steps to Reproduce:
1.Enable repos concurrently ( with background process)
Actual results:
Lock is not released.
Expected results:
Release lock, such that user can procede for syning of content.

History

#1 Updated by Justin Sherrill almost 3 years ago

  • Subject changed from Enabling repos concurrently doesnt release lock even if its 100% completed. to Enabling repos concurrently doesnt release lock even if its 100% completed.
  • Status changed from New to Need more information
  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF