Bug 658613 - Exception when running pulp-admin commands without auth login or -u/-p option
Summary: Exception when running pulp-admin commands without auth login or -u/-p option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-11-30 19:57 UTC by Preethi Thomas
Modified: 2011-08-16 14:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:06 UTC
Embargoed:


Attachments (Terms of Use)

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.


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