From b708881d0c5ff10e4809a9fdf84c66d13b5a0e41 Mon Sep 17 00:00:00 2001 From: Michael Davis <michael.davis@cern.ch> Date: Fri, 2 Feb 2018 09:48:12 +0100 Subject: [PATCH] [kill-bash] CTA Frontend pod waits for eos.sss.keytab to be created --- .../docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh | 9 +++++---- continuousintegration/orchestration/create_instance.sh | 8 +++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh index 18d31d8775..5cce9898bb 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh @@ -11,8 +11,7 @@ yum-config-manager --enable ceph yum -y install cta-frontend cta-debuginfo cta-catalogueutils ceph-common fi -# /etc/cta/cta-frontend-xrootd.conf is now provided by ctafrontend rpm and comes with -# CI ready content +# /etc/cta/cta-frontend-xrootd.conf is now provided by ctafrontend rpm and comes with CI-ready content /opt/run/bin/init_objectstore.sh . /tmp/objectstore-rc.sh @@ -21,7 +20,6 @@ echo "ObjectStore BackendPath $OBJECTSTOREURL" > /etc/cta/cta-frontend.conf echo "Catalogue NumberOfConnections 10" >>/etc/cta/cta-frontend.conf echo "Log URL file:/var/log/cta/cta-frontend.log" >>/etc/cta/cta-frontend.conf - /opt/run/bin/init_database.sh . /tmp/database-rc.sh @@ -30,7 +28,10 @@ echo ${DATABASEURL} >/etc/cta/cta-catalogue.conf # EOS INSTANCE NAME used as username for SSS key EOSINSTANCE=ctaeos -# Wait for the keytab file to be pushed in by the creation script. +# Wait for the keytab files to be pushed in by the creation script +echo -n "Waiting for /etc/cta/eos.sss.keytab" +for ((;;)); do test -e /etc/cta/eos.sss.keytab && break; sleep 1; echo -n .; done +echo OK echo -n "Waiting for /etc/cta/cta-frontend.krb5.keytab" for ((;;)); do test -e /etc/cta/cta-frontend.krb5.keytab && break; sleep 1; echo -n .; done echo OK diff --git a/continuousintegration/orchestration/create_instance.sh b/continuousintegration/orchestration/create_instance.sh index 8831cf786d..880c6b8e18 100755 --- a/continuousintegration/orchestration/create_instance.sh +++ b/continuousintegration/orchestration/create_instance.sh @@ -303,8 +303,14 @@ echo OK # The closew.CTA_retrieve workflow prevents the default workflow from receiving the closew event, as # we don't want to trigger the action of copying the retrived disk file to tape again. The # closew.CTA_retrieve workflow sets the CTA_retrieved_timestamp attribute. +# +# The FQDN can be set as follows: +# CTA_ENDPOINT=ctafrontend.${instance}.svc.cluster.local:10955 +# +# however the simple hostname should be sufficient: +CTA_ENDPOINT=ctafrontend:10955 + echo "Setting workflows in namespace ${instance} pod ctaeos:" -CTA_ENDPOINT=ctafrontend.${instance}.svc.cluster.local:10955 CTA_WF_DIR=/eos/${EOSINSTANCE}/proc/cta/workflow for WORKFLOW in closew.default archived.default sync::prepare.default closew.CTA_retrieve sync::delete.default do -- GitLab