-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Do not comment out rsyslog /var/log/messages on MN #4527
Conversation
Since commit 1219fdd, the rsyslog rule "*.debug /var/log/messages" is no longer added to rsyslog.conf on the MN. However, any rule ending with "/var/log/messages" is still commented out. This leads to xCAT removing all output to /var/log/messages, except for the daemon and ftp facilities that are enabled by /etc/rsyslog.d/xcat-debug.conf! This commit - stops commenting out rules ending with "/var/log/messages" in rsyslog.conf - stops adding adding the comment "#*.debug /var/log/messages" to rsyslog.conf - changes "daemon.debug" to "daemon.=debug" in xcat-debug.conf to avoid duplicate daemon log lines with most Linux distributions' default rsyslog.conf. The 'ftp.* rule in xcat-debug.conf is possibly no longer needed, and will lead to duplicate ftp messages with most distributions, but it is left untouched in this commit.
|
@sebth Thanks for your interest in the xCAT project and your pull request! We appreciate it. Before we are able to accept contributions, we do require a CLA to be signed. You can find the document and instructions here: CLA or CCLA (corporate).. If you are covered under a corporate CLA, please let us know the company and we will add your ID into the list. Thanks! |
hi @sebth , xCAT ships some log filter rules, such as "xcat-compute.conf" and "xcat-cluster.conf" and "xcat-debug.conf", the logs which pass the filters will go to separate log files to facilitate debug Just as you mentioned, commenting out the log entry for of course, this was just our idea on this, it is open to discuss and determine whether this is reasonable from the user's perspective |
@whowutwut Thanks, I will look into the CLA if the discussion on this PR leads to a commit that would be accepted. @immarvin I think that if xCAT needs to take control over Though I would personally prefer if xCAT did not touch |
@immarvin @neo954 I do agree with @sebth ... Why do we need to touch the main rsyslog config file
In the past we did have some issues during updates and messing with other config in that file, so we now wrap with our own tags to search and replace only between those...
|
@whowutwut, we don't really need to touch And for this change, we still need some extra lines to handle the situation of xCAT migration. For example upgrade from xCAT 2.10 to 2.11, or 2.10 to 2.13. Uncomment the line in
|
i am ok with the change |
Known issue: It is caused that the |
@immarvin Seems like this was merged without a CLA sent to xCAT Team, or i apologize if I missed the email. please let me know. @sebth if possible could you fill out a CLA for a our records.
http://xcat-docs.readthedocs.io/en/stable/developers/license/contributors.html |
@whowutwut I have emailed a signed CLA to 'xcat-legal' just now. |
@sebth Got it, Thank you! I have sent an invite to be part of the xCAT contributor team, you can accept or not, no requirement to do so but just sent it incase. Welcome! |
@whowutwut Thank you! |
Since xCAT 2.11, the rule
*.debug /var/log/messages
is no longer added to rsyslog.conf on the MN, but all pre-existing rules ending with "/var/log/messages" are still commented out. Is this a mistake? I cannot imagine that xCAT is supposed to disable all logging to /var/log/messages (though, it enables the daemon and ftp facilities in the config file/etc/rsyslog.d/xcat-debug.conf
, still leading to a "/var/log/messages" that is missing a lot of messages).This PR has a commit that solves the problem, though I am not sure how to properly solve duplicate messages coming from
/etc/rsyslog.d/xcat-debug.conf
, hence the RFC tag. Still, duplicate messages are better than missing messages!