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
4f71dc5f
Commit
4f71dc5f
authored
Jul 24, 2019
by
Michael Davis
Browse files
[migration] Adds scripts/config to cta-migration-tools RPM
parent
44fd91ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
cta.spec.in
View file @
4f71dc5f
...
...
@@ -310,6 +310,8 @@ directory metadata into the EOS namespace.
%attr(0755,root,root) %{_bindir}/eos-test-dir-inject
%attr(0755,root,root) %{_bindir}/eos-test-file-inject
%attr(0755,root,root) %{_bindir}/eos-test-inject.sh
%attr(0755,root,root) %{_bindir}/json-pretty-print.sh
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/castor-migration.conf.example
%package -n cta-rmcd
Summary: The Remote Media Changer daemon (rmcd)
...
...
migration/gRPC/CMakeLists.txt
View file @
4f71dc5f
...
...
@@ -26,23 +26,32 @@ include_directories(${XRD_SSI_PB_DIR}/include ${XROOTD_INCLUDE_DIR} ${XROOTD_INC
add_executable
(
eos-import-dirs EosImportDirs.cpp GrpcClient.cpp
)
target_link_libraries
(
eos-import-dirs EosMigration
${
PROTOBUF3_LIBRARIES
}
${
GRPC_LIBRARY
}
${
GRPC_GRPC++_LIBRARY
}
ctacatalogue
)
set_property
(
TARGET eos-import-dirs APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
set_property
(
TARGET eos-import-dirs APPEND PROPERTY INSTALL_RPATH
${
ORACLE-INSTANTCLIENT_RPATH
}
)
# File import tool
add_executable
(
eos-import-files EosImportFiles.cpp GrpcClient.cpp
)
target_link_libraries
(
eos-import-files EosMigration
${
PROTOBUF3_LIBRARIES
}
${
GRPC_LIBRARY
}
${
GRPC_GRPC++_LIBRARY
}
ctacatalogue
)
set_property
(
TARGET eos-import-files APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
set_property
(
TARGET eos-import-files APPEND PROPERTY INSTALL_RPATH
${
ORACLE-INSTANTCLIENT_RPATH
}
)
# Standalone test tools
add_executable
(
eos-test-dir-inject EosTestDirInject.cpp GrpcClient.cpp
)
target_link_libraries
(
eos-test-dir-inject EosMigration
${
PROTOBUF3_LIBRARIES
}
${
GRPC_LIBRARY
}
${
GRPC_GRPC++_LIBRARY
}
ctacatalogue
)
set_property
(
TARGET eos-test-dir-inject APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
set_property
(
TARGET eos-test-dir-inject APPEND PROPERTY INSTALL_RPATH
${
ORACLE-INSTANTCLIENT_RPATH
}
)
add_executable
(
eos-test-file-inject EosTestFileInject.cpp GrpcClient.cpp
)
target_link_libraries
(
eos-test-file-inject EosMigration
${
PROTOBUF3_LIBRARIES
}
${
GRPC_LIBRARY
}
${
GRPC_GRPC++_LIBRARY
}
ctacatalogue
)
set_property
(
TARGET eos-test-file-inject APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
install
(
TARGETS eos-import-dirs DESTINATION usr/bin
)
install
(
TARGETS eos-import-files DESTINATION usr/bin
)
install
(
TARGETS eos-test-dir-inject DESTINATION usr/bin
)
install
(
TARGETS eos-test-file-inject DESTINATION usr/bin
)
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/migration/gRPC/eos-test-inject.sh DESTINATION usr/bin
)
set_property
(
TARGET eos-test-file-inject APPEND PROPERTY INSTALL_RPATH
${
ORACLE-INSTANTCLIENT_RPATH
}
)
install
(
TARGETS eos-import-dirs
eos-import-files
eos-test-dir-inject
eos-test-file-inject
DESTINATION usr/bin
)
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/migration/gRPC/eos-test-inject.sh
${
CMAKE_SOURCE_DIR
}
/migration/gRPC/json-pretty-print.sh
DESTINATION usr/bin
)
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/migration/gRPC/castor-migration.conf.example
DESTINATION etc/cta
)
migration/gRPC/castor-migration.conf
deleted
100644 → 0
View file @
44fd91ba
#
# Configuration for migration from CASTOR to EOS namespace
#
castor
.
db_login
oracle
:<
USER
>/<
PASSWORD
>@<
DATABASE
>
castor
.
json
false
castor
.
max_num_connections
1
castor
.
batch_size
10000
castor
.
prefix
/
castor
/
cern
.
ch
eos
.
dry_run
false
eos
.
prefix
/
eos
/
grpc
eos
.
endpoint
localhost
:
50051
eos
.
token
helloworld
migration/gRPC/castor-migration.conf.example
0 → 100644
View file @
4f71dc5f
#
# Configuration for migration from CASTOR to EOS namespace
#
# CASTOR options
castor.db_login oracle:<USER>/<PASSWORD>@<DATABASE>
castor.max_num_connections 1
castor.batch_size 10000
castor.prefix /castor/cern.ch # will be stripped from the front of CASTOR paths
# EOS/gRPC options
#
# EOS should be configured with:
# eos vid add gateway [:1] grpc
# eos vid set membership my_uid +sudo
# eos vid set map -grpc key:helloworld vuid:my_uid
eos.prefix /eos/grpc # will be prepended to CASTOR paths when injecting into EOS
eos.endpoint localhost:50051 # EOS gRPC hostname:port
eos.token helloworld # EOS gRPC token (matches key set with "eos vid set map" above)
# Test/debugging options
castor.json false # Put gRPC protobufs on stdout in JSON format
castor.min_depth 1 # Minimum depth of directories to import
castor.max_depth 99999 # Maximum depth of directories to import
eos.dry_run false # Just read DB, don't inject into EOS
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