Bug 1331432

Summary: subscription_manager_registration does not enable Satellite tools repo
Product: Red Hat Satellite Reporter: Stefan Meyer <smeyer>
Component: Provisioning TemplatesAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, cwelton, ehelms, kbidarka, mmccune
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-hammer_cli_foreman-0.5.1.7-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:31:27 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 Stefan Meyer 2016-04-28 13:51:09 UTC
Description of problem:
Until Satellite 6.2 the Satellite Tools repository was enable in the subscription_manager_registration snippet.
This is missing in the new snippet. If the repo is not enabled in an activation key, which is the default, the
Katello and Puppet agent are not installed while kickstarting.

If the snippet is updated through a Satellite update, customers would not be able to install new systems as before.

The Satellite Tools repo should get enabled by default by including this in the snippet:

######################
<% if @host.operatingsystem.name == "RedHat" %>
        # add the rhel rpms to install katello agent
        subscription-manager repos --enable=rhel-*-satellite-tools-*-rpms
<% end %>
######################


Version-Release number of selected component (if applicable):
Satellite 6.2 SNAP 9.3

How reproducible:
With every new Satellite installation

Steps to Reproduce:
1. Create activation key
2. add RHEL 7 repo and Satellite Tools repo
3. check if the repos are enabled by default (RHEL: yes, Sat Tools: no)
4. Kickstart a new system
5. Check if Katello and Puppet Agent get installed

Actual results:
Katello and Puppet Agent are not installed

Expected results:
The Satellite Tools repo should be enabled by default.

Comment 1 Mike McCune 2016-04-28 14:00:33 UTC
This was removed in this bug here:

https://bugzilla.redhat.com/show_bug.cgi?id=1255012

but this will cause significant regressions for existing customers who rely on this snippet to enable sat-tools repos.

We need to handle this painful situation as users are relying on this for the provisioning workflow.

Comment 4 Kedar Bidarkar 2016-05-30 11:59:27 UTC
We now have this back in subscription_manager_registration.

VERIFIED with sat62-snap(GA)-13.1

Comment 5 Bryan Kearney 2016-07-27 11:31:27 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-2016:1501