Commit 4f71dc5f authored by Michael Davis's avatar Michael Davis
Browse files

[migration] Adds scripts/config to cta-migration-tools RPM

parent 44fd91ba
...@@ -310,6 +310,8 @@ directory metadata into the EOS namespace. ...@@ -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-dir-inject
%attr(0755,root,root) %{_bindir}/eos-test-file-inject %attr(0755,root,root) %{_bindir}/eos-test-file-inject
%attr(0755,root,root) %{_bindir}/eos-test-inject.sh %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 %package -n cta-rmcd
Summary: The Remote Media Changer daemon (rmcd) Summary: The Remote Media Changer daemon (rmcd)
......
...@@ -26,23 +26,32 @@ include_directories(${XRD_SSI_PB_DIR}/include ${XROOTD_INCLUDE_DIR} ${XROOTD_INC ...@@ -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) add_executable(eos-import-dirs EosImportDirs.cpp GrpcClient.cpp)
target_link_libraries(eos-import-dirs EosMigration ${PROTOBUF3_LIBRARIES} ${GRPC_LIBRARY} ${GRPC_GRPC++_LIBRARY} ctacatalogue) 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 ${PROTOBUF3_RPATH})
set_property(TARGET eos-import-dirs APPEND PROPERTY INSTALL_RPATH ${ORACLE-INSTANTCLIENT_RPATH})
# File import tool # File import tool
add_executable(eos-import-files EosImportFiles.cpp GrpcClient.cpp) add_executable(eos-import-files EosImportFiles.cpp GrpcClient.cpp)
target_link_libraries(eos-import-files EosMigration ${PROTOBUF3_LIBRARIES} ${GRPC_LIBRARY} ${GRPC_GRPC++_LIBRARY} ctacatalogue) 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 ${PROTOBUF3_RPATH})
set_property(TARGET eos-import-files APPEND PROPERTY INSTALL_RPATH ${ORACLE-INSTANTCLIENT_RPATH})
# Standalone test tools # Standalone test tools
add_executable(eos-test-dir-inject EosTestDirInject.cpp GrpcClient.cpp) 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) 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 ${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) 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) 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}) set_property(TARGET eos-test-file-inject APPEND PROPERTY INSTALL_RPATH ${PROTOBUF3_RPATH})
set_property(TARGET eos-test-file-inject APPEND PROPERTY INSTALL_RPATH ${ORACLE-INSTANTCLIENT_RPATH})
install(TARGETS eos-import-dirs DESTINATION usr/bin)
install(TARGETS eos-import-files DESTINATION usr/bin) install(TARGETS eos-import-dirs
install(TARGETS eos-test-dir-inject DESTINATION usr/bin) eos-import-files
install(TARGETS eos-test-file-inject DESTINATION usr/bin) eos-test-dir-inject
install(FILES ${CMAKE_SOURCE_DIR}/migration/gRPC/eos-test-inject.sh DESTINATION usr/bin) 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)
#
# 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
#
# 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment