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

[kill-bash] CTA Frontend pod waits for eos.sss.keytab to be created

parent 4f080278
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
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