Bug 1320221

Summary: [RFE] RHEL registration script should disable auto-attach repos
Product: Red Hat OpenStack Reporter: Ian Pilcher <ipilcher>
Component: openstack-tripleo-heat-templatesAssignee: Jiri Stransky <jstransk>
Status: CLOSED WONTFIX QA Contact: Omri Hochman <ohochman>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.0 (Kilo)CC: atelang, dyocum, jcoufal, mburns, mcornea, rhel-osp-director-maint, sclewis, sgordon, vcojot
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 20:41: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:

Description Ian Pilcher 2016-03-22 15:23:28 UTC
When registering with Satellite 6 or the Customer Portal, the RHEL registration script (extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration) should disable any "auto-attached" repositories before enabling the repos listed in the rhel_reg_repos parameter.  I.e., it should do the equivalent of:

# subscription-manager repos --disable=*
# subscription-manager repos --enable=... --enable=...

Currently these repos are left enabled, which can create conflicts when running updates.  For example, I have the following in environment-rhel-registration.yaml:

rhel_reg_repos: "rhel-7-server-rpms,rhel-7-server-extras-rpms,rhel-7-server-rh-common-rpms,rhel-ha-for-rhel-7-server-rpms,rhel-7-server-openstack-7.0-rpms"

But when I use my Red Hat Employee Subscription, I end up with all of these repos enabled on my overcloud nodes:

Repo ID:   rhel-rs-for-rhel-7-server-eus-rpms
Repo ID:   rhel-7-server-extras-rpms
Repo ID:   rhel-7-server-openstack-7.0-rpms
Repo ID:   rhel-sjis-for-rhel-7-server-rpms
Repo ID:   rhel-lb-for-rhel-7-server-htb-rpms
Repo ID:   rhel-sap-hana-for-rhel-7-server-rpms
Repo ID:   rhel-7-server-htb-rpms
Repo ID:   rhel-ha-for-rhel-7-server-eus-rpms
Repo ID:   rhel-sap-for-rhel-7-server-rpms
Repo ID:   rhel-7-server-rt-htb-rpms
Repo ID:   rhel-7-server-eus-rpms
Repo ID:   rhel-rs-for-rhel-7-server-rpms
Repo ID:   rhel-7-server-rpms
Repo ID:   rhel-7-server-rh-common-rpms
Repo ID:   rhel-ha-for-rhel-7-server-rpms
Repo ID:   rhel-ha-for-rhel-7-server-htb-rpms
Repo ID:   rhel-7-server-aus-rpms
Repo ID:   rhel-7-server-rt-rpms
Repo ID:   rhel-rs-for-rhel-7-server-htb-rpms
Repo ID:   rhel-7-server-rt-beta-rpms

Comment 2 Mike Burns 2016-04-07 21:14:44 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 5 Mike Burns 2016-05-03 15:28:50 UTC
*** Bug 1330802 has been marked as a duplicate of this bug. ***

Comment 7 Red Hat Bugzilla Rules Engine 2017-03-13 06:11:29 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 8 Jaromir Coufal 2018-06-26 20:41:11 UTC
This should be fixed, please reopen if it is still an issue.