Skip to content
Snippets Groups Projects
Commit 097fb2ce authored by Steven Murray's avatar Steven Murray
Browse files

CI archiveretrieve test now greps /var/log/eos/mgm/xrdlog.mgm for ERROR

parent 55fc4d00
Branches
Tags
No related merge requests found
......@@ -49,4 +49,7 @@ echo " Retrieving them as poweruser1"
kubectl -n ${NAMESPACE} cp client_ar.sh client:/root/client_ar.sh
kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n ${NB_FILES} -s ${FILE_SIZE_KB} -p 10 -d /eos/ctaeos/preprod -v -r || exit 1
kubectl -n ${NAMESPACE} cp grep_xrdlog_mgm_for_error.sh ctaeos:/root/grep_xrdlog_mgm_for_error.sh
kubectl -n ${NAMESPACE} exec ctaeos -- bash /root/grep_xrdlog_mgm_for_error.sh || exit 1
exit 0
#!/bin/sh
EOS_MGM_LOG=/var/log/eos/mgm/xrdlog.mgm
if test -f ${EOS_MGM_LOG}; then
echo "${EOS_MGM_LOG} exists"
else
echo "${EOS_MGM_LOG} does not exist or is not a regular file"
exit 1
fi
echo "Grepping ${EOS_MGM_LOG} for ERROR messages"
if grep -q ERROR ${EOS_MGM_LOG}; then
echo "Found ERROR messages in ${EOS_MGM_LOG}"
exit 1
else
echo "No ERROR messages found in ${EOS_MGM_LOG}"
exit 0
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment