Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 767731 - Clients subscribed to only 1 product when registered with Activation_keys
Summary: Clients subscribed to only 1 product when registered with Activation_keys
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-14 18:46 UTC by Kedar Bidarkar
Modified: 2019-09-26 13:26 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:14:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kedar Bidarkar 2011-12-14 18:46:10 UTC
Description of problem:

While creating activation key via gui, I had added 3 products.

All custom products.

[root@xxx ~]# subscription-manager register --org ACME_Corporation --activationkey 187_activation_keys
The system has been registered with id: 38af96a4-41ca-4a9d-b934-cbcee071d6a0



[root@xxx ~]# cat /etc/yum.repos.d/redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#

[gtalk_plugin]
name = gtalk_plugin
baseurl = https://scalpel.lab.eng.pnq.redhat.com/pulp/repos/ACME_Corporation/$env/custom/gtalk/gtalk_plugin
enabled = 1
gpgcheck = 1
sslverify = 1
sslcacert = /etc/rhsm/ca/candlepin-local.pem
sslclientkey = /etc/pki/entitlement/4833804567824499990-key.pem
sslclientcert = /etc/pki/entitlement/4833804567824499990.pem
Version-Release number of selected component (if applicable):


How reproducible:
Add multiple products/subscriptions to activation keys via gui.


Steps to Reproduce:
1.
2.
3.
  
Actual results:

Only one product repo  ends up in redhat.repo file
Expected results:
All the products added under the applied subscriptions page should be visible or added to the redhat.repo file 

f15 repo and gmusic repo is missing

Additional info:

Comment 1 Lukas Zapletal 2011-12-15 10:41:20 UTC
I can confirm

kk org subscriptions --name ACME_Corporation
-----------------------------------------------------------------------------------------------
                                 Organization's Subscriptions
-----------------------------------------------------------------------------------------------

ProductName:    empty
Consumed:       0
ContractNumber: 
Sla:            
Id:             ff808081344127b80134413309850005
StartDate:      2011/12/15 00:00:00
EndDate:        2041/12/07 00:00:00


ProductName:    zoo
Consumed:       0
ContractNumber: 
Sla:            
Id:             ff808081344127b8013441328f320002
StartDate:      2011/12/15 00:00:00
EndDate:        2041/12/07 00:00:00


ProductName:    Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest)
Consumed:       0
ContractNumber: 2635101
Sla:            
Id:             ff808081343c88a901343c9c94f80019
StartDate:      2011/11/18 05:00:00
EndDate:        2012/11/18 04:59:59


kk activation_key info --name ak
-----------------------------------------------------------------------------------------------
                                      Activation Key Info
-----------------------------------------------------------------------------------------------

Id:                 1
Name:               ak
Description:
    None
Environment Id:     2
System Template Id: None
Pools:
    [ ff808081344127b80134413309850005, ff808081344127b8013441328f320002, ff808081343c88a901343c9c94f80019 ]


subscription-manager register --org ACME_Corporation --activationkey ak --force
The system with UUID aab1d7bd-0959-4a5e-b428-cc4d529bc1ee has been unregistered
The system has been registered with id: 41aa4556-ab45-4293-80dc-f6b8371527d0


cat /etc/yum.repos.d/redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# If this file is empty and this system is subscribed consider 
# a "yum repolist" to refresh available repos
#

[zoo]
name = zoo
baseurl = https://ofed/pulp/repos/ACME_Corporation/$env/custom/zoo/zoo
enabled = 1
gpgcheck = 1
sslverify = 1
sslcacert = /etc/rhsm/ca/candlepin-ca.crt
sslclientkey = /etc/pki/entitlement/1592910903058266338-key.pem
sslclientcert = /etc/pki/entitlement/1592910903058266338.pem

Comment 2 Lukas Zapletal 2011-12-19 17:48:31 UTC
commit 0c0f6f3295c606dc7e3cd9ebc95b4031032c2c72
Refs: katello-configure-0.1.42-1-3-g0c0f6f3
Author:     Lukas Zapletal <lzap+git>
AuthorDate: Fri Dec 16 16:18:17 2011 +0100
Commit:     Lukas Zapletal <lzap+git>
CommitDate: Mon Dec 19 18:42:42 2011 +0100

    ak - subscribing according products

    In AK registration we were subscribing to all subscriptions. From now on, we
    are subscribing to each product and consuming the proper amount of
    entitlements. More info at:

    https://fedorahosted.org/katello/wiki/ActivationKeysDesign

Comment 3 Kedar Bidarkar 2011-12-26 12:39:26 UTC
Now all the product entries are visible in the redhat.repo files

[root@xxxx yum.repos.d]# yum repolist
Loaded plugins: katello, langpacks, presto, product-id, refresh-packagekit, subscription-manager
Updating certificate-based repositories.
1-fed15                                                                                                                                                   | 3.4 kB     00:00     
2-talk-plugin-x86_64                                                                                                                                      | 2.6 kB     00:00     
3-music---x86_64                                                                                                                                          | 2.6 kB     00:00     
repo id                                                          repo name                                                                                                 status
1-fed15                                                          fed15                                                                                                     2,935
2-talk-plugin-x86_64                                             talk plugin x86_64                                                                                            1
3-music---x86_64                                                 music - x86_64                                                                                                1
candlepin                                                        An open source entitlement management system.                                                                 6
fedora-subscription-manager                                      Tools and libraries for Red Hat subscription management.                                                     19
katello                                                          integrates together a series of open source systems management tools                                        110
pulp                                                             Pulp Community Releases                                                                                      20
thumbslug                                                        An open source content proxy                                                                                  3
repolist: 3,095
[root@xxxxxxx yum.repos.d]# cat /etc/yum.repos.d/redhat.repo 
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# If this file is empty and this system is subscribed consider 
# a "yum repolist" to refresh available repos
#

[3-music---x86_64]
name = music - x86_64
baseurl = https://xxxxx.englab.pnq.redhat.com/pulp/repos/ACME_Corporation/$env/custom/music/music_-_x86_64
enabled = 1
gpgcheck = 1
sslverify = 1
sslcacert = /etc/rhsm/ca/candlepin-local.pem
sslclientkey = /etc/pki/entitlement/4053499579070019835-key.pem
sslclientcert = /etc/pki/entitlement/4053499579070019835.pem

[2-talk-plugin-x86_64]
name = talk plugin x86_64
baseurl = https://xxxxx.englab.pnq.redhat.com/pulp/repos/ACME_Corporation/$env/custom/talkplugin/talk_plugin_x86_64
enabled = 1
gpgcheck = 1
sslverify = 1
sslcacert = /etc/rhsm/ca/candlepin-local.pem
sslclientkey = /etc/pki/entitlement/5557542489038748507-key.pem
sslclientcert = /etc/pki/entitlement/5557542489038748507.pem

[1-fed15]
name = fed15
baseurl = https://xxxxx.englab.pnq.redhat.com/pulp/repos/ACME_Corporation/$env/custom/Fedora15/fed15
enabled = 1
gpgcheck = 1
sslverify = 1
sslcacert = /etc/rhsm/ca/candlepin-local.pem
sslclientkey = /etc/pki/entitlement/4109566022924596032-key.pem
sslclientcert = /etc/pki/entitlement/4109566022924596032.pem


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