Hide Forgot
Description of problem: After registering to SAM deployed locally and consuming some subscriptions, yum repolist could get 0 pkg from rhel-6-server-rpms repo. Version-Release number of selected component (if applicable): katello-headpin-all-0.1.110-1.el6.noarch thumbslug-0.0.18-1.fc15.noarch How reproducible: always Steps to Reproduce: 1.Edit rhsm.conf hostname = localhost prefix = /headpin/api baseurl = http://localhost:8088 2.Edit provider's baseurl https://cdn.rcm-qa.redhat.com 3.Register to SAM # subscription-manager register --org=ACME_Corporation --environment=env1 --username=admin --password=admin The system has been registered with id: ae006b67-b072-4ce6-b40a-909b60de9fd1 4.List available subscriptions # subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ProductName: Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest) ProductId: RH0197181 PoolId: 00000000340c212c01340c2f4d110040 Quantity: 1 Multi-Entitlement: No Expires: 10/16/2012 MachineType: physical ProductName: Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest) ProductId: RH0197181 PoolId: 00000000340c212c01340c2f4cc10032 Quantity: 1 Multi-Entitlement: No Expires: 10/16/2012 MachineType: physical ProductName: Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest) ProductId: RH0197181 PoolId: 00000000340c212c01340c2f4c2d0024 Quantity: 1 Multi-Entitlement: No Expires: 10/12/2012 MachineType: physical 5.Subscribe # subscription-manager subscribe --pool=00000000340c212c01340c2f4d110040 Successfully subscribed the system to Pool 00000000340c212c01340c2f4d110040 6.Check repos [root@dhcp-0-107 ~]# yum repolist Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. rhel-6-server-rpms | 7 B 00:00 ... http://localhost:8088/ACME_Corporation//content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for rhel-6-server-rpms: Damaged repomd.xml file Trying other mirror. repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 0 repolist: 0 Actual results: Content couldn't be accessed. Expected results: Content should be available via thumbslug.
Still failed with thumbslug-0.0.20. Version-Release number of selected component (if applicable): katello-headpin-all-0.1.112-1.el6.noarch thumbslug-0.0.20-1.el6.noarch Steps to verify: 1.Install SAM. 2.Add a line in /etc/candlepin/candlepin.conf which is: candlepin.auth.oauth.consumer.thumbslug.secret = [THE VALUE] [THE VALUE] is found in /etc/thumbslug/thumbslug.conf candlepin.oauth.secret = [THE VALUE] 3.Restart tomcat6 service. 4.Import a manifest to SAM. 5.Configure subscription-manager of the system where SAM is deployed on. # subscription-manager config --server.hostname=localhost.localdomain --server.prefix="/headpin/api" --server.port=443 --rhsm.baseurl="https://localhost:8088" 6.Register and subscribe. 7.Check available pkgs. # yum repolist Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. https://localhost:8088/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid Trying other mirror. repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 0 repolist: 0 Additional: if using --rhsm.baseurl="http://localhost:8088", then result is: # yum repolist Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. rhel-6-server-rpms | 7 B 00:00 ... http://localhost:8088/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for rhel-6-server-rpms: Damaged repomd.xml file Trying other mirror. repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 0 repolist: 0
Verified