Bug 621850 - Upstream candlepin pool is not available to subscribe after import
Upstream candlepin pool is not available to subscribe after import
Status: CLOSED INSUFFICIENT_DATA
Product: Candlepin
Classification: Community
Component: candlepin (Show other bugs)
0.5
All Linux
low Severity medium
: ---
: ---
Assigned To: Bryan Kearney
wes hayutin
: QA-Closed
Depends On: 622017
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-06 05:51 EDT by spandey
Modified: 2015-05-14 11:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-06 14:50:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
premises catlina.out (1.14 MB, application/octet-stream)
2010-08-06 05:51 EDT, spandey
no flags Details
exported data export.zip (12.45 KB, application/zip)
2010-08-06 05:52 EDT, spandey
no flags Details
catalina.out log 2nd time repro (2.16 MB, application/octet-stream)
2010-08-06 11:11 EDT, spandey
no flags Details

  None (edit)
Description spandey 2010-08-06 05:51:46 EDT
Created attachment 437087 [details]
premises catlina.out

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
100%

Prerequisites:
Candlepin : Candlepin1, om-premises 
Client : RHEL6 with sm version 74 

Steps to repro : 
Register to candlepin1 and subscribe for following entitlement 
 	RHN Provisioning + Management 
	Red Hat Enterprise Linux for HPC Compute Nodes, Basic (Up to 2 Sockets) w/ Web Support

performed export for registered uuid “export.zip”
imported export.zip on premises candlepin using following command 

curl -u admin:admin -k -F export=@export.zip https://10.65.201.190:8443/candlepin/owners/1/import

register to premises candlepin using admin:admin  and executed avail check command 

Expected Result : 
Following pool should available to subscribe after import 

 	RHN Provisioning + Management 
	Red Hat Enterprise Linux for HPC Compute Nodes, Basic (Up to 2 Sockets) w/ Web Support

Actual Result : 
Upstream candlepin pool is not available to subscribe  after import 

[root@sachrhel6 ~]# subscription-manager-cli list --available | grep Name

ProductName:       	RHEL for Physical Servers

ProductName:       	Basic RHEL Server        

ProductName:       	RHEL Workstation         

ProductName:       	RHEL for Physical Servers ,2 Sockets, Standard Support with High

ProductName:       	RHEL for Physical Servers ,2 Sockets, L1-L3, Premium Support

ProductName:       	RHEL for Physical Servers ,4 Sockets, L1-L3, Premium Support

ProductName:       	RHEL for Physical Servers ,2 Sockets, L1-L3, Basic Support

ProductName:       	RHEL for Premium Architectures

ProductName:       	RHEL for Premium Architectures, 16 socket, L1-L3, Standard support


Find attached export.zip and catlinat.out
Comment 1 spandey 2010-08-06 05:52:37 EDT
Created attachment 437088 [details]
exported data export.zip
Comment 2 wes hayutin 2010-08-06 08:07:00 EDT
RHN Provisioning is a tricky product, it does not drop a cert which could be the cause of this bug.

After subscribing to a product from candlepin1, verify a cert has been dropped to /etc/pki/entitlement/products. Once that is verified, run the export/import.

Thank you
Comment 3 spandey 2010-08-06 09:15:50 EDT
Subscribe product via candlepin1

[root@sachrhel6 ~]# subscription-manager-cli subscribe --pool=516 --pool=517 --pool=519

[root@sachrhel6 ~]# ls /etc/pki/entitlement/product/

1351.pem  1352.pem  1353.pem



my steps
subscription-manager-cli register --username tmgedp --password redhat --type candlepin
subscription-manager-cli subscribe --pool=516 --pool=517 --pool=519

ls /etc/pki/entitlement/product/

curl -k -u candlepin_system_admin:admin https://candlepin1.devlab.phx1.redhat.com:443/candlepin/consumers/b6646f89-ad3b-47d6-a74c-305131b6b4e7/export > export.zip

scp ca.crt 10.65.201.190:/etc/candlepin/certs/candlepin-upstream-ca.crt

curl -u admin:admin -k -F export=@export.zip https://10.65.201.190:8443/candlepin/owners/1/import

subscription-manager-cli register --username admin --password admin

subscription-manager-cli list --available
Comment 4 wes hayutin 2010-08-06 09:43:34 EDT
need the out put of the above commands please.. and attach the logs.
Comment 5 spandey 2010-08-06 11:11:32 EDT
Created attachment 437177 [details]
catalina.out log 2nd time repro
Comment 6 spandey 2010-08-06 11:12:33 EDT
[root@sachrhel6 ~]# subscription-manager-cli list --available | grep Name
ProductName:       	RHEL for Physical Servers
ProductName:       	Basic RHEL Server        
ProductName:       	RHEL Workstation         
ProductName:       	RHEL for Physical Servers ,2 Sockets, Standard Support with High
ProductName:       	RHEL for Physical Servers ,2 Sockets, L1-L3, Premium Support
ProductName:       	RHEL for Physical Servers ,4 Sockets, L1-L3, Premium Support
ProductName:       	RHEL for Physical Servers ,2 Sockets, L1-L3, Basic Support
ProductName:       	RHEL for Premium Architectures
Comment 7 wes hayutin 2010-08-06 14:50:11 EDT
I was unable to recreate the particular trace you are seeing in your catalina.out
However, during the recreate we have found a bug... Closing this bug and opening a different one. I will reference the issue.

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