Hide Forgot
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:
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
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
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