<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #3333ff'>I've been watching various logs for the past few minutes, FWIW, I think a more casual message will help people better understand what SSSD is doing. Look at debug level 4, the first instance of a user name look up (getent passwd dlavu) a common command we tell folks to test to see if SSSD is working <br><br><font size="1">(Mon Jun 29 22:10:59 2015) [sssd[be[lab.runlevelone.lan]]] [be_get_account_info] (0x0200): Got request for [0x1001][1][name=dlavu]<br></font><br>Just imagine if you knew nothing about SSSD and how it worked, what can you gather from this line of text? Timestamp, process, domain, get_account_info, got_request and userid and the rest is sort of gibberish and what is the difference between be_get_account_info and got_request_for? I think it's confusing, now looking at some other logs messages. <br><br><font size="1">Jun 29 21:50:37 freeipa named-pkcs11[2101]:&nbsp;&nbsp; validating @0x7f1a1c60cfc0: fedorahosted.org NSEC: no valid signature found<br><br>Jun 29 22:04:15 freeipa puppet-agent[2661]: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.<br><br>[28/Jun/2015:15:45:27 -0400] NSMMReplicationPlugin - agmt="cn=meTofreebeer.lab.runlevelone.lan" (freebeer:389): Replication bind with GSSAPI auth failed: LDAP error -2 (Local error) (SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.&nbsp; Minor code may provide more information (Cannot contact any KDC for realm 'LAB.RUNLEVELONE.LAN'))<br></font><br>The following messages are pretty clear in what they are doing and what the issue is, also some logs have a structure to help readability (not sure if it was intentional or not) but it would be a few short messages, then the long message, something to break it up. I'm not saying we remove any of the logs, but maybe insert more layman descriptions that way people can use them as markers. So they can find the relevant event and look after that message. <br><br>Maybe we format those as a standard syslog message (timestamp,loghost,application,level,message_id,message) and enable it by default? It might help administrators catch errors early and might help because its a little more familiar, I don't think we should roll with systemd just yet. ;) <br><br>Also I'll take a look at the ldap man page and see if I can do anything to make it easier to follow. <br><br>Dan<br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Simo Sorce" &lt;simo@redhat.com&gt;<br><b>To: </b>"Development of the System Security Services Daemon" &lt;sssd-devel@lists.fedorahosted.org&gt;<br><b>Cc: </b>"George Agriogiannis" &lt;gagriogi@redhat.com&gt;, "Dan Lavu" &lt;dlavu@redhat.com&gt;<br><b>Sent: </b>Monday, June 29, 2015 5:53:45 PM<br><b>Subject: </b>Re: [SSSD] RFC: Improving the debug messages<br><br>On Mon, 2015-06-29 at 18:13 +0200, Jakub Hrozek wrote:<br>&gt; Hi,<br>&gt; <br>&gt; I spent many hours debugging SSSD in different scenarios last week and I<br>&gt; admit it wasn't always easy -- and I have the source code knowledge I<br>&gt; can use. I imagine it's considerably harder for users and admins..<br>&gt; <br>&gt; So this is a brainstorm request on how can we make debugging with SSSD<br>&gt; easier. Maybe there are some low-hanging fruits that can be fixed<br>&gt; easily. Off the top of my head:<br>&gt; <br>&gt; - it should be easier to see start and end of a request in the back end.<br>&gt; &nbsp; Instead of:<br>&gt; &nbsp; &nbsp; [be_get_account_info] (0x0200): Got request for [0x1001][1][name=admin]<br>&gt; &nbsp; &nbsp; [acctinfo_callback] (0x0100): Request processed. Returned 0,0,Success (Success)<br>&gt; &nbsp; We could make the debug messages more explicit:<br>&gt; &nbsp; &nbsp; [be_get_account_info] (0x0200): Received request for [object=user][key=name][value=admin]<br>&gt; &nbsp; &nbsp; [acctinfo_callback] (0x0200): Finished request for [object=user][key=name][value=admin]. Returned 0,0,Success<br>&gt; <br>&gt; &nbsp; Then we could document the messages in our troubleshooting document.<br>&gt; &nbsp; Please note I'm not proposing to turn debug messages into any kind of<br>&gt; &nbsp; API and keep them the same forever, but decorate the usual flow with<br>&gt; &nbsp; messages that make sense without source level knowledge.<br>&gt; <br>&gt; - same for authentication<br>&gt; <br>&gt; - same for responder cache requests. We seem to have gotten better with<br>&gt; &nbsp; the new cache_req code there, so this is mostly about using the new<br>&gt; &nbsp; code in all responders. But also the commands we receive from sockets<br>&gt; &nbsp; should be printed in human-readable form.<br>&gt; <br>&gt; - Running sssd in environment where all actions complete successfully<br>&gt; &nbsp; should emit no debug messages. Default log level should be moved to<br>&gt; &nbsp; SSSDBG_OP_FAILURE or CRIT_FAILURE. (This basically amounts to checking<br>&gt; &nbsp; all OP, FATAL and CRIT failure messages..)<br>&gt; <br>&gt; &nbsp; The reason is that sometimes sssd fails, but because logging is<br>&gt; &nbsp; totally silent, we don't know what happened at all. Currently we have<br>&gt; &nbsp; a couple of small bugs where we might print a loud DEBUG message just<br>&gt; &nbsp; because we search for an entry which is not there etc.<br>&gt; <br>&gt; - anything that causes SSSD to fail to start should also emit a syslog<br>&gt; &nbsp; message. Admins don't really know about sssd debug logs.<br>&gt; <br>&gt; - our man pages are not structured well, especially the LDAP man page is<br>&gt; &nbsp; too big and contains too many options.<br>&gt; <br>&gt; One reason I'm bringing this up now is that we'll have a new SSSD developer<br>&gt; starting soon and these might be nice tasks to start with AND they're<br>&gt; also needed.<br><br>+1<br><br>Simo.<br><br>-- <br>Simo Sorce * Red Hat, Inc * New York<br><br>_______________________________________________<br>sssd-devel mailing list<br>sssd-devel@lists.fedorahosted.org<br>https://lists.fedorahosted.org/mailman/listinfo/sssd-devel<br></blockquote><br></div></body></html>