Bug 1331432 - subscription_manager_registration does not enable Satellite tools repo
Summary: subscription_manager_registration does not enable Satellite tools repo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.2.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-28 13:51 UTC by Stefan Meyer
Modified: 2019-09-26 14:36 UTC (History)
5 users (show)

Fixed In Version: rubygem-hammer_cli_foreman-0.5.1.7-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:31:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.