[Freeipa-devel] [PATCH] catch GSS errors in the cli
Rob Crittenden
rcritten at redhat.com
Wed Apr 8 13:09:08 UTC 2009
Jason Gerard DeRose wrote:
> On Fri, 2009-04-03 at 14:13 -0400, Rob Crittenden wrote:
>> Catch and display GSS errors on the command-line.
>>
>> rob
>
> nack. We should make a PublicError for this. The PublicError base
> class is translatable and can be gracefully returned in an RPC response.
>
> Where is this GSSError being raised?
>
The traceback looks like this, so perhaps catching it in forward like
the xmlrpclib errors is the place to go.
% ipa user-show admin
ipa: ERROR: GSSError: (('Unspecified GSS failure. Minor code may
provide more information', 851968), ('Decrypt integrity check failed',
-1765328353))
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/ipalib/cli.py", line 660, in run
api.Backend.cli.run(argv)
File "/usr/lib/python2.5/site-packages/ipalib/cli.py", line 547, in run
result = self.execute(name, **kw)
File "/usr/lib/python2.5/site-packages/ipalib/backend.py", line 110,
in execute
result = self.Command[_name](*args, **options)
File "/usr/lib/python2.5/site-packages/ipalib/plugable.py", line 408,
in __call__
return self['__call__'](*args, **kw)
File "/usr/lib/python2.5/site-packages/ipalib/frontend.py", line 109,
in __call__
result = self.run(*args, **options)
File "/usr/lib/python2.5/site-packages/ipalib/frontend.py", line 309,
in run
return self.forward(*args, **options)
File "/usr/lib/python2.5/site-packages/ipalib/frontend.py", line 330,
in forward
return self.Backend.xmlclient.forward(self.name, *args, **kw)
File "/usr/lib/python2.5/site-packages/ipalib/rpc.py", line 376, in
forward
response = command(*xml_wrap(params))
File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1179, in request
h = self.make_connection(host)
File "/usr/lib/python2.5/site-packages/ipalib/rpc.py", line 185, in
make_connection
host, extra_headers, x509 = self.get_host_info(host)
File "/usr/lib/python2.5/site-packages/ipalib/rpc.py", line 328, in
get_host_info
raise e
GSSError: (('Unspecified GSS failure. Minor code may provide more
information', 851968), ('Decrypt integrity check failed', -1765328353))
ipa: ERROR: an internal error has occured
More information about the Freeipa-devel
mailing list