Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
5c945771
Commit
5c945771
authored
5 years ago
by
Cedric CAFFY
Browse files
Options
Downloads
Patches
Plain Diff
Jqueued command for test if repack request status is complete or failed
parent
897a18f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/tests/repack_systemtest.sh
+2
-2
2 additions, 2 deletions
...nuousintegration/orchestration/tests/repack_systemtest.sh
with
2 additions
and
2 deletions
continuousintegration/orchestration/tests/repack_systemtest.sh
+
2
−
2
View file @
5c945771
...
...
@@ -89,7 +89,7 @@ echo "Launching repack request for VID ${VID_TO_REPACK}, bufferURL = ${FULL_REPA
admin_cta re add
--vid
${
VID_TO_REPACK
}
--justmove
--bufferurl
${
FULL_REPACK_BUFFER_URL
}
SECONDS_PASSED
=
0
while
test
0
=
`
admin_cta repack
ls
--vid
${
VID_TO_REPACK
}
|
grep
-E
"Complete|
Failed"
|
wc
-l
`
;
do
while
test
0
=
`
admin_cta
--json
repack
ls
--vid
${
VID_TO_REPACK
}
|
jq
-r
'.[0] | select(.status == "Complete" or .status == "
Failed"
)'
|
wc
-l
`
;
do
echo
"Waiting for repack request on tape
${
VID_TO_REPACK
}
to be complete: Seconds passed =
$SECONDS_PASSED
"
sleep
1
let
SECONDS_PASSED
=
SECONDS_PASSED+1
...
...
@@ -99,7 +99,7 @@ while test 0 = `admin_cta repack ls --vid ${VID_TO_REPACK} | grep -E "Complete|F
exit
1
fi
done
if
test
1
=
`
admin_cta repack
ls
--vid
${
VID_TO_REPACK
}
|
grep
-E
"Failed"
|
wc
-l
`
;
then
if
test
1
=
`
admin_cta
--json
repack
ls
--vid
${
VID_TO_REPACK
}
|
jq
-r
'.[0] | select(.status ==
"Failed"
)'
|
wc
-l
`
;
then
echo
"Repack failed for tape
${
VID_TO_REPACK
}
."
exit
1
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment