The change I made to configure_gratia for PBS in RT #2941 has a problem
for PBS. Apparently Chris had an original email somewhere that didn't
make it into that ticket. There is an extra change for the PBS
accounting dir (pbsAcctLogDir). Read our YIM conversation and email for
details.
(16:36:13) Chris Green: configure_gratia appears to be configuring to
the wrong PBS log area.
(16:37:45) Scot Kronenfeld: k, I see. One sec, I'm pulling up the code
(16:37:50) Chris Green: Thx.
(16:38:26) Scot Kronenfeld: ok, it extracts the value from
$VDT_LOCATION/globus/etc/globus-pbs.conf
(16:38:50) Chris Green: Yes, but Gratia needs the server_priv area.
(16:39:18) Scot Kronenfeld: So I get the value from that file, but then
I have to swap server_logs with server_priv?
(16:39:46) Chris Green: ...sec ..
(16:40:34) Chris Green: Yes, for instance ...
(16:41:06) Chris Green: log_path=/var/spool/pbs/server_logs
becomes
/var/spool/pbs/server_priv/accounting/
(16:41:26) Scot Kronenfeld: ok, so is this for both pbs and lsf?
(16:41:39) Scot Kronenfeld: btw, I looked back at the ticket I worked
from, and I have nothing about this.
(16:41:44) Chris Green: No, jut the PBS family (PBS, PBSPro, Torque, etc).
(16:41:49) Chris Green: I
(16:41:52) Scot Kronenfeld: So we need to get this right in this convo,
this is what I'm going on :)
(16:42:03) Chris Green: I'm sure I mentioned it in my original email but
I'm not sure you ever saw it.
(16:42:04) Scot Kronenfeld: It may have been in an email, but the ticket
I worked from didn't have any info about this.
(16:42:27) Chris Green: Let me find the original ... sec (I keep
everything).
(16:43:05) Scot Kronenfeld: ok, so when it's PBS, and not LSF, I can do
approximately the following with your stamp of approval?
$value =~ s|server_logs|server_priv/accounting|
(16:43:29) Chris Green: Yup.
The email in question
Jeff Porter wrote:
> Hi Chris,
>
> I was able to track down the source of my problem with Gratia not
reporting. At some point the urCollector.conf file pointed to the wrong
logs. Both my original (broken because of monalisa) VTB:ce-181 install
AND my next full install had:
>
> pbsAcctLogDir = "/var/spool/torque//server_logs"
>
> While previous VTB/ITB installs correctly have
> pbsAcctLogDir = "/var/spool/pbs/server_priv/accounting"
>
> the torque and pbs differences have no affect as /var/spool/pbs ->
/var/spool/torque. I'm not sure how the change happened but thought I'd
let you know. I'll be doing a new install from the ITB cache later
today and will monitor it.
>
> As a note, you may be aware that the server_logs and the accounting
logs have the exact same naming scheme so the error wasn't obvious to
me. The code parsed the logs and just didn't find any data to send.
>
>
Hi Jeff,
Thanks for the great piece of detective work on this. I've cc'd Scot
Kronenfield who is the one to fix this. Basically, the configure_gratia
script *should* find the right server log area but it is erroneously
configuring the server_logs area rather than the correct server_priv
tree. Scott, I think my original email specifying what to do di mention
this but regardless I would be grateful if you could make sure that
configure_gratia does correctly configure Gratia to look in the
server_priv/accounting area. The reason it always worked before is that
the dumb, no-action default directory just happened to be correct.
Scott, please contact me if you have any questions or problems with this.
Thanks,
Chris.