Skip to content
Snippets Groups Projects
Commit e0566dd2 authored by Michael Davis's avatar Michael Davis
Browse files

[ci] Configures port for gRPC

parent 72d2c76f
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ export KRB5RCACHETYPE=none
# e.g. /etc/sysconfig/xrd.<role>. The role based mechanism allows for
# multiple xrd's running with different options to be controlled via
# the same initd script
XRD_ROLES="mq mgm fst"
# ------------------------------------------------------------------
......@@ -58,3 +57,6 @@ export EOS_FST_DELETE_QUERY_INTERVAL=5
# Tell clients that there is a CTA backend by starting the sitename with "cern_tape_archive_"
XRDSITE=cern_tape_archive_ci
# Port to use for injecting into namespace using gRPC API
EOS_MGM_GRPC_PORT=50051
......@@ -33,7 +33,7 @@ eos.prefix /eos/grpc
eos.endpoint ${EOS_HOSTNAME}:50051
eos.token migrationtesttoken
EOF
echo $EOS_HOSTNAME
echo Migration tools configuration:
cat /etc/cta/castor-migration.conf
if [ "-${CI_CONTEXT}-" == '-nosystemd-' ]; then
......
......@@ -35,6 +35,9 @@ TMPFILE=/tmp/eos-test-inject-sh.$$
CASTOR_PREFIX=$(awk '/^castor.prefix[ ]/ { print $2 }' ${CONFIG_FILE})
EOS_PREFIX=$(awk '/^eos.prefix[ ]/ { print $2 }' ${CONFIG_FILE})
# Ping the gRPC interface
${EOS_TEST_DIR_INJECT} ping || error "gRPC ping failed"
# Create the top-level directory. GNU coreutils "mkdir -p" does not return an error if the directory
# already exists; "eos mkdir -p" does return an error, which we explicitly ignore.
eos mkdir -p ${EOS_PREFIX} 2>/dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment