Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 723227 - CLI throws a stack trace if no credentials are provided.
Summary: CLI throws a stack trace if no credentials are provided.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-07-19 13:13 UTC by Bryan Kearney
Modified: 2019-09-26 13:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 17:50:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bryan Kearney 2011-07-19 13:13:02 UTC
From the command line, execute the followng command:

./bin/katello org

The kerberos code throws an exception:

[bkearney@bkearney cli]$ ./bin/katello org
Traceback (most recent call last):
  File "./bin/katello", line 136, in <module>
    system_exit(admin.main())
  File "/home/bkearney/code/katello/cli/katello/client/cli/base.py", line 173, in main
    self.setup_credentials()
  File "/home/bkearney/code/katello/cli/katello/client/cli/base.py", line 143, in setup_credentials
    self._server.set_kerberos_auth()
  File "/home/bkearney/code/katello/cli/katello/client/server.py", line 417, in set_kerberos_auth
    _ignore = kerberos.authGSSClientStep(ctx, '')
kerberos.GSSError: (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Ticket expired', -1765328352))

Comment 1 Lukas Zapletal 2011-07-20 11:50:51 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))

Comment 2 Sachin Ghai 2011-08-18 10:40:59 UTC
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))


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