Bug 655256

Summary: pulp-client not authenticating with cert after 'consumer create'
Product: [Retired] Pulp Reporter: Mike McCune <mmccune>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 658162 (view as bug list) Environment:
Last Closed: 2011-08-16 14:02:37 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:
Bug Depends On: 641987    
Bug Blocks: 658162    

Description Mike McCune 2010-11-19 23:52:55 UTC
Two issues when trying to create a new consumer:

1) I have to issue the --server flag twice

2) After successfully creating the consumer I still have to use --username and --password to list repos

$ sudo pulp-client --server=gibson.pdx.redhat.com consumer create --id=gibson
ERROR: The server hostname you have configured in /etc/pulp/client.conf does not match the hostname returned from the Pulp server you are connecting to.  

You have: [localhost] configured but got: [gibson.pdx.redhat.com] from the server.

Please correct the host in the /etc/pulp/client.conf file
$ sudo pulp-client --server=gibson.pdx.redhat.com consumer create --id=gibson
error: operation failed: "Authorization failed. Check your username and password or your certificate"

$ sudo pulp-client --username=admin --password=redhat --server=gibson.pdx.redhat.com consumer create --id=gibson
Successfully created consumer [ gibson ]

$ sudo pulp-client repo list
error: operation failed: "Authorization failed. Check your username and password or your certificate"

$ sudo pulp-client --username=admin --password=admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	f14-x86_64               
....

Comment 1 Pradeep Kilambi 2010-11-23 14:34:02 UTC
fixed!
commit 79462a0bf7cb4f782970b89ceb15f7d74c9c9daa
Author: Pradeep Kilambi <pkilambi>
Date:   Tue Nov 23 09:34:06 2010 -0500

Comment 2 Jay Dobies 2010-11-29 14:16:04 UTC
Fixed in 0.109.

Comment 3 Preethi Thomas 2010-11-29 14:28:16 UTC
Looks like this is fails_qa 

[root@preethi ~]# pulp-client --server=preethi.usersys.redhat.com consumer create --id=preethi.usersys.redhat.com
ERROR: The server hostname you have configured in /etc/pulp/client.conf does not match the
hostname returned from the Pulp server you are connecting to.  

You have: [localhost.localdomain] configured but got: [preethi.usersys.redhat.com] from the server.

Please correct the host in the /etc/pulp/client.conf file
You have new mail in /var/spool/mail/root
[root@preethi ~]# pulp-client --server=preethi.usersys.redhat.com consumer create --id=preethi.usersys.redhat.com
error: operation failed: "Authorization failed. Check your username and password or your certificate"
[root@preethi ~]# pulp-client -u admin -p admin --server=preethi.usersys.redhat.com consumer create --id=preethi.usersys.redhat.com
Successfully created consumer [ preethi.usersys.redhat.com ]


The second part is a pass
[root@preethi ~]# pulp-client repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	f13                      
Name               	f13                      
FeedURL            	http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	3102                     
Files              	0                        
Distributions      	ks-f13-x86_64            
Publish            	True                     
Clones             	[]

Comment 4 Pradeep Kilambi 2010-11-29 14:45:54 UTC
moving back to QA as per discussion on IRC.

Comment 5 Preethi Thomas 2010-11-29 14:51:38 UTC
Verified

Cloned this bug to address the the other issue as per discussion

 https://bugzilla.redhat.com/show_bug.cgi?id=658162

from the above result

The second part is a pass
[root@preethi ~]# pulp-client repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label               f13                      
Name                f13                      
FeedURL            
http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType            yum                      
Arch                x86_64                   
Sync Schedule       None                     
Packages            3102                     
Files               0                        
Distributions       ks-f13-x86_64            
Publish             True                     
Clones              []

Comment 6 Preethi Thomas 2011-08-16 14:02:37 UTC
Closing with Community Release 15

pulp-0.0.223-4.