Skip to content
Snippets Groups Projects
Commit 2a1211db authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Marked the tape as full before launching a repack command in the repack_systemtest.sh

parent 3f1b6f74
Branches
Tags
No related merge requests found
......@@ -79,6 +79,9 @@ testRepackBufferURL
echo "Deleting existing repack request for VID ${VID_TO_REPACK}"
admin_cta repack rm --vid ${VID_TO_REPACK}
echo "Marking the tape ${VID_TO_REPACK} as full before Repacking it"
admin_cta tape ch --vid ${VID_TO_REPACK} --full true
echo "State of the tape VID ${VID_TO_REPACK} BEFORE repack"
admin_cta --json tape ls --vid ${VID_TO_REPACK} | jq .
......
......@@ -57,8 +57,6 @@ VID_TO_REPACK=$(getFirstVidContainingFiles)
if [ "$VID_TO_REPACK" != "null" ]
then
echo
echo "Marking the tape ${VID_TO_REPACK} as full"
kubectl -n ${NAMESPACE} exec ctacli -- cta-admin tape ch --vid ${VID_TO_REPACK} -f true
echo "Launching the repack test on VID ${VID_TO_REPACK}"
kubectl -n ${NAMESPACE} exec client -- bash /root/repack_systemtest.sh -v ${VID_TO_REPACK} -b ${REPACK_BUFFER_URL} || exit 1
else
......@@ -73,8 +71,6 @@ VID_TO_REPACK=$(getFirstVidContainingFiles)
if [ "$VID_TO_REPACK" != "null" ]
then
echo
echo "Marking the tape ${VID_TO_REPACK} as full"
kubectl -n ${NAMESPACE} exec ctacli -- cta-admin tape ch --vid ${VID_TO_REPACK} -f true
echo "Launching the repack test on VID ${VID_TO_REPACK}"
kubectl -n ${NAMESPACE} exec client -- bash /root/repack_systemtest.sh -v ${VID_TO_REPACK} -b ${REPACK_BUFFER_URL} || exit 1
else
......@@ -92,8 +88,6 @@ VID_TO_REPACK=$(getFirstVidContainingFiles)
if [ "$VID_TO_REPACK" != "null" ]
then
echo
echo "Marking the tape ${VID_TO_REPACK} as full"
kubectl -n ${NAMESPACE} exec ctacli -- cta-admin ta ch -v ${VID_TO_REPACK} -f true
echo "Launching the repack test on VID ${VID_TO_REPACK}"
kubectl -n ${NAMESPACE} exec client -- bash /root/repack_systemtest.sh -v ${VID_TO_REPACK} -b ${REPACK_BUFFER_URL} || exit 1
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment