Commit 767074af authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[recycle tape files] Added CI test for in Repack to test the recycle tapefiles

parent f1a93b25
...@@ -209,6 +209,19 @@ then ...@@ -209,6 +209,19 @@ then
{ echo -e $header; echo $destinationInfos | jq -r ".[] | [(.vid),(.files),(.bytes)] | @tsv"; } | column -t { echo -e $header; echo $destinationInfos | jq -r ".[] | [(.vid),(.files),(.bytes)] | @tsv"; } | column -t
fi fi
amountArchivedFiles=`admin_cta --json repack ls --vid ${VID_TO_REPACK} | jq -r ". [0] | .archivedFiles"`
amountRecyleTapeFiles=`admin_cta --json recycletf ls --vid ${VID_TO_REPACK} | jq "length"`
echo "Amount of archived files = $amountArchivedFiles"
echo "Amount of recycled tape files = $amountRecyleTapeFiles"
if [[ $amountArchivedFiles -eq $amountRecyleTapeFiles ]]
then
echo "The amount of archived files is equal to the amount of recycled tape files. Test OK"
else
echo "The amount of archived files is not equal to the amount of recycled tape files. Test FAILED"
exit 1
fi
echo echo
echo "Repack request on VID ${VID_TO_REPACK} succeeded." echo "Repack request on VID ${VID_TO_REPACK} succeeded."
echo echo
......
...@@ -38,15 +38,14 @@ kubectl -n ${NAMESPACE} cp client_prepare_file.sh client:/root/client_prepare_fi ...@@ -38,15 +38,14 @@ kubectl -n ${NAMESPACE} cp client_prepare_file.sh client:/root/client_prepare_fi
archiveFiles() { archiveFiles() {
NB_FILES=$1 NB_FILES=$1
FILE_SIZE_KB=$2 FILE_SIZE_KB=$2
echo "Launching client_ar.sh on client pod"
echo " Archiving ${NB_FILES} files of ${FILE_SIZE_KB}kB each"
echo " Archiving files: xrdcp as user1"
kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n ${NB_FILES} -s ${FILE_SIZE_KB} -p 100 -d /eos/ctaeos/preprod -v -A || exit 1 kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n ${NB_FILES} -s ${FILE_SIZE_KB} -p 100 -d /eos/ctaeos/preprod -v -A || exit 1
} }
echo echo
echo "Launching client_ar.sh on client pod"
echo " Archiving ${NB_FILES} files of ${FILE_SIZE_KB}kB each"
echo " Archiving files: xrdcp as user1"
kubectl -n ${NAMESPACE} cp client_ar.sh client:/root/client_ar.sh kubectl -n ${NAMESPACE} cp client_ar.sh client:/root/client_ar.sh
archiveFiles 1 15
REPACK_BUFFER_URL=/eos/ctaeos/repack REPACK_BUFFER_URL=/eos/ctaeos/repack
echo "Creating the repack buffer URL directory (${REPACK_BUFFER_URL})" echo "Creating the repack buffer URL directory (${REPACK_BUFFER_URL})"
...@@ -569,6 +568,7 @@ repackTapeRepairNoRecall() { ...@@ -569,6 +568,7 @@ repackTapeRepairNoRecall() {
} }
#Execution of each tests #Execution of each tests
archiveFiles 1 15
roundTripRepack 1 roundTripRepack 1
repackDisableTape 2 repackDisableTape 2
archiveFiles 1152 15 archiveFiles 1152 15
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment