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
Harbor 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
453b656e
Commit
453b656e
authored
6 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Configuring 1 tape library per tape drive to enable the use of several tape servers with MHVTL
parent
9b802c6d
No related branches found
Branches containing commit
Tags
v0.0-209
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh
+3
-1
3 additions, 1 deletion
...usintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh
continuousintegration/orchestration/tests/prepare_tests.sh
+22
-13
22 additions, 13 deletions
continuousintegration/orchestration/tests/prepare_tests.sh
with
25 additions
and
14 deletions
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh
+
3
−
1
View file @
453b656e
...
...
@@ -18,7 +18,9 @@ cat /tmp/library-rc.sh
ln
-s
/dev/
${
LIBRARYDEVICE
}
/dev/smc
tpconfig
=
"
${
DRIVENAMES
[
${
driveslot
}
]
}
${
LIBRARYNAME
}
/dev/
${
DRIVEDEVICES
[
${
driveslot
}
]
}
smc
${
driveslot
}
"
# tpconfig="${DRIVENAMES[${driveslot}]} ${LIBRARYNAME} /dev/${DRIVEDEVICES[${driveslot}]} smc${driveslot}"
# Configuring one library per tape drive so that mhvtl can work with multiple tapeservers
tpconfig
=
"
${
DRIVENAMES
[
${
driveslot
}
]
}
${
DRIVENAMES
[
${
driveslot
}
]
}
/dev/
${
DRIVEDEVICES
[
${
driveslot
}
]
}
smc
${
driveslot
}
"
/opt/run/bin/init_objectstore.sh
.
/tmp/objectstore-rc.sh
...
...
This diff is collapsed.
Click to expand it.
continuousintegration/orchestration/tests/prepare_tests.sh
+
22
−
13
View file @
453b656e
...
...
@@ -57,11 +57,20 @@ cat ${tempdir}/library-rc.sh
ctacliIP
=
`
kubectl
--namespace
${
NAMESPACE
}
describe pod ctacli |
grep
IP |
sed
-E
's/IP:[[:space:]]+//'
`
# Get list of tape drives that have a tape server
TAPEDRIVES_IN_USE
=()
for
tapeserver
in
$(
kubectl
--namespace
${
NAMESPACE
}
get pods |
grep
tpsrv |
awk
'{print $1}'
)
;
do
TAPEDRIVES_IN_USE+
=(
$(
kubectl
--namespace
${
NAMESPACE
}
exec
${
tapeserver
}
-c
taped
--
cat
/etc/cta/TPCONFIG |
awk
'{print $1}'
)
)
done
NB_TAPEDRIVES_IN_USE
=
${#
TAPEDRIVES_IN_USE
[@]
}
echo
"Preparing CTA configuration for tests"
kubectl
--namespace
${
NAMESPACE
}
exec
ctafrontend
--
cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf
--username
ctaadmin1
-m
"docker cli"
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin logicallibrary add
\
--name
${
LIBRARYNAME
}
\
--comment
"ctasystest"
for
((
i
=
0
;
i<
${#
TAPEDRIVES_IN_USE
[@]
}
;
i++
))
;
do
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin logicallibrary add
\
--name
${
TAPEDRIVES_IN_USE
[
${
i
}
]
}
\
--comment
"ctasystest library mapped to drive
${
TAPEDRIVES_IN_USE
[
${
i
}
]
}
"
done
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin tapepool add
\
--name
ctasystest
\
--vo
vo
\
...
...
@@ -71,16 +80,16 @@ echo "Preparing CTA configuration for tests"
# add all tapes
for
((
i
=
0
;
i<
${#
TAPES
[@]
}
;
i++
))
;
do
VID
=
${
TAPES
[
${
i
}
]
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin tape add
\
--mediatype
mediatype
\
--vendor
vendor
\
--logicallibrary
${
LIBRARYNAME
}
\
--tapepool
ctasystest
\
--capacity
1000000000
\
--comment
"ctasystest"
\
--vid
${
VID
}
\
--disabled
false
\
--full
false
\
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin tape add
\
--mediatype
mediatype
\
--vendor
vendor
\
--logicallibrary
${
TAPEDRIVES_IN_USE
[
${
i
}
%
${
NB_TAPEDRIVES_IN_USE
}
]
}
\
--tapepool
ctasystest
\
--capacity
1000000000
\
--comment
"ctasystest"
\
--vid
${
VID
}
\
--disabled
false
\
--full
false
\
--comment
"ctasystest"
done
kubectl
--namespace
${
NAMESPACE
}
exec
ctacli
--
cta-admin storageclass add
\
...
...
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