[Freeipa-devel] [PATCH] 884 migration context and logging

Rob Crittenden rcritten at redhat.com
Mon Oct 3 20:44:18 UTC 2011


Martin Kosek wrote:
> On Mon, 2011-09-26 at 22:24 -0400, Rob Crittenden wrote:
>> We can't assume that there will be only one naming context. Look at each
>> one until we find an IPA one.
>>
>> Add logging so you can know that a migration attempt fails and why.
>>
>> rob
>
> Looks good, its just difficult to set up a proper environment for
> reproduction. So far, I found just this problem:
>
> [Tue Sep 27 10:30:39 2011] [error] [client 10.34.25.52] mod_wsgi (pid=32705): Exception occurred processing WSGI script '/usr/share/ipa/migration/migration.py'.
> [Tue Sep 27 10:30:40 2011] [error] [client 10.34.25.52] Traceback (most recent call last):
> [Tue Sep 27 10:30:40 2011] [error] [client 10.34.25.52]   File "/usr/share/ipa/migration/migration.py", line 127, in application
> [Tue Sep 27 10:30:40 2011] [error] [client 10.34.25.52]     bind(form_data['username'].value, form_data['password'].value)
> [Tue Sep 27 10:30:40 2011] [error] [client 10.34.25.52]   File "/usr/share/ipa/migration/migration.py", line 107, in bind
> [Tue Sep 27 10:30:40 2011] [error] [client 10.34.25.52]     logging.error('migration bind failed: %s' % convert_exception(e))
>
> Martin
>

Just missed saving the exception as a variable, should work now.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-884-2-migration.patch
Type: text/x-patch
Size: 4505 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111003/c9759f54/attachment.bin>


More information about the Freeipa-devel mailing list