[Ovirt-devel] [PATCH]: Fix get_credentials so we don't fill log files

Chris Lalancette clalance at redhat.com
Mon Jun 2 07:50:25 UTC 2008


Hello,
     I was doing some testing on the ovirt backend stuff (i.e. host-status,
taskomatic, etc.), and I noticed that the /var/log/krb5kdc.log file was filling
up very quickly.  I traced it down to the host-status daemon, and in particular,
the fact that it was waking up every 5 seconds and running the get_credentials()
method in dutils.  Every time it does that, two new lines are added to the
krb5kdc.log file.  To fix it, I added a new method to the upstream krb5-auth
binding code called list_cache(), that will list all of the credentials (and
their properties) stored in a cache.  This is the ovirt patch to use that
method; basically we just check to see if we have more than an hour left for
this credential, and if so, we don't renew it.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renew.patch
Type: text/x-patch
Size: 1864 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080602/21dfacca/attachment.bin>


More information about the ovirt-devel mailing list