Bug 689554

Summary: client consumer create causes invalid cert error without a cert
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED DUPLICATE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-21 20:17:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pradeep Kilambi 2011-03-21 18:58:16 UTC
If there are no existing consumers on the client and try to create a consumer without user/pass it sends a request to the server with empty cert/key instead of username/password

$ sudo pulp-client consumer create --id=testcon
warning: this client is not registered; please register to continue
error: operation failed: Invalid SSL Certificate

$ sudo pulp-client consumer create --id=testcon
warning: this client is not registered; please register to continue
error: operation failed: Invalid SSL Certificate

$ sudo pulp-client -u prad -p redhat consumer create --id=testcon
warning: this client is not registered; please register to continue
Successfully created consumer [ testcon ]

If a cert/key is not found, the consumer create should exit if username/password is not present saying

"Error: no consumer certificate and key found; please specify username and password to create a consumer" 

or something on similar lines..

Comment 1 Preethi Thomas 2011-03-21 20:17:41 UTC

*** This bug has been marked as a duplicate of bug 679443 ***