Skip to content
Snippets Groups Projects
Commit 186bc4f5 authored by Michael Davis's avatar Michael Davis
Browse files

[ci] Configure migration tools in client pod

parent 0f2206e7
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,12 @@ if [ ! -e /etc/buildtreeRunner ]; then
yum-config-manager --enable ceph
# Install missing RPMs
yum -y install cta-cli cta-debuginfo xrootd-client eos-client jq
yum -y install cta-cli cta-debuginfo xrootd-client eos-client cta-migration-tools jq
## Keep this temporary fix that may be needed if going to protobuf3-3.5.1 for CTA
# Install eos-protobuf3 separately as eos is OK with protobuf3 but cannot use it..
# Andreas is fixing eos-(client|server) rpms to depend on eos-protobuf3 instead
# yum -y install eos-protobuf3
fi
cat <<EOF > /etc/cta/cta-cli.conf
......@@ -22,6 +21,18 @@ cat <<EOF > /etc/cta/cta-cli.conf
cta.endpoint ctafrontend:10955
EOF
cat <<EOF >/etc/cta/castor-migration.conf
castor.db_login oracle:castor/<password>@castor
castor.json true
castor.max_num_connections 1
castor.batch_size 100
castor.prefix /castor/cern.ch
eos.dry_run false
eos.prefix /eos/grpc
eos.endpoint eoscta:50051
eos.token migrationtesttoken
EOF
if [ "-${CI_CONTEXT}-" == '-nosystemd-' ]; then
# sleep forever but exit immediately when pod is deleted
exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"
......
......@@ -17,7 +17,7 @@ if [ ! -e /etc/buildtreeRunner ]; then
yum-config-manager --enable ceph
# install needed packages
yum -y install cta-objectstore-tools cta-doc mt-st mtx lsscsi sg3_utils cta-catalogueutils ceph-common oracle-instantclient-sqlplus cta-migration-tools
yum -y install cta-objectstore-tools cta-doc mt-st mtx lsscsi sg3_utils cta-catalogueutils ceph-common oracle-instantclient-sqlplus
yum clean packages
fi
......@@ -26,9 +26,6 @@ echo "Using this configuration for library:"
cat /tmp/library-rc.sh
. /tmp/library-rc.sh
echo "Configuring migration tools:"
/opt/run/bin/init_migration_tools.sh
echo "Configuring objectstore:"
/opt/run/bin/init_objectstore.sh
. /tmp/objectstore-rc.sh
......
#!/bin/bash
cat <<EOF >/etc/cta/castor-migration.conf
castor.db_login oracle:castor/<password>@castor
castor.json true
castor.max_num_connections 1
castor.batch_size 100
castor.prefix /castor/cern.ch
eos.dry_run false
eos.prefix /eos/grpc
eos.endpoint eoscta:50051
eos.token migrationtesttoken
EOF
exit 0
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