Skip to content
Snippets Groups Projects
Commit 76e31ccc authored by Jorge Camarero Vera's avatar Jorge Camarero Vera
Browse files

Resolve "CI runner randomly crashing in cta-tape-label"

parent 5ea7213f
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
- cta/CTA#146 - Refactoring of operation tools cmd line parsing
### Building and Packaging
- cta/CTA#107 - Check latest version of gtest suite
### Bug fixes
- cta/CTA#171 - CI runner randomly crashing in cta-tape-label
# v4.7.12-1
......
......@@ -244,10 +244,12 @@ echo "Labeling tapes:"
# add all tapes
for ((i=0; i<${#TAPES[@]}; i++)); do
VID=${TAPES[${i}]}
echo " cta-tape-label --vid ${VID}"
echo " cta-tape-label --vid ${VID} --force"
# for debug use
# kubectl --namespace ${NAMESPACE} exec tpsrv01 -c taped -- cta-tape-label --vid ${VID} --debug
kubectl --namespace ${NAMESPACE} exec tpsrv01 -c taped -- cta-tape-label --vid ${VID}
# The external tape format test leaves data inside of the tape, then the tapes for labeling are not empty between
# tests. That's why we need to force cta-tape-label, but only for CI testing.
kubectl --namespace ${NAMESPACE} exec tpsrv01 -c taped -- cta-tape-label --vid ${VID} --force
if [ $? -ne 0 ]; then
echo "ERROR: failed to label the tape ${VID}"
exit 1
......
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