Bug 1111370

Summary: Activation key - Overriding defaults for enabling/disabling repos does not work
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Subscription ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED NOTABUG QA Contact: sthirugn <sthirugn>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: sudo
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-20 17:04:25 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 sthirugn@redhat.com 2014-06-19 21:16:07 UTC
Description of problem:
Activation key - Overriding defaults for enabling/disabling repos does not work

Version-Release number of selected component (if applicable):
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.18-1.el6sat.noarch
* foreman-compute-1.6.0.18-1.el6sat.noarch
* foreman-gce-1.6.0.18-1.el6sat.noarch
* foreman-libvirt-1.6.0.18-1.el6sat.noarch
* foreman-ovirt-1.6.0.18-1.el6sat.noarch
* foreman-postgresql-1.6.0.18-1.el6sat.noarch
* foreman-proxy-1.6.0.8-1.el6sat.noarch
* foreman-selinux-1.6.0-4.el6sat.noarch
* foreman-vmware-1.6.0.18-1.el6sat.noarch
* katello-1.5.0-26.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.5-1.el6sat.noarch
* katello-installer-0.0.49-1.el6sat.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* openldap-devel-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.21.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.21.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.21.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.21.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.21.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.21.beta.el6sat.noarch
* pulp-server-2.4.0-0.21.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Upload a red hat manifest to sat6
2. Also create a custom product with custom repo
3. Enable repositories, sync them
4. Create content view and promote to appropriate environments
5. Create activation key and add both rhel products
6. Go to activation key -> Product content tab
7. Assuming that the rhel repo and the custom repo show "Defaults to Yes". Change them to "Override to No". Click Save.
8. Now register/subscribe a client using the activation key

Actual results:
The repos are enabled by default in the client side.

# subscription-manager register --org="ACME_Corporation" --activationkey='ack2' 
The system has been registered with ID: f3e71fb1-25be-4287-99cb-8b8f2f1359c9 

# yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
ACME_Corporation_testproduct_testrepo            | 2.1 kB     00:00     
rhel-6-server-rpms                             | 2.5 kB     00:00     
repo id                             repo name                   status
ACME_Corporation_testproduct_testrepo testrepo                        235
rhel-6-server-rpms                  Red Hat Enterprise Linux 6  12,607
repolist: 12,842


Expected results:
The client should have the repos disabled because of the override setting in activation key.

Additional info:

Comment 2 sthirugn@redhat.com 2014-06-20 17:04:25 UTC
This is not a bug.

I had subscription-manager-1.9.11-1.el6.x86_64 in my rhel 6.5 client.  We have a note in activation keys page saying "Below are the repository content sets currently available for this activation key through its subscriptions. For Red Hat subscriptions, additional content can be made available through the Red Hat Repositories page. Changing default settings for content hosts that register with this activation key requires subscription-manager version 1.10 or newer to be installed on that host. "

I upgrade my subscription-manager from http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-6Server/x86_64/.

After upgrade, my repo enable/disable override feature started working fine - Closing the bug as user error.

Comment 3 Magnus Glantz 2015-03-14 23:14:33 UTC
Not a bug?

You release subscription-manager version 1.9.11 in the 6.5 kickstart repository in Satellite 6. Do you mean that you do not support activating optional repositories using activation keys for releases that are <= RHEL 6.5?