Description of problem: It is not possible to list available subscriptions with older subscription-manager (probably < 0.96), RHE L5.7 and RHEL 6.1 affected. Currently the server hits https://bugzilla.redhat.com/show_bug.cgi?id=1136056 first, but when it is fixed I'm getting: # subscription-manager list --available Access denied The problem is that subscription-manager is requesting wrong URL: "GET /rhsm/pools?consumer=b9b7fd04-609c-4d5c-a382-bc0bdb5b1527 HTTP/1.1" 403 64 "-" "-" Newer version of rhsm is requesting: "GET /rhsm/owners/Default_Organization/pools?consumer=412a6b2a-1627-4157-a378-de4c73f14022 HTTP/1.1" 200 60043 "-" "-" (I was not ask for org during registration) Version-Release number of selected component (if applicable): Satellite 6 6.0.4 Client: RHEL 5.7 subscription-manager-0.95.5.21-1.el5 How reproducible: Always Steps to Reproduce: 1. cold install 5.7 or 6.1 2. install bootstrap RPM from satellite server (http://sat6.example.com/pub/katello-ca-consumer-sat6.example.com-1.0-1.noarch.rpm) 3. subscription-manager register 4. subscription-manager list --available Actual results: Access denied Expected results: List of available subscriptions Additional info:
It is possible to subscribe the system using known pool id.
Created redmine issue http://projects.theforeman.org/issues/7321 from this bug
*** Bug 1136056 has been marked as a duplicate of this bug. ***
Workaround: upgrade to newer subscription-manager
Works in nightly, moving to POST
FAILEDQA: *** This bug is verified in upstream. This fix should eventually land in future downstream builds *** Version Tested: # rpm -qa | grep foreman ruby193-rubygem-foreman_hooks-0.3.7-2.el7.noarch rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410git163c264.git.0.988ca80.el7.noarch ruby193-rubygem-foreman_abrt-0.0.4-1.el7.noarch ruby193-rubygem-foreman_docker-0.2.0-2.el7.noarch ruby193-rubygem-foreman_bootdisk-4.0.2-1.el7.noarch rubygem-hammer_cli_foreman-0.1.3-1.201411121216git9381fc5.el7.noarch hp-dl380pgen8-02-vm-6.lab.bos.redhat.com-foreman-client-1.0-1.noarch foreman-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-ovirt-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch ruby193-rubygem-foreman-tasks-0.6.9-1.el7.noarch ruby193-rubygem-foreman_discovery-1.4.0-2.el7.noarch foreman-postgresql-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-compute-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-gce-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-libvirt-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-vmware-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch foreman-selinux-1.8.0-0.develop.201410280941git10de1c5.el7.noarch foreman-proxy-1.8.0-0.develop.201411121327gitab6edc2.el7.noarch hp-dl380pgen8-02-vm-6.lab.bos.redhat.com-foreman-proxy-1.0-1.noarch foreman-release-1.8.0-0.develop.201411201054gitbe4602e.el7.noarch # rpm -qa | grep subscription-manager subscription-manager-0.95.11-1.el6.x86_64 # rpm -Uvh http://hp-dl380pgen8-02-vm-6.lab.bos.redhat.com/pub/katello-ca-consumer-hp-dl380pgen8-02-vm-6.lab.bos.redhat.com-1.0-1.noarch.rpm Retrieving http://hp-dl380pgen8-02-vm-6.lab.bos.redhat.com/pub/katello-ca-consumer-hp-dl380pgen8-02-vm-6.lab.bos.redhat.com-1.0-1.noarch.rpm Preparing... ########################################### [100%] 1:katello-ca-consumer-hp-########################################### [100%] # subscription-manager register Username: admin Password: User 'admin' did not specify an organization ID and does not have a default organization. # subscription-manager register --org="Default_Organization" Usage: subscription-manager register [OPTIONS] subscription-manager: error: no such option: --org
Tazim, Notice the error: subscription-manager: error: no such option: --org This version of subscription manager does not support orgs or environments. It relies on the Default Organization set for the user, and registers directly to Library. In the current 6.1 build the user now has the default org set for him, but if not you can simply go to Administer > Users > click the user name > Organizations tab > select a default org from the drop down. You would then simply register: subscription-manager register without an org parameter. Moving back on_QA. -Justin
VERIFIED : # rpm -qa | grep foreman foreman-compute-1.7.2.9-1.el6_6sat.noarch ruby193-rubygem-foreman_discovery-2.0.0.6-1.el6_6sat.noarch rubygem-hammer_cli_foreman_discovery-0.0.1.2-1.el6_6sat.noarch foreman-debug-1.7.2.9-1.el6_6sat.noarch rubygem-hammer_cli_foreman_bootdisk-0.1.2.5-1.el6_6sat.noarch foreman-selinux-1.7.2.8-1.el6_6sat.noarch foreman-ovirt-1.7.2.9-1.el6_6sat.noarch foreman-libvirt-1.7.2.9-1.el6_6sat.noarch ruby193-rubygem-foreman-redhat_access-0.0.9-1.el6_6sat.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-client-1.0-1.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch rubygem-hammer_cli_foreman-0.1.4.6-1.el6_6sat.noarch foreman-vmware-1.7.2.9-1.el6_6sat.noarch ruby193-rubygem-foreman_bootdisk-4.0.2.8-1.el6_6sat.noarch foreman-proxy-1.7.2.3-1.el6_6sat.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-1.0-2.noarch rubygem-hammer_cli_foreman_tasks-0.0.3.3-1.el6_6sat.noarch foreman-1.7.2.9-1.el6_6sat.noarch foreman-gce-1.7.2.9-1.el6_6sat.noarch ruby193-rubygem-foreman_hooks-0.3.7-2.el6_6sat.noarch ruby193-rubygem-foreman-tasks-0.6.12.1-1.el6_6sat.noarch ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el6_6sat.noarch foreman-postgresql-1.7.2.9-1.el6_6sat.noarch ruby193-rubygem-foreman_abrt-0.0.5-2.el6_6sat.noarch ruby193-rubygem-foreman_docker-1.2.0.3-1.el6_6sat.noarch $subscription-manager register --org="Default_Organization" --environment="Library" --force Username: admin Password: The system has been registered with ID: ddd5a814-284a-4702-9d9a-80beee1e627a $subscription-manager unregister System has been unregistered.
# subscription-manager list --available No available subscription pools to list
This bug is slated to be released with Satellite 6.1.
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.