Bug 1830884

Summary: bootstrap.py script tries to yum install puppet package that is not in rhel-7-server-satellite-tools-6.7-rpms repo
Product: Red Hat Satellite Reporter: Brenden Wood <bwood>
Component: BootstrapAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: egolov, ehelms, zhunting
Target Milestone: 6.8.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: katello-client-bootstrap-1.7.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:02:11 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 Brenden Wood 2020-05-04 08:27:57 UTC
Description of problem:

"puppet-agent" is available in the rhel-7-server-satellite-tools-6.7-rpms repo and contains everything needed to register host to Satellite 6.7 manually but the regular "puppet" package is not present in the repo (seems it was moved to rh-common repo).

When using the bootstrap.py script to register hosts to Satellite 6.7 it will try to yum install puppet and fail because the package does not exist in any repos ( assuming you only have Base + Satellite-Tools-6.7 ).

Comment 3 Evgeni Golov 2020-05-07 14:06:10 UTC
brenden, the puppet-agent package in sat-tools has a "provides: puppet", so it should actually work.

Comment 4 Brenden Wood 2020-05-08 00:00:29 UTC
Evgeni, you're right that the puppet-agent package provides puppet but it seems that bootstrap.py explicitly tries to run "yum install puppet" and fails. Shouldn't the bootstrap.py script instead be running "yum install puppet-agent" at that step?

I was on a customer site and could not get logs or example output but I will see if I can reproduce this on another Satellite 6.7 to confirm

Comment 5 Evgeni Golov 2020-05-08 05:56:14 UTC
(In reply to Brenden Wood from comment #4)
> Evgeni, you're right that the puppet-agent package provides puppet but it
> seems that bootstrap.py explicitly tries to run "yum install puppet" and
> fails. Shouldn't the bootstrap.py script instead be running "yum install
> puppet-agent" at that step?

Yeah, it *should*. And that's also what I've implemented in the PR (https://github.com/Katello/katello-client-bootstrap/pull/328) as nothing uses the old "puppet" name anymore.
However, yum should just fine resolve that provides and install the "puppet-agent" RPM when it is asked to install "puppet"

> I was on a customer site and could not get logs or example output but I will
> see if I can reproduce this on another Satellite 6.7 to confirm

That'd be cool. We'll fix/cleanup the code either way, but would be good to know how quickly we need to push the fix out.

Comment 12 errata-xmlrpc 2020-10-27 13:02:11 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 (Important: Satellite 6.8 release), 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:4366