From 4c85e8d61762d35ac2d3f6a95cbe5660ad145dbb Mon Sep 17 00:00:00 2001 From: Julien Leduc <julien.leduc@cern.ch> Date: Tue, 8 Mar 2022 10:22:19 +0100 Subject: [PATCH] Resolve "FIX EOS systemd CI workflow" --- .../docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh index f45548906e..dd69b4d331 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh @@ -190,6 +190,16 @@ else ${XRDPROG} -n fst -c /etc/xrd.cf.fst -l /var/log/eos/xrdlog.fst -b -Rdaemon fi +# EOS service is starting for the first time we need to check if it is ready before +# feeding the eos server with commands +echo -n "Waiting for eos to be online before going further" +for ((i=0;i<60;i++)); do + eos version 2>&1 >/dev/null && break + sleep 1 + echo -n . +done +eos version 2>&1 >/dev/null && echo OK || exit 1 + if [ "-${CI_CONTEXT}-" == '-systemd-' ]; then if eos ns | grep 'In-flight FileMD' && eos ns | grep 'In-flight ContainerMD'; then echo 'The EOS namespace backend is QuarkDB' -- GitLab