Commit 076527c5 authored by Julien Leduc's avatar Julien Leduc
Browse files

adding grpc configuration on frontend and mgm

parent afb79b8f
......@@ -344,6 +344,17 @@ fi
# configure preprod directory separately
# configure grpc for cta-admin tf dsk file resolution
if [ -r /etc/config/eoscta/eos.grpc.keytab ]; then
MIGRATION_TOKEN=$(cat /etc/config/eoscta/eos.grpc.keytab | egrep ^$(hostname) | awk '{print $3}')
eos vid add gateway [:1] grpc
eos vid set membership ${MIGRATION_UID} +sudo
eos vid set map -grpc key:${MIGRATION_TOKEN} vuid:${MIGRATION_UID} vgid:${MIGRATION_UID}
# configuration for migration tools
cat <<EOF >/etc/cta/castor-migration.conf
castor.db_login oracle:castor/<password>@castor
......@@ -42,6 +42,18 @@ echo OK
echo "Core files are available as $(cat /proc/sys/kernel/core_pattern) so that those are available as artifacts"
# Configuring grpc for cta-admin tapefile disk filename resolution
echo -n "Configuring grpc to ctaeos: "
if [ -r /etc/config/eoscta/eos.grpc.keytab ]; then
cp /etc/config/eoscta/eos.grpc.keytab /etc/cta/eos.grpc.keytab
echo 'cta.ns.config /etc/cta/eos.grpc.keytab' >> /etc/cta/cta-frontend-xrootd.conf
echo 'OK'
echo 'KO'
if [ "-${CI_CONTEXT}-" == '-nosystemd-' ]; then
# systemd is not available
runuser --shell='/bin/bash' --session-command='cd ~cta; xrootd -l /var/log/cta-frontend-xrootd.log -k fifo -n cta -c /etc/cta/cta-frontend-xrootd.conf -I v4' cta
Supports Markdown
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