Skip to content
Snippets Groups Projects
Commit 524ec0a8 authored by Julien Leduc's avatar Julien Leduc
Browse files

saving containers logs as artifacts for orchestration debug purposes

parent 501e25ac
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,9 @@ archiveretrieve:
script:
- export NAMESPACE="archiveretrieve-${CTA_BUILD_ID}-$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1)"
- cd continuousintegration/orchestration/; ./run_systemtest.sh -s tests/systest.sh
artifacts:
paths:
- pod_logs
tags:
- kubernetes
- mhvtl
......@@ -27,6 +27,12 @@ if [ ! -z "${error}" ]; then
exit 1
fi
echo "Getting stdout logs of pods"
mkdir -p ../../pod_logs/${instance}
for podcontainer in "init -c ctainit" "ctacli -c ctacli" "ctaeos -c mgm" "ctafrontend -c ctafrontend" "kdc -c kdc" "tpsrv -c taped" "tpsrv -c rmcd"; do
kubectl --namespace ${instance} logs ${podcontainer} > ../../pod_logs/${instance}/$(echo ${podcontainer} | sed -e 's/ -c /-/').log
done
echo "Deleting ${instance} instance"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment