Skip to content

Commit df394d7

Browse files
committed
fix: some simplifications, removed unused functions
1 parent 2f6d147 commit df394d7

File tree

9 files changed

+34
-272
lines changed

9 files changed

+34
-272
lines changed

tests/.dirac-ci-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config:
44
CLIENT_UPLOAD_BASE64: SSBsaWtlIHBpenphIQo=
55
CLIENT_UPLOAD_LFN: LFN:/vo/test_lfn.txt
66
CLIENT_UPLOAD_FILE: test_lfn.txt
7-
PILOT_INSTALLATION_COMMAND: dirac-pilot.py --modules /home/dirac/LocalRepo/ALTERNATIVE_MODULES/DIRAC -M 2 -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --pilotUUID=whatever12345 --cert --certLocation=/home/dirac/PilotInstallDIR/etc/grid-security --CVMFS_locations=/home/dirac/PilotInstallDIR -o diracInstallOnly --wnVO=vo --debug
7+
PILOT_INSTALLATION_COMMAND: dirac-pilot.py --modules /home/dirac/LocalRepo/ALTERNATIVE_MODULES/DIRAC -M 2 -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --pilotUUID=whatever12345 --CVMFS_locations=/home/dirac/ -o diracInstallOnly --wnVO=vo --debug
88
PILOT_JSON: "{
99
\"timestamp\": \"2023-02-13T14:34:26.725499\",
1010
\"CEs\": {

tests/CI/run_pilot.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@ set -x
1111
source CONFIG
1212

1313
# Creating "the worker node"
14-
mkdir -p /home/dirac/PilotInstallDIR/etc/grid-security/certificates
15-
mkdir -p /home/dirac/PilotInstallDIR/etc/grid-security/vomsdir
16-
mkdir -p /home/dirac/PilotInstallDIR/etc/grid-security/vomses
14+
mkdir -p /home/dirac/etc/grid-security/certificates
15+
mkdir -p /home/dirac/etc/grid-security/vomsdir
16+
mkdir -p /home/dirac/etc/grid-security/vomses
1717

18-
cp /ca/certs/pilot.pem /home/dirac/PilotInstallDIR/etc/grid-security/hostcert.pem
19-
cp /ca/certs/pilot.key /home/dirac/PilotInstallDIR/etc/grid-security/hostkey.pem
20-
cp /ca/certs/ca.cert.pem /home/dirac/PilotInstallDIR/etc/grid-security/certificates
18+
cp /ca/certs/ca.cert.pem /home/dirac/etc/grid-security/certificates
19+
touch /home/dirac/etc/grid-security/vomsdir/vomsdir
20+
touch /home/dirac/etc/grid-security/vomses/vomses
2121

22-
touch /home/dirac/PilotInstallDIR/etc/grid-security/vomsdir/vomsdir
23-
touch /home/dirac/PilotInstallDIR/etc/grid-security/vomses/vomses
24-
25-
cd /home/dirac/PilotInstallDIR
22+
# Copy over the pilot proxy
23+
cp /ca/certs/pilot_proxy /tmp/x509up_u$UID
2624

2725
eval "${PILOT_DOWNLOAD_COMMAND}"
2826

2927
echo "${PILOT_JSON}" > pilot.json
28+
jq < pilot.json
3029

3130
if command -v python &> /dev/null; then
3231
py='python'
@@ -36,7 +35,5 @@ elif command -v python2 &> /dev/null; then
3635
py='python2'
3736
fi
3837

39-
more pilot.json | jq
40-
4138
# shellcheck disable=SC2086
4239
$py ${PILOT_INSTALLATION_COMMAND}

tests/Integration/all_integration_pilot_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
echo -e '****************************************'
99
echo -e '********' "workflow tests" '********\n'
1010

11-
source PilotInstallDIR/bashrc
11+
source bashrc
1212

1313
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1414
echo -e "THIS_DIR=${THIS_DIR}" |& tee -a pilotTestOutputs.txt
1515

16-
cp PilotInstallDIR/pilot.cfg "${THIS_DIR}"
17-
cp PilotInstallDIR/pilot.cfg .
16+
cp pilot.cfg "${THIS_DIR}"
17+
cp pilot.cfg .
1818

1919
echo -e "*** $(date -u) Getting a non privileged user\n" |& tee -a pilotTestOutputs.txt
2020
dirac-admin-get-proxy "/C=ch/O=DIRAC/OU=DIRAC CI/CN=ciuser" dirac_user -o /DIRAC/Security/UseServerCertificate=True --cfg pilot.cfg --out=/tmp/x509up_u${UID} -ddd

tests/Jenkins/dirac-cfg-update.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

tests/Jenkins/dirac-refresh-cs.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/Jenkins/dirac_ci.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# === optional environment variables:
2020
#
21-
# WORKSPACE (set by Jenkins, normally. If not there, will be $PWD)
21+
# WORKSPACE (/home/dirac)
2222
# DEBUG (set it to whatever value to turn on debug messages)
2323
#
2424
# DIRAC_RELEASE (for installing a specific release)
@@ -40,8 +40,6 @@
4040
# ~/TestCode
4141
# ~/ServerInstallDIR
4242
# ~/ClientInstallDIR
43-
# ~/PilotInstallDIR
44-
4543

4644
# Def of environment variables:
4745

@@ -67,8 +65,6 @@ mkdir -p "$WORKSPACE/ServerInstallDIR" # Where servers are installed
6765
SERVERINSTALLDIR=${_}
6866
mkdir -p "$WORKSPACE/ClientInstallDIR" # Where clients are installed
6967
CLIENTINSTALLDIR=${_}
70-
mkdir -p "$WORKSPACE/PilotInstallDIR" # Where pilots run
71-
PILOTINSTALLDIR=${_}
7268

7369
# Location of the CFG file to be used (this can be replaced by the extensions)
7470
INSTALL_CFG_FILE="${TESTCODE}/DIRAC/tests/Jenkins/install.cfg"
@@ -407,6 +403,10 @@ fullInstallDIRAC() {
407403

408404
echo "==> Restarting Configuration Server"
409405
dirac-restart-component Configuration Server -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
406+
407+
echo 'Generate a pilot proxy, to be used by the pilot'
408+
dirac-proxy-init -g pilot -C /ca/certs/pilot.pem -K /ca/certs/pilot.key ${DEBUG}
409+
mv /tmp/x509up_u$UID /ca/certs/pilot_proxy
410410
}
411411

412412

tests/Jenkins/install.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LocalInstallation
1212
#LogLevel of the installed components
1313
LogLevel = DEBUG
1414

15-
AdminUserName = adminusername
15+
AdminUserName = ciuser
1616
# DN of the Admin user certificate (default: None )
1717
# In order the find out the DN that needs to be included in the Configuration for a given
1818
# host or user certificate the following command can be used::

0 commit comments

Comments
 (0)