Bug 1810270 - file repo deletion is slow
Summary: file repo deletion is slow
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.7.1
Assignee: Justin Sherrill
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-04 20:27 UTC by Justin Sherrill
Modified: 2023-10-06 19:20 UTC (History)
4 users (show)

Fixed In Version: tfm-rubygem-katello-3.14.0.21-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1814428 (view as bug list)
Environment:
Last Closed: 2020-06-08 13:18:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
1810270.patch (1.33 KB, patch)
2020-03-10 20:50 UTC, Mike McCune
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29267 0 Normal Closed file repo deletion is slow 2020-07-23 14:16:11 UTC
Red Hat Product Errata RHBA-2020:2422 0 None None None 2020-06-08 13:18:13 UTC

Description Justin Sherrill 2020-03-04 20:27:11 UTC
The repository model is setup to delete associated units very quickly via :dependent => :delete_all

However for file units, this is missing.  This results in a very slow repo deletion with lots of units.

Comment 1 Justin Sherrill 2020-03-04 20:27:14 UTC
Created from redmine issue https://projects.theforeman.org/issues/29267

Comment 2 Justin Sherrill 2020-03-04 20:27:16 UTC
Upstream bug assigned to None

Comment 4 Bryan Kearney 2020-03-04 21:00:38 UTC
Upstream bug assigned to jsherril

Comment 5 Bryan Kearney 2020-03-04 21:00:40 UTC
Upstream bug assigned to jsherril

Comment 6 Bryan Kearney 2020-03-05 17:00:37 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29267 has been resolved.

Comment 7 Mike McCune 2020-03-10 20:50:35 UTC
Created attachment 1669061 [details]
1810270.patch

** Satellite 6.6 Patch instructions **


1) Download 1810270.patch to your Satellite

2) copy to tfm-rubygem-katello subdir:

cp 1810270.patch `rpm -ql tfm-rubygem-katello | head -1`

3) cd `rpm -ql tfm-rubygem-katello | head -1`

4) patch:

patch -p1 < 1810270.patch

5) foreman-maintain service restart

6) remove repository via hammer or UI

Comment 8 Mike McCune 2020-04-17 18:05:43 UTC
*** 6.7.0 Hotfix available ***


1) Download hotfix rpm:

wget http://people.redhat.com/~mmccune/hotfix/tfm-rubygem-katello-3.14.0.20-2.HOTFIXRHBZ1810250RHBZ1810270.el7sat.noarch.rpm

to your Satellite.

2) Install:

rpm -Uvh tfm-rubygem-katello-3.14.0.20-2.HOTFIXRHBZ1810250RHBZ1810270.el7sat.noarch.rpm

3) restart:

satellite-maintain service restart

4) resume operations

Comment 21 errata-xmlrpc 2020-06-08 13:18:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2422


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