Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
ed316499
Commit
ed316499
authored
Apr 12, 2019
by
Julien Leduc
Committed by
Eric Cano
Apr 15, 2019
Browse files
Please refer any DNS name with short name as FQDN depends on namespace name.
parent
5037dfda
Changes
1
Hide whitespace changes
Inline
Side-by-side
continuousintegration/orchestration/tests/simple_repack.sh
View file @
ed316499
...
...
@@ -43,13 +43,13 @@ executeRepack() {
echo
"Changing the tape
$1
to FULL status"
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin ta ch
-v
$1
-f
true
echo
"Creating the eos directory to put the retrieve files from the repack request"
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
rm
-rf
root://ctaeos
.cta.svc.cluster.local
//eos/ctaeos/repack
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
rm
-rf
root://ctaeos//eos/ctaeos/repack
kubectl
-n
${
NAMESPACE
}
exec
ctaeos
--
eos
mkdir
/eos/ctaeos/repack
kubectl
-n
${
NAMESPACE
}
exec
ctaeos
--
eos
chmod
1777 /eos/ctaeos/repack
echo
"Removing an eventual previous repack request for tape
$1
"
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin re
rm
-v
$1
echo
"Launching the repack request on tape
$1
"
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin re add
-v
$1
-m
-b
root://ctaeos
.cta.svc.cluster.local
//eos/ctaeos/repack
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin re add
-v
$1
-m
-b
root://ctaeos//eos/ctaeos/repack
SECONDS_PASSED
=
0
while
test
0
=
`
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin re
ls
-v
$1
|
grep
-E
"Complete|Failed"
|
wc
-l
`
;
do
echo
"Waiting for repack request on tape
$1
to be complete: Seconds passed =
$SECONDS_PASSED
"
...
...
@@ -104,4 +104,4 @@ echo
echo
"Summary of the repack requests"
kubectl
-n
${
NAMESPACE
}
exec
ctacli
--
cta-admin re
ls
-h
echo
"End of test simple_repack"
\ No newline at end of file
echo
"End of test simple_repack"
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment