Bug 655256 - pulp-client not authenticating with cert after 'consumer create'
Summary: pulp-client not authenticating with cert after 'consumer create'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On: pulp-verified
Blocks: 658162
TreeView+ depends on / blocked
 
Reported: 2010-11-19 23:52 UTC by Mike McCune
Modified: 2013-09-09 16:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
: 658162 (view as bug list)
Environment:
Last Closed: 2011-08-16 14:02:37 UTC
Embargoed:


Attachments (Terms of Use)

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.


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