Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. As an admin, I should be able to set PBS logging via syslog so that all daemons log into the same file.

2.  As an admin, I should be able to control log events level of the PBS logging.

3.  As an admin, I should be able to set the logging via syslog for all nodes in the cluster

4.  As an admin, I should be able to set the logging via syslog for all servers in a failover environment.

5. As a admin I should be able to have logging into both local daemons and Syslog enabled together

6.  As an admin/user, I should be able to run tracejob for a specific job with Syslog.
Note- This functionality is not currently given by PBS. This is added here because it is nice enhancement for future use.

7.  As an admin/user, I should be able to differentiate log messages from each daemon.

8. As an admin/user, I should be able to set logging via syslog for only a particular daemon (Server, Mom, Sched or Comm). 



Design


For adding syslog support in PTL we will have to make changes in two files-  pbs_logutils.py and pbs_testlib.py. The design for adding syslog matching is been written so that there minimal changes for existing functionality. The same log_match() functions for each class (Server, MoM, Sched and Comm) are been used with changes to read into syslog. For example to check server messages that go into syslog we will have the same method server.log_match()

PTL will read into syslog in these cases-

1) syslog parameter is set in log_match() function

2) PBS_SYSLOG is set in pbs.conf. This case is for running the existing PTL tests which do not have syslog parameter in log_match().



We should make sure that the user running the tests will  have permissions to read syslog file and decompress it. For eg - in test bed machine pbsroot shoud be able to read from syslog file. 


For adding syslog support in PTL we will have to make changes in two files-  pbs_logutils.py and pbs_testlib.py. 

A new class syslog_utils is to be added for reading the date and syslog , syslog file path and the logic for which log messages file pathto check. 



———————syslog_utils.py——————

...

         return _log_match(syslog=0)

      elif x==3 

         // how to check here?????? Recursion??_log_match(syslog=1) 

        syslog_ return = _log_match(syslog=10)

        if syslog_return:

...