Commit 05e3cfcd authored by Maarten Litmaath's avatar Maarten Litmaath
Browse files

v1.12:

- README: X509_USER_PROXY and MYPROXY_SERVER to be defined only if needed.
- Made the LCG tests also dependent on MYPROXY_SERVER.
- Fixed the running CE version test for local installations.
parent e1caf12c
......@@ -24,12 +24,14 @@ JALIEN=<JAliEn version>
> Note: MONALISA_HOME would typically be used to specify a `local` installation. The value `install` can be used to have a default version downloaded and configured.
If it is required to run any shell command before starting either of the services, they can be added in `$HOME/.alien/config/CE.env` or `$HOME/.alien/config/ml.env`. Both files should typically contain a command to define the `X509_USER_PROXY` if needed for job submission by the JAliEn CE and which should then be monitored by MonALISA, for example as follows:
If it is required to run any shell command before starting either of the services, they can be added in `$HOME/.alien/config/CE.env` or `$HOME/.alien/config/ml.env`. Both files should typically contain a command to define the `X509_USER_PROXY` **if needed** for job submission by the JAliEn CE and which should then be monitored by MonALISA, for example as follows:
```
export X509_USER_PROXY=$(ls -t /var/lib/vobox/alice/proxy_repository/*lcgadmin | sed q)
export MYPROXY_SERVER=myproxy.cern.ch # only needed for MonALISA
```
> Note: if the JAliEn CE does **not need** an X509 proxy, please ensure those variables are **not defined** for the services, to avoid false alarms in the VObox monitoring tests!
> Note: the JAliEn CE needs to have a valid `VObox token` to be able to submit jobs.
#!/bin/bash
# JAliEn VObox Startup Scripts - CE
# v1.11 - 2021-11-22
# v1.12 - 2021-12-20
# Authors:
# Kalana Dananjaya <kwijethu@cern.ch>
# Costin Grigoras <Costin.Grigoras@cern.ch>
......@@ -58,7 +58,7 @@ function stop_ce() {
# 0 if process is running, else 1
########################################################################################
function get_ce_pid() {
ps uxwww | awk "/[ ]$ceClassName/ { print \$2 }" | grep .
ps fuxwww | awk "/java .*[ ]$ceClassName/ { print \$2 }" | sed '$!d' | grep .
}
########################################################################################
......
#!/usr/bin/perl
###############################################################################
# Script to report the status of VObox credentials etc.
# v1.6 - 2021-10-06
# v1.12 - 2021-12-20
# Authors:
# Maarten Litmaath <Maarten.Litmaath@cern.ch>
###############################################################################
......@@ -200,7 +200,7 @@ sub test1
my $service = "Proxy Renewal";
my $daemon = '/etc/init.d/alice-box-proxyrenewal';
return unless $lcg && -e $daemon;
return unless $lcg && $ENV{MYPROXY_SERVER} && -e $daemon;
my $res = `$daemon status 2>&1` || "Failed to execute $daemon status";
......@@ -246,7 +246,7 @@ sub test5
{
my $service = "Proxy of the machine";
return unless $lcg && -e $renewalProxy;
return unless $lcg && $ENV{MYPROXY_SERVER} && -e $renewalProxy;
my $command = "grid-proxy-info -f $renewalProxy 2> /dev/null";
my ($err, $msg, $timeleft) =
......@@ -265,7 +265,7 @@ sub test6
my $hostcert = '/etc/grid-security/hostcert.pem';
my $left = 0;
return unless $lcg && -e $hostcert;
return unless $lcg && $ENV{MYPROXY_SERVER} && -e $hostcert;
chomp(my $end = `openssl x509 -noout -enddate -in $hostcert`);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment