Skip to content
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

[healthy check] To check if logging of xcatd is still alive #5131

Closed
robin2008 opened this issue Apr 23, 2018 · 4 comments
Closed

[healthy check] To check if logging of xcatd is still alive #5131

robin2008 opened this issue Apr 23, 2018 · 4 comments

Comments

@robin2008
Copy link
Member

robin2008 commented Apr 23, 2018

xcatd depends on syslog to log its log message and using rsyslog into /var/log/xcat/cluster.log

Some upgrade will change rsyslog configuration, and also user might customize rsyslog by wrong, it is required to have some kinds of capability to check it. (like xcatprobe)

And it is recommended to run it after upgrade, or put xcatprobe mn into cron for check the health periodically.

For xCAT installation/upgrade testcase, it is required to run it to make sure the default is functional.

@robin2008
Copy link
Member Author

Below is suggested way:
- checking the service status (rsyslog, journald)
- issuing a checking log and to see if it could be seen in /var/log/xcat/cluster.log*

For service nodes, there might be more special when customize the node attributes.

@xuweibj xuweibj self-assigned this Apr 26, 2018
@xuweibj
Copy link

xuweibj commented Apr 26, 2018

Check items:

  1. rsyslog service: service rsyslog status | systemctl status rsyslog.service
  2. Try to add log logger -p local4.debug -t xcat 'xcatprobe rsyslog checking', check whether in /var/log/xcat/cluster.log*

@robin2008
Copy link
Member Author

verified on Version 2.14.1 (git commit bed114d6b9779d48ba37447deb7842ec954e808e, built Tue May 22 06:15:46 EDT 2018)

    Checking rsyslog service is configured...                                                                     [FAIL]
        rsyslog service is not running! Please check on current node
    Checking xCAT log is stored in /var/log/xcat/cluster.log...                                                   [WARN]
        Failed to store MN logs to /var/log/xcat/cluster.log

@whowutwut
Copy link
Member

whowutwut commented May 30, 2018

For completeness this check has been added to xcatprobe xcatmn command option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants