Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.16.0
-
None
Description
Specify the parameter syslog-address as host:port in the ringmaster or hodring sections in a hod configuration file. Run a hod allocation. It fails with error code 5/6. The ringmaster fails to start. No logs are created.
The problem seems to be that we are passing in the syslog-address in a format different from what is expected to the hodLogger object.
Patch attached. Tested by a basic allocation, enabling logging to syslog, ran hadoop wordcount job, checked that messages are getting logged through syslog and finally done a deallocation.
Currently HOD uses syslog cron facility( LOG_CRON, 9 ). So all messages reach syslog under cron facility. Default SysLogLevel is 3 and the format is "(%(process)d) %(levelname)s/%(levelno)s %(module)s:%(lineno)s - %(message)s"