Bugzilla – Bug 3772
Problem parsing certain PBS scheduler logs
Last modified: 2005-10-27 15:32:01
You need to log in before you can comment on or make changes to this bug.
From a thread on discuss@globus.org: On Wed, 2005-09-21 at 12:54, Antonio Frog wrote: > -bash-3.00$ tail -13 > /usr/spool/PBS/server_logs/20050905 > 09/05/2005 23:44:53:754026;0100;PBS_Server;Req;;Type > 58 request received from > Scheduler@wlab1.ce.uniroma2.it, sock=9 > 09/05/2005 23:44:53:759910;0100;PBS_Server;Req;;Type > 20 request received from > Scheduler@wlab1.ce.uniroma2.it, sock=9 Well, the problem is that the format of your log file does not match what SEG expects: o the time stamps in your log file have the format 09/05/2005 23:44:53:754026 o SEG expects 09/05/2005 23:44:53 What version of PBS are you using? The 754026 that comes fter the seconds value is creating problems for SEG. Gabriel ------------------------------------------------- Proposed solution follows: ------------------------------------------------- On Wed, 2005-09-21 at 14:49, Gabriel Mateescu wrote: > On Wed, 2005-09-21 at 14:18, Antonio Frog wrote: > > AZZ....I've a problem, I haven't installed PBS, it is > > owned by another user and i don't think that i can > > replace it with another version..... > > there is a way to solve the problem without change PBS > > configuration???? > > if it isn't what I have to do ??? (I ask to the other > > user if i can do it).... > > > If you can not touch PBS, then the alternative > is to modify seg_pbs_module.c to discard the > extraneous stuff from the log file's time stamps. > After looking at the code, I think that this patch should be applied to seg_pbs_module.c $ diff -u seg_pbs_module.c.~1.5.~ seg_pbs_module.c --- seg_pbs_module.c.~1.5.~ 2005-04-20 11:49:08.000000000 -0400 +++ seg_pbs_module.c 2005-09-21 15:22:22.000000000 -0400 @@ -825,7 +825,7 @@ rp = strptime(fields[0], "%m/%d/%Y %H:%M:%S", &tm); - if (rp == NULL || (*rp) != '\0') + if (rp == NULL ) { goto free_fields; } This code will work with both types of format in the log file, so I propose to Peter Lane to incorporate it into CVS. Gabriel
Is this still an issue? I thought this was related to some customized version of pbs? joe
I guess it's up to you whether you want to commit the patch. It makes the module more flexible, but we certainly don't promise support for non-standard schedulers.