Bug 754488

Summary: Machine is not able to update package profile
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: APIAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kbidarka, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:06:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    

Description Lukas Zapletal 2011-11-16 16:46:05 UTC
Fedora 15, latest RPM, create an environment, activation key, then:

subscription-manager register --org=org_rhsm_47a5826 --activationkey=ak1_47a5826 --force

Log:

Request is unauthenticated_api for 127.0.0.1
Completed 401 Unauthorized in 0ms

Comment 1 Lukas Zapletal 2011-11-16 17:30:32 UTC
It is failing in the warden.rb on the line:

return fail('No ssl client certificate, skipping ssl-certificate authentication') if ssl_client_cert.blank?

We obviously DO NOT log anything to the log. This was HARD to track. Lot some time on it. Okay, fix is coming on Monday.

Comment 2 Lukas Zapletal 2011-11-16 17:37:43 UTC
Oh my ... Tomas already fixed that and provided patch for RHSM. Good work then.

Comment 3 Lukas Zapletal 2011-11-16 17:38:41 UTC
http://git.fedorahosted.org/git/?p=subscription-manager.git;a=commitdiff;h=ccf246a94db5aa2c45ff06e6dbc0066dff6a2cb5

I will change logging so warden will log this in a better way to save time.

Comment 4 Kedar Bidarkar 2011-11-23 09:36:41 UTC
[root@xxx ca]# subscription-manager register --activationkey
140_activation_keys --org ACME_Corporation
The system has been registered with id: 8f8c163a-e2e7-4040-8fdb-8dc24c6bf5f7 

There was no need to pass auth info while registering.

root@xxx ~]# rpm -qav | grep -i subscription-manager
subscription-manager-0.98.3-1.fc15.x86_64


Successfully registers the client machine using the activation keys.