URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: opened
PR body: """ This PR is supposed to cover a small bit of https://pagure.io/SSSD/sssd/issue/3155 and log to syslog whether the DP is online or offline.
Hopefully by logging this to syslog it'll help admins to find out those issues in a simpler way as nowadays they'd have to enable the logs, search for this info there ... which is not exactly handy. """
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ I've updated the patches with the link to the right pagure issue. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336145164
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ Any taker? """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336817596
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
pbrezina commented: """ It would be nice also to include domain name in the syslog message. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336861424
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ @pbrezina, you mean for covering cases like subdomains?
Because it's already printed with the domain name (as it comes from the domain process). """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336862359
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ Adding "Changes Requested" label per @pbrezina and @jhrozek reviews. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336868229
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
Label: +Changes requested
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ @pbrezina, @jhrozek: Another question is ... is still worh to keep the debug message at SSSDBG_TRACE_FUNC level that is exactly like the one printed in the syslog? """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336870774
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ Answering my own question, IMO doesn't make sense to remove the message as it would not be handy to figure out what's happening just by the logs without those. OTOH, I'll print those only when the state changes. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336873252
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
jhrozek commented: """ Yes, I also prefer to have the message in the debug logs as well. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336883307
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ Okay, I've updated the PR: - rebased atop of master; - changed the static variable to another field in the be_ctx struct; - tested with RHEL-7 and confirmed that SSS_LOG_INFO is enough
@pbrezina, I haven't added the domain in the syslog message as it seems to be redundant (as printing be_ctx->domain->name wouldn't add any new info in the following printed message: `Oct 16 16:58:01 client.debug.fidencio sssd[be[debug.fidencio]][6330]: Backend is offline`)
I've added a comment in the code that has the purpose to remind us to add the domain to those logs whenever we have the backend status per domain. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-336918930
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
Label: -Changes requested
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
pbrezina commented: """ Ack to those patches.
BTW I think we can drop the last patch adding the comment about including domain name in the future. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337161964
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
Label: +Accepted
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ I've pushed a new version of the patchset, just dropping the last patch which added the comment about including domai name in the future, as per @pbrezina's request.
As any other change has been done, I'm keeping the "Accepted" label added by @pbrezina. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337221670
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
lslebodn commented: """ Please explain why do you think that last patch is a good idea "DP: Only print its status in case of change" """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337558588
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
Label: -Accepted
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ @lslebodn: Because I don't see the point of having *a* *lot* of consecutive patches saying "Backend is offline" for instance.
But if you disagree, I can just drop the patch.
Please, as this is something desired for the release on Friday I'd like to ask for a quick answer. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337559207
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ @lslebodn: Because I don't see the point of having *a* *lot* of consecutive messages saying "Backend is offline" for instance.
But if you disagree, I can just drop the patch.
Please, as this is something desired for the release on Friday I'd like to ask for a quick answer. """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337559207
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
lslebodn commented: """ On (18/10/17 04:24), fidencio wrote:
fidencio commented on this pull request.
case DP_ERR_OK:
if (last_dp_state != DP_ERR_OK) {
last_dp_state = DP_ERR_OK;
sss_log(SSS_LOG_INFO, "Backend is online\n");
@lslebodn, you have missed https://github.com/SSSD/sssd/pull/404#issuecomment-336918930
There I've said (and I'm quoting here): "tested with RHEL-7 and confirmed that SSS_LOG_INFO is enough"
This an issue with mixing inline comments with ordinary one.
LS
"""
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337574518
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
lslebodn commented: """ On (18/10/17 04:22), fidencio wrote:
@lslebodn: Because I don't see the point of having *a* *lot* of consecutive patches saying "Backend is offline" for instance.
But if you disagree, I can just drop the patch.
Let's imagine that you will analyze 100MiB file. And you are not sure about state of backend because last change was 17469 lines before.
Tracing debug messages have purpose.
Please, as this is something desired for the release on Friday I'd like to ask for a quick answer.
And I prefer quality instead of half baked features before deadliens (but it is not this case :-)
LS
"""
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337575604
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
fidencio commented: """ On Wed, Oct 18, 2017 at 2:34 PM, lslebodn notifications@github.com wrote:
On (18/10/17 04:22), fidencio wrote:
@lslebodn: Because I don't see the point of having *a* *lot* of
consecutive patches saying "Backend is offline" for instance.
But if you disagree, I can just drop the patch.
Let's imagine that you will analyze 100MiB file. And you are not sure about state of backend because last change was 17469 lines before.
Tracing debug messages have purpose.
Okay, makes sense. Patch has been dropped from the PR.
Please, as this is something desired for the release on Friday I'd like
to ask for a quick answer.
And I prefer quality instead of half baked features before deadliens (but it is not this case :-)
Can you elaborate a bit more in the "but it is not this case" part of sentence?
I'm basically interested to know whether you meant that this PR is an example of a non-quality half-baked feature. So, can you tell me whether that's what you meant?
LS
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SSSD/sssd/pull/404#issuecomment-337575604, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG4emLa8YT72Tpt1m_GRI6WazSwVzqtks5stfBFgaJpZM4P2q30 .
"""
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337577341
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
lslebodn commented: """ On (18/10/17 12:41), fidencio wrote:
And I prefer quality instead of half baked features before deadliens (but it is not this case :-)
Can you elaborate a bit more in the "but it is not this case" part of sentence?
I'm basically interested to know whether you meant that this PR is an example of a non-quality half-baked feature. So, can you tell me whether that's what you meant?
I meant that this PR is not half baked feature. Sorry for confusion.
LS
"""
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337633282
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
lslebodn commented: """ master: * 3542fe821765cad1f25f6c2a077b55fc1d7d0553 * 7f95edc43d9fc410aab5712552e17f28932ba344 """
See the full comment at https://github.com/SSSD/sssd/pull/404#issuecomment-337696661
URL: https://github.com/SSSD/sssd/pull/404 Author: fidencio Title: #404: Log to syslog whether the DP is online or offline Action: closed
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/404/head:pr404 git checkout pr404
URL: https://github.com/SSSD/sssd/pull/404 Title: #404: Log to syslog whether the DP is online or offline
Label: +Pushed
sssd-devel@lists.fedorahosted.org