Bug 723227
Summary: | CLI throws a stack trace if no credentials are provided. | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Bryan Kearney <bkearney> |
Component: | katello-agent | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.0 | CC: | lzap, sghai |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 17:50:23 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: | 747354 |
Description
Bryan Kearney
2011-07-19 13:13:02 UTC
b7cea35 723227 - CLI throws a stack trace if no credentials are provided DEMO: $ katello user --help error: Missing credentials and unable to authenticate using Kerberos (more in the log file) the logfile: 2011-07-20 13:48:34,696 [ERROR][MainThread] error() @ base.py:168 - error: 'Missing credentials and unable to authenticate using Kerberos': GSSError(('Unspecified GSS failure. Minor code may provide more information', 851968), ('Server HTTP/lzapx.brq.redhat.com not found in Kerberos database', -1765328377)) 2011-07-20 13:48:34,697 [ERROR][MainThread] error() @ base.py:169 - Traceback (most recent call last): File "/home/lzap/Work/CloudForms/katello/cli/src/katello/client/cli/base.py", line 198, in main self.setup_credentials() File "/home/lzap/Work/CloudForms/katello/cli/src/katello/client/cli/base.py", line 161, in setup_credentials raise KatelloError("Missing credentials and unable to authenticate using Kerberos", e) KatelloError: 'Missing credentials and unable to authenticate using Kerberos': GSSError(('Unspecified GSS failure. Minor code may provide more information', 851968), ('Server HTTP/lzapx.brq.redhat.com not found in Kerberos database', -1765328377)) Verified this in following katello build: [root@dhcp201-207 ~]# rpm -qa | grep katello katello-cli-0.1.4-1.git.63.54683c2.fc15.noarch katello-0.1.64-1.git.0.0b431ff.fc15.noarch [root@dhcp201-207 ~]# In case of no credentials, following error appeared: [root@dhcp201-207 ~]# katello org create --name=test_org error: Missing credentials and unable to authenticate using Kerberos (more in the log file) [root@dhcp201-207 ~]# And tail -f /var/log/katello/client.log says: ============================================== 2011-08-18 15:59:44,017 [ERROR][MainThread] error() @ base.py:174 - 'Missing credentials and unable to authenticate using Kerberos': GSSError(('Unspecified GSS failure. Minor code may provide more information', 851968), ("Credentials cache file '/tmp/krb5cc_0' not found", -1765328189)) 2011-08-18 15:59:44,017 [ERROR][MainThread] error() @ base.py:175 - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/katello/client/cli/base.py", line 216, in main self.setup_credentials() File "/usr/lib/python2.7/site-packages/katello/client/cli/base.py", line 167, in setup_credentials raise KatelloError("Missing credentials and unable to authenticate using Kerberos", e) KatelloError: 'Missing credentials and unable to authenticate using Kerberos': GSSError(('Unspecified GSS failure. Minor code may provide more information', 851968), ("Credentials cache file '/tmp/krb5cc_0' not found", -1765328189)) |