From 4e4328ca0c5e25f290e90ceb20f8261d789ff304 Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Fri, 16 Mar 2018 15:36:32 +0100
Subject: [PATCH] Add mgmofs.protowfhostport mgmofs.protowfendpoint to MGM
 config before the MGM actually start and fix protowfendpoint: it must begin
 with '/'.

---
 continuousintegration/orchestration/create_instance.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/continuousintegration/orchestration/create_instance.sh b/continuousintegration/orchestration/create_instance.sh
index 87f823fb60..c6eb6a296c 100755
--- a/continuousintegration/orchestration/create_instance.sh
+++ b/continuousintegration/orchestration/create_instance.sh
@@ -270,6 +270,10 @@ kubectl --namespace=${instance} exec ctacli -- kinit -kt /root/ctaadmin1.keytab
 kubectl --namespace=${instance} exec client -- kinit -kt /root/user1.keytab user1@TEST.CTA
 
 
+# Add this for SSI prococol buffer workflow (xrootd >=4.8.2)
+echo "mgmofs.protowfhostport ctafrontend:10955" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
+echo "mgmofs.protowfendpoint /ctafrontend" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
+
 
 # allow eos to start
 kubectl --namespace=${instance} exec ctaeos -- touch /CANSTART
@@ -330,11 +334,6 @@ do
   kubectl --namespace=${instance} exec ctaeos -- bash -c "eos attr set sys.workflow.${WORKFLOW}=\"proto:${CTA_ENDPOINT} ctafrontend\" ${CTA_WF_DIR}"
 done
 
-# Add this for SSI prococol buffer workflow (xrootd >=4.8.2) 
-echo "mgmofs.protowfhostport ${CTA_ENDPOINT}" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
-echo "mgmofs.protowfendpoint ctafrontend" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
-
-
 
 echo -n "Copying eos SSS on ctacli and client pods to allow recalls"
 kubectl --namespace=${instance} exec ctaeos cat /etc/eos.keytab | kubectl --namespace=${instance} exec -i ctacli --  bash -c "cat > /etc/eos.keytab; chmod 600 /etc/eos.keytab"
-- 
GitLab