Bug 658613

Summary: Exception when running pulp-admin commands without auth login or -u/-p option
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jason.dobies
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:02:06 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:    
Bug Blocks: 647488    

Description Preethi Thomas 2010-11-30 19:57:52 UTC
Description of problem:


If you run pulp-admin cli without running auth login first or using -u -p option 

An error with " Expected results:pulp.client.credentials.CredentialError: No valid credentials found " is displayed


[root@kalpana ~]# pulp-admin repo list
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 115, in <module>
    admin.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 99, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 117, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 209, in main
    self.setup_connections()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 48, in setup_connections
    self.pconn = RepoConnection()
  File "/usr/lib/python2.6/site-packages/pulp/client/connection.py", line 151, in __init__
    userid, password, key, crt = credentials.best()
  File "/usr/lib/python2.6/site-packages/pulp/client/credentials.py", line 247, in best
    self.validate(credentials)
  File "/usr/lib/python2.6/site-packages/pulp/client/credentials.py", line 261, in validate
    raise CredentialError, _('No valid credentials found')
pulp.client.credentials.CredentialError: No valid credentials found

Comment 1 Pradeep Kilambi 2010-12-22 19:53:08 UTC
commit 1b3fd282f28a5a324203234137a95953eff2ec27
Author: Pradeep Kilambi <pkilambi>
Date:   Wed Dec 22 14:47:10 2010 -0500

    658613 - catch the credentials error

$ sudo pulp-admin repo list
No valid credentials found

Comment 2 Jay Dobies 2010-12-22 20:56:26 UTC
Fixed in 0.119.

Comment 3 Preethi Thomas 2011-01-04 17:36:09 UTC
verified

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


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

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

pulp-0.0.223-4.