Project

General

Profile

Bug #15531

Katello 3.0.1 - Deleting a Content View version takes a long time (to start)

Added by John Beranek about 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

If I attempt to delete a content view version, either from the CLI or GUI, it takes a long time to start, and typically times out in the CLI, and leads to the delete confirmation screen in the GUI to sit with an hourglass forever.

When this happens, the dynflow task shows as planning/pending, and there is a single 'ruby' process running, using 100% of one CPU core. If this is left, it eventually stops doing this, and the task starts and does eventually complete.

There was a suggestion that there was a problem with lack of entropy on the system - I installed and run haveged, and while initially it seemed like it could have helped, it seems that patience was what really helped - it just takes a long time to delete a content view version.

katello-content-view-delete-tasks.png View katello-content-view-delete-tasks.png 12.6 KB Strange duplicated tasks on completion of deletion John Beranek, 06/28/2016 04:31 AM
Katello content view delete tasks

Associated revisions

Revision cc350d92 (diff)
Added by Brad Buckingham almost 3 years ago

fixes #15531 - repo: bypass AR validation when deleting units

When a repository is destroyed, many of the related objects
are also destroyed. In the case of AR objects that are related
to 'pulp database units' (e.g. rpm, erratum, ...etc), a
'dependent destroy' was performed. This triggers AR
validations to be performed and cause the deletion to
take a very long time (possibly minutes vs seconds).
This change will bypass AR for the deletion of anything that
is associated with a pulp database unit.

Revision 138fc496
Added by Brad Buckingham almost 3 years ago

Merge pull request #6263 from bbuckingham/issue-15531

fixes #15531 - repo: bypass AR validation when deleting units

History

#1 Updated by John Beranek about 3 years ago

$ hammer -u admin -p foremanpassword task list --search "state=planning" 
-------------------------------------|------|-------|---------------------|----------|----------|---------|-------------|------------
ID                                   | NAME | OWNER | STARTED AT          | ENDED AT | STATE    | RESULT  | TASK ACTION | TASK ERRORS
-------------------------------------|------|-------|---------------------|----------|----------|---------|-------------|------------
12faa2e6-6744-4562-8ed1-d52978f09d70 |      | admin | 2016/06/28 07:50:20 |          | planning | pending | Destroy     |
276b8b3d-66ac-415b-a0e9-dc03cf771962 |      | admin | 2016/06/28 07:49:20 |          | planning | pending | Destroy     |
-------------------------------------|------|-------|---------------------|----------|----------|---------|-------------|------------

#3 Updated by Justin Sherrill about 3 years ago

  • Category set to Performance

#4 Updated by Justin Sherrill about 3 years ago

Another in IRC complained about this too (lfisher)

#5 Updated by Justin Sherrill about 3 years ago

  • Assignee set to Justin Sherrill

#6 Updated by Brad Buckingham almost 3 years ago

  • Assignee changed from Justin Sherrill to Brad Buckingham

#7 Updated by Brad Buckingham almost 3 years ago

  • Category changed from Performance to Content Views

#8 Updated by Brad Buckingham almost 3 years ago

  • Bugzilla link set to 1369234

#9 Updated by Brad Buckingham almost 3 years ago

  • Target version set to 123

#10 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6263 added

#11 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 143

#12 Updated by Brad Buckingham almost 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF