Bug 667168 - pulp commands such as repo list doesn't ask for username/password after you logout with auth logout
Summary: pulp commands such as repo list doesn't ask for username/password after you l...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-04 17:48 UTC by Preethi Thomas
Modified: 2011-08-16 13:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:58:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-01-04 17:48:33 UTC
Description of problem:

[root@preethi ~]# rpm -q pulp
pulp-0.0.119-1.fc14.noarch


If you log out using pulp-admin auth logout

 pulp-admin commands such as repo list, package list etc works without asking for username & password.

I have even manually deleted /root/.pulp

Comment 1 Pradeep Kilambi 2011-01-06 20:49:36 UTC
In order to view repo list you either need to be logged in as admin or you should have a consumer. When you logout, you only remove admin credentials, but you still have consumer in /etc/pki/consumer.

If I remove just admin:

# pulp-admin auth logout
User credentials removed from [/root/.pulp]

# pulp-admin repo list
Label              	bar123                   
Name               	bar123                   
FeedURL            	None                     
FeedType           	None                     
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['A'] 

Now if I remove consumer as well:

# rm -f /etc/pki/consumer/*

# pulp-admin repo list
No valid credentials found


So this is working as designed imo. Moving to QA.

Comment 2 Preethi Thomas 2011-01-07 19:09:54 UTC
verified. I agree with the above comment


[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	/pulp/api/consumers/preethi.usersys.redhat.com/repoids/
Additional info    	{}                       

[root@preethi ~]# pulp-admin auth logout
User credentials removed from [/root/.pulp]

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	feedles                  
Name               	feedless                 
FeedURL            	None                     
FeedType           	None                     
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Label              	local                    
Name               	local                    
FeedURL            	file:///var/www/html/local-repo/
FeedType           	local                    
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	1                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Label              	upload                   
Name               	upload                   
FeedURL            	None                     
FeedType           	None                     
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	2                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


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             	[]                       
Groups             	None                     


[root@preethi ~]# pulp-admin  consumer delete
Successfully deleted consumer [preethi.usersys.redhat.com]

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo list
No valid credentials found
[root@preethi ~]#

Comment 3 Preethi Thomas 2011-08-16 13:58:38 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.