Bug 760050 - Content couldn't be accessed via thumbslug
Summary: Content couldn't be accessed via thumbslug
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: thumbslug
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: 703617
TreeView+ depends on / blocked
 
Reported: 2011-12-05 11:18 UTC by yu zheng
Modified: 2012-04-27 00:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 00:22:25 UTC


Attachments (Terms of Use)

Description yu zheng 2011-12-05 11:18:15 UTC
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.

Comment 2 Keqin Hong 2011-12-07 12:30:42 UTC
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

Comment 4 Eric Sammons 2011-12-20 17:36:34 UTC
Verified


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