Bug 1631019

Summary: [RFE] Satellite 6.x bootstrap is too aggressive and shouldn't run 'yum clean all'
Product: Red Hat Satellite Reporter: Vincent S. Cojot <vcojot>
Component: BootstrapAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.3CC: egolov, ehelms
Target Milestone: 6.5.0Keywords: EasyFix, FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-client-bootstrap-1.7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:38:03 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 Vincent S. Cojot 2018-09-19 18:20:45 UTC
Description of problem:


Satellite 6.x is too aggressive in removing things on local host:

https://github.com/Katello/katello-client-bootstrap/blob/master/bootstrap.py#L394

Instead of 'yum clean all', it would be sufficient to run:
'yum clean headers metadata dbcache'

The unexpected side effect of having bootstrap do that when you have a shared rpm cache on NFS, is that the first host to run bootstrap wiped the NFS rpms cache on the NFS server.

Comment 5 errata-xmlrpc 2019-05-14 12:38: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/RHSA-2019:1222