From fb32433d45d6562e8d0e9ce8f12f3b8552e4f527 Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Wed, 8 Jan 2020 18:03:02 +0100
Subject: [PATCH] Added 'mgmofs.tapeenabled true' to /etc/xrd.cf.mgm

---
 .../docker/ctafrontend/cc7/config/ctaeos/etc/xrd.cf.mgm        | 3 +++
 .../docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh           | 3 +++
 continuousintegration/orchestration/create_instance.sh         | 1 +
 3 files changed, 7 insertions(+)

diff --git a/continuousintegration/docker/ctafrontend/cc7/config/ctaeos/etc/xrd.cf.mgm b/continuousintegration/docker/ctafrontend/cc7/config/ctaeos/etc/xrd.cf.mgm
index dffa5fbd15..5323c1eabd 100644
--- a/continuousintegration/docker/ctafrontend/cc7/config/ctaeos/etc/xrd.cf.mgm
+++ b/continuousintegration/docker/ctafrontend/cc7/config/ctaeos/etc/xrd.cf.mgm
@@ -72,3 +72,6 @@ mgmofs.protowfresource /ctafrontend
 
 # Set the EOS space to be used as the destination of prepare requests
 mgmofs.prepare.dest.space default
+
+# Enable tape support
+mgmofs.tapeenabled true
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 e5f251d6fe..e192f2c195 100755
--- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
@@ -65,6 +65,9 @@ EOS_TMP_DIR=/eos/${EOS_INSTANCE}/tmp
 echo "mgmofs.protowfendpoint ctafrontend:10955" >> /etc/xrd.cf.mgm
 echo "mgmofs.protowfresource /ctafrontend"  >> /etc/xrd.cf.mgm
 
+# Enable tape support
+echo "mgmofs.tapeenabled true"  >> /etc/xrd.cf.mgm
+
 # Add configmap based configuration (initially Namespace)
 test -f /etc/config/eos/xrd.cf.mgm && cat /etc/config/eos/xrd.cf.mgm >> /etc/xrd.cf.mgm
 
diff --git a/continuousintegration/orchestration/create_instance.sh b/continuousintegration/orchestration/create_instance.sh
index 811f0fd582..6b5152e8bc 100755
--- a/continuousintegration/orchestration/create_instance.sh
+++ b/continuousintegration/orchestration/create_instance.sh
@@ -329,6 +329,7 @@ kubectl --namespace=${instance} exec client -- kinit -kt /root/user1.keytab user
 # Add this for SSI prococol buffer workflow (xrootd >=4.8.2)
 #echo "mgmofs.protowfendpoint ctafrontend:10955" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
 #echo "mgmofs.protowfresource /ctafrontend" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
+#echo "mgmofs.tapeenabled true" | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat >> /etc/xrd.cf.mgm"
 
 
 # allow eos to start
-- 
GitLab