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.
Created from redmine issue https://projects.theforeman.org/issues/29267
Upstream bug assigned to None
Upstream bug assigned to jsherril
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29267 has been resolved.
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
*** 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
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