Bug 1773133
Summary: | Foreman-rake facts:cleanup batch/rolling support | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | wclark | |
Component: | Fact | Assignee: | Lukas Zapletal <lzap> | |
Status: | CLOSED ERRATA | QA Contact: | Radovan Drazny <rdrazny> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 6.6.0 | CC: | cmarinea, egolov, ktordeur, mhulan, mjia, mmccune, pmoravec | |
Target Milestone: | 6.7.0 | Keywords: | PrioBumpField, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | foreman-1.23.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1791495 (view as bug list) | Environment: | ||
Last Closed: | 2020-04-14 13:27:10 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
wclark
2019-11-15 23:51:49 UTC
Upstream bug assigned to lzap Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25227 has been resolved. Hotfix RPM is available for Satellite 6.5.3: To obtain the hotfix: 1. Open a support ticket to obtain the RPM, since the hotfix RPM is too large to be provided as a bugzilla attachment. 2. Take a complete snapshot or backup of your Satellite server. 3. Copy the hotfix RPM to your Satellite server 4. # rpm -Uvh --nodeps foreman-1.20.1.36-2.HOTFIXRHBZ1773133.el7sat.noarch.rpm No service restart should be necessary for the change to take effect, since facts cleanup is done via Rake. Connecting redmine issue https://projects.theforeman.org/issues/25227 from this bug Hotfix RPM is available for Satellite 6.6.1 which fixes this BZ and BZ1781340: To obtain the hotfix: 1. Open a support ticket to obtain the RPM, since the hotfix RPM is too large to be provided as a bugzilla attachment. 2. Take a complete snapshot or backup of your Satellite server. 3. Copy the hotfix RPM to your Satellite server 4. # rpm -Uvh --nodeps foreman-1.22.0.33-2.HOTFIXRHBZ1773133_1781340.el7sat.noarch.rpm No service restart should be necessary for the change to take effect, since facts cleanup is done via Rake. !!!NOTE!!!: This hotfix can be installed on Satellite 6.6.0 as well but it will be necessary to downgrade it before updating to Satellite 6.6.1 or later: To remove the hotfix from Satellite 6.6.0 before updating: 1. # satellite-maintain packages unlock 2. # yum downgrade foreman-1.22.0.32 3. # satellite-maintain packages lock Verified with (almost) 55000 orphaned facts on Satellite 6.7 Snap 9. $ foreman-rake facts:clean --trace --verbose ** Invoke facts:clean (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute facts:clean Starting orphaned facts clean up Finished, cleaned 54999 facts No issues during the cleanup. There is another problem associated with this bug which was fixed in 1.24 (6.7) https://bugzilla.redhat.com/show_bug.cgi?id=1781340 (Cleaning orphaned facts fails with undefined method map) If you need a backport raise new BZ please, it's a trivial one. 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/RHSA-2020:1454 |