diff --git a/catalogue/CMakeLists.txt b/catalogue/CMakeLists.txt index 870c1436904ac62d114bc5d0d2c25c4d4f37447b..896e2f7e42751e854b9938e1b946b1089bc188ec 100644 --- a/catalogue/CMakeLists.txt +++ b/catalogue/CMakeLists.txt @@ -118,7 +118,7 @@ target_link_libraries (ctacatalogueunittests install (TARGETS ctacatalogueunittests DESTINATION usr/${CMAKE_INSTALL_LIBDIR}) -install (FILES cta_catalogue_db.conf.example +install (FILES cta-catalogue.conf.example DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) diff --git a/catalogue/cta-catalogue-admin-host-create.1cta b/catalogue/cta-catalogue-admin-host-create.1cta index fcd324a09aa1a012565c08432ee6aa945490534e..5056f164a786fdf0634db516e72d3301960c53ae 100644 --- a/catalogue/cta-catalogue-admin-host-create.1cta +++ b/catalogue/cta-catalogue-admin-host-create.1cta @@ -44,7 +44,7 @@ Prints the usage message. .SH RETURN VALUE Zero on success and non-zero on failure. .SH EXAMPLES -cta-catalogue-admin-host-create /etc/cta/cta_catalogue_db.conf -u ctaadminhost -c "The CTA admin host" +cta-catalogue-admin-host-create /etc/cta/cta-catalogue.conf -u ctaadminhost -c "The CTA admin host" .SH AUTHOR \fBCTA\fP Team diff --git a/catalogue/cta-catalogue-admin-user-create.1cta b/catalogue/cta-catalogue-admin-user-create.1cta index 3b4291c53e0b354ab97f271b1a506e6a8f170a13..543b3fba70cf2edc3d4c64a311fca645cbd22052 100644 --- a/catalogue/cta-catalogue-admin-user-create.1cta +++ b/catalogue/cta-catalogue-admin-user-create.1cta @@ -44,7 +44,7 @@ Prints the usage message. .SH RETURN VALUE Zero on success and non-zero on failure. .SH EXAMPLES -cta-catalogue-admin-user-create /etc/cta/cta_catalogue_db.conf -u ctaadmin -c "The CTA admin account" +cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf -u ctaadmin -c "The CTA admin account" .SH AUTHOR \fBCTA\fP Team diff --git a/catalogue/cta-catalogue-schema-create.1cta b/catalogue/cta-catalogue-schema-create.1cta index 07b34cd3d37e73a8cc8239c705c55346a475124e..051c452568f35c6fdca9029513152fb3db98f9fc 100644 --- a/catalogue/cta-catalogue-schema-create.1cta +++ b/catalogue/cta-catalogue-schema-create.1cta @@ -37,7 +37,7 @@ Prints the usage message. .SH RETURN VALUE Zero on success and non-zero on failure. .SH EXAMPLES -cta-catalogue-schema-create /etc/cta/cta_catalogue_db.conf +cta-catalogue-schema-create /etc/cta/cta-catalogue.conf .SH AUTHOR \fBCTA\fP Team diff --git a/catalogue/cta-catalogue-schema-drop.1cta b/catalogue/cta-catalogue-schema-drop.1cta index 66ae644ad34e0d8557fbb2bde0c2e1683427137d..5639395f40ae97b912f761b836bacabccf39e58f 100644 --- a/catalogue/cta-catalogue-schema-drop.1cta +++ b/catalogue/cta-catalogue-schema-drop.1cta @@ -37,7 +37,7 @@ Prints the usage message. .SH RETURN VALUE Zero on success and non-zero on failure. .SH EXAMPLES -cta-catalogue-schema-drop /etc/cta/cta_catalogue_db.conf +cta-catalogue-schema-drop /etc/cta/cta-catalogue.conf .SH AUTHOR \fBCTA\fP Team diff --git a/catalogue/cta_catalogue_db.conf.example b/catalogue/cta-catalogue.conf.example similarity index 100% rename from catalogue/cta_catalogue_db.conf.example rename to catalogue/cta-catalogue.conf.example diff --git a/catalogue/cta-database-poll.1cta b/catalogue/cta-database-poll.1cta index 6aaa0f445781a08e5a0c86cd0fd2f3114f609637..c186a5621a7489caf6148db92c57bfb9b9d7c8ce 100644 --- a/catalogue/cta-database-poll.1cta +++ b/catalogue/cta-database-poll.1cta @@ -36,7 +36,7 @@ Prints the usage message. .SH RETURN VALUE Zero on success and non-zero on failure. .SH EXAMPLES -cta-database-poll 5 /etc/cta/cta_catalogue_db.conf +cta-database-poll 5 /etc/cta/cta-catalogue.conf .SH AUTHOR \fBCTA\fP Team diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh index 223f49bffb1eb853f7065bbfdbe759fca3d0dca8..eac70ca3d74112d034dd458dfd37fb8f3d6861f6 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctafrontend.sh @@ -24,7 +24,7 @@ echo "Log URL file:/var/log/cta/cta-frontend.log" >>/etc/cta/cta-frontend.conf /opt/run/bin/init_database.sh . /tmp/database-rc.sh -echo ${DATABASEURL} >/etc/cta/cta_catalogue_db.conf +echo ${DATABASEURL} >/etc/cta/cta-catalogue.conf # EOS INSTANCE NAME used as username for SSS key EOSINSTANCE=ctaeos diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh index b58c3c9385e540aa25a957d556ac2d42a667eb54..1b6272ca2d4c8067efcd1e65720d06360b15bb13 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh @@ -48,22 +48,22 @@ fi echo "Configuring database:" /opt/run/bin/init_database.sh . /tmp/database-rc.sh -echo ${DATABASEURL} >/etc/cta/cta_catalogue_db.conf +echo ${DATABASEURL} >/etc/cta/cta-catalogue.conf if [ "$KEEP_DATABASE" == "0" ]; then echo "Wiping database" - echo yes | cta-catalogue-schema-drop /etc/cta/cta_catalogue_db.conf + echo yes | cta-catalogue-schema-drop /etc/cta/cta-catalogue.conf if [ "$DATABASETYPE" == "sqlite" ]; then mkdir -p $(dirname $(echo ${DATABASEURL} | cut -d: -f2)) - cta-catalogue-schema-create /etc/cta/cta_catalogue_db.conf + cta-catalogue-schema-create /etc/cta/cta-catalogue.conf chmod -R 777 $(dirname $(echo ${DATABASEURL} | cut -d: -f2)) # needed? else # Oracle DB echo "Purging Oracle recycle bin" test -f ${ORACLE_SQLPLUS} || echo "ERROR: ORACLE SQLPLUS client is not present, cannot purge recycle bin: ${ORACLE_SQLPLUS}" LD_LIBRARY_PATH=$(readlink ${ORACLE_SQLPLUS} | sed -e 's;/bin/[^/]\+;/lib;') ${ORACLE_SQLPLUS} $(echo $DATABASEURL | sed -e 's/oracle://') @/opt/ci/init/purge_recyclebin.ext - cta-catalogue-schema-create /etc/cta/cta_catalogue_db.conf + cta-catalogue-schema-create /etc/cta/cta-catalogue.conf fi else echo "Reusing database (no check)" diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh index 7cb2053cd96a6dfbef6c8134b1987111a405d5f6..9fa5a03a4f8c47708e565bf535a4a14edc757788 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/taped.sh @@ -30,7 +30,7 @@ echo "Configuring database" /opt/run/bin/init_database.sh . /tmp/database-rc.sh -echo ${DATABASEURL} >/etc/cta/cta_catalogue_db.conf +echo ${DATABASEURL} >/etc/cta/cta-catalogue.conf # cta-taped setup echo "taped BufferCount 10" > /etc/cta/cta-taped.conf diff --git a/continuousintegration/orchestration/tests/prepare_tests.sh b/continuousintegration/orchestration/tests/prepare_tests.sh index b7de44287635ea77ac54ef277d275d4ee11f574a..95ea90a51850f98411af821b7529d319b961d19f 100755 --- a/continuousintegration/orchestration/tests/prepare_tests.sh +++ b/continuousintegration/orchestration/tests/prepare_tests.sh @@ -58,8 +58,8 @@ cat ${tempdir}/library-rc.sh ctacliIP=`kubectl --namespace ${NAMESPACE} describe pod ctacli | grep IP | sed -E 's/IP:[[:space:]]+//'` echo "Preparing CTA configuration for tests" - kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta_catalogue_db.conf --hostname ${ctacliIP} -c "docker cli" - kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta_catalogue_db.conf --username ctaadmin1 -c "docker cli" + kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta-catalogue.conf --hostname ${ctacliIP} -c "docker cli" + kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf --username ctaadmin1 -c "docker cli" kubectl --namespace ${NAMESPACE} exec ctacli -- cta logicallibrary add \ --name ${LIBRARYNAME} \ --comment "ctasystest" diff --git a/continuousintegration/orchestration/tests/systest.sh b/continuousintegration/orchestration/tests/systest.sh index fef11e70afbe25d479db556fb6d5c0c763ca32b2..54f779d952b0bc8498aa69884d0846e800a22938 100755 --- a/continuousintegration/orchestration/tests/systest.sh +++ b/continuousintegration/orchestration/tests/systest.sh @@ -58,8 +58,8 @@ cat ${tempdir}/library-rc.sh ctacliIP=`kubectl --namespace ${NAMESPACE} describe pod ctacli | grep IP | sed -E 's/IP:[[:space:]]+//'` echo "Preparing CTA for tests" - kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta_catalogue_db.conf --hostname ${ctacliIP} -c "docker cli" - kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta_catalogue_db.conf --username admin1 -c "docker cli" + kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta-catalogue.conf --hostname ${ctacliIP} -c "docker cli" + kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf --username admin1 -c "docker cli" kubectl --namespace ${NAMESPACE} exec ctacli -- cta logicallibrary add \ --name ${LIBRARYNAME} \ --comment "ctasystest" diff --git a/continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh b/continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh index 7031e555b705ff17bcca8c10b9fbd62d51cf4d70..62eb88b846b930f0e00d0b8b3408d22cdab827af 100755 --- a/continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh +++ b/continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh @@ -58,8 +58,8 @@ cat ${tempdir}/library-rc.sh ctacliIP=`kubectl --namespace ${NAMESPACE} describe pod ctacli | grep IP | sed -E 's/IP:[[:space:]]+//'` echo "Preparing CTA for tests" -kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta_catalogue_db.conf --hostname ${ctacliIP} -c "docker cli" -kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta_catalogue_db.conf --username admin1 -c "docker cli" +kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta-catalogue.conf --hostname ${ctacliIP} -c "docker cli" +kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf --username admin1 -c "docker cli" kubectl --namespace ${NAMESPACE} exec ctacli -- cta logicallibrary add \ --name ${LIBRARYNAME} \ --comment "ctasystest" diff --git a/continuousintegration/orchestration/tests/systest_xrdcp_many_files.sh b/continuousintegration/orchestration/tests/systest_xrdcp_many_files.sh index b7d9d246254e9d4154e618a63e8b70768eab5edb..954ad73c726ac00b8670b97d4773e261f885ae38 100755 --- a/continuousintegration/orchestration/tests/systest_xrdcp_many_files.sh +++ b/continuousintegration/orchestration/tests/systest_xrdcp_many_files.sh @@ -58,8 +58,8 @@ cat ${tempdir}/library-rc.sh ctacliIP=`kubectl --namespace ${NAMESPACE} describe pod ctacli | grep IP | sed -E 's/IP:[[:space:]]+//'` echo "Preparing CTA for tests" -kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta_catalogue_db.conf --hostname ${ctacliIP} -c "docker cli" -kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta_catalogue_db.conf --username admin1 -c "docker cli" +kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-host-create /etc/cta/cta-catalogue.conf --hostname ${ctacliIP} -c "docker cli" +kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf --username admin1 -c "docker cli" kubectl --namespace ${NAMESPACE} exec ctacli -- cta logicallibrary add \ --name ${LIBRARYNAME} \ --comment "ctasystest" diff --git a/cta.spec.in b/cta.spec.in index d3914d7e81e3cb879c4978000ff98107fad602b3..a12928a42c724eb7d8a763a66cc97823af1536b3 100644 --- a/cta.spec.in +++ b/cta.spec.in @@ -200,7 +200,7 @@ The shared libraries %{_libdir}/libctamessages.so* %{_libdir}/libctamessagesutils.so* %{_libdir}/libctardbms.so* -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta_catalogue_db.conf.example +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-catalogue.conf.example #CTA-lib installs libraries so we need ldconfig. %post -n cta-lib -p /sbin/ldconfig diff --git a/objectstore/cta-objectstore-collect-orphaned-object.cpp b/objectstore/cta-objectstore-collect-orphaned-object.cpp index 1108f2977ef6a76748e2af91426a3d354bf9fa34..6b84c657e769b4de4b576d8acb33d9c4f53d41db 100644 --- a/objectstore/cta-objectstore-collect-orphaned-object.cpp +++ b/objectstore/cta-objectstore-collect-orphaned-object.cpp @@ -53,7 +53,7 @@ int main(int argc, char ** argv) { } else if (2 == argc) { cta::common::Configuration m_ctaConf("/etc/cta/cta-frontend.conf"); be = std::move(cta::objectstore::BackendFactory::createBackend(m_ctaConf.getConfEntString("ObjectStore", "BackendPath", nullptr))); - const cta::rdbms::Login catalogueLogin = cta::rdbms::Login::parseFile("/etc/cta/cta_catalogue_db.conf"); + const cta::rdbms::Login catalogueLogin = cta::rdbms::Login::parseFile("/etc/cta/cta-catalogue.conf"); const uint64_t nbConns = 1; const uint64_t nbArchiveFileListingConns = 0; catalogue = std::move(cta::catalogue::CatalogueFactory::create(sl, catalogueLogin, nbConns, nbArchiveFileListingConns)); @@ -134,4 +134,4 @@ int main(int argc, char ** argv) { std::cerr << "Failed to garbage collect object: " << std::endl << e.what() << std::endl; } -} \ No newline at end of file +} diff --git a/tapeserver/daemon/TapedConfiguration.hpp b/tapeserver/daemon/TapedConfiguration.hpp index 718e9ab43f90d04feb28b09363ac5e0cc927ae30..fa3cad5e9303e8f952d47d5be7612eb8119a1062 100644 --- a/tapeserver/daemon/TapedConfiguration.hpp +++ b/tapeserver/daemon/TapedConfiguration.hpp @@ -113,7 +113,7 @@ struct TapedConfiguration { "ObjectStore", "BackendPath"}; /// Path to the file catalog config file SourcedParameter<std::string> fileCatalogConfigFile{ - "general", "FileCatalogConfigFile", "/etc/cta/cta_catalogue_db.conf", "Compile time default"}; + "general", "FileCatalogConfigFile", "/etc/cta/cta-catalogue.conf", "Compile time default"}; private: /** A private dummy logger which will simplify the implementation of the diff --git a/xroot_plugins/XrdCtaFilesystem.cpp b/xroot_plugins/XrdCtaFilesystem.cpp index 52e4afa344913c80b5509d95f2ca539a075b4b04..db1f36e3354de24bd9a412561e2e5dd2388c5b3d 100644 --- a/xroot_plugins/XrdCtaFilesystem.cpp +++ b/xroot_plugins/XrdCtaFilesystem.cpp @@ -281,7 +281,7 @@ XrdCtaFilesystem::XrdCtaFilesystem(): m_backend = std::move(cta::objectstore::BackendFactory::createBackend(m_ctaConf.getConfEntString("ObjectStore", "BackendPath", nullptr))); m_backendPopulator = cta::make_unique<cta::objectstore::BackendPopulator>(*m_backend, "Frontend", cta::log::LogContext(*m_log)); - const rdbms::Login catalogueLogin = rdbms::Login::parseFile("/etc/cta/cta_catalogue_db.conf"); + const rdbms::Login catalogueLogin = rdbms::Login::parseFile("/etc/cta/cta-catalogue.conf"); const uint64_t nbConns = m_ctaConf.getConfEntInt<uint64_t>("Catalogue", "NumberOfConnections", nullptr); const uint64_t nbArchiveFileListingConns = 2; m_catalogue = catalogue::CatalogueFactory::create(*m_log, catalogueLogin, nbConns, nbArchiveFileListingConns); diff --git a/xroot_plugins/XrdSsiCtaServiceProvider.cpp b/xroot_plugins/XrdSsiCtaServiceProvider.cpp index 54a53188390850a60b2c8edf88fa213809f64b91..e1318de19707440a3e0124d9d954f4e90dd0095b 100644 --- a/xroot_plugins/XrdSsiCtaServiceProvider.cpp +++ b/xroot_plugins/XrdSsiCtaServiceProvider.cpp @@ -85,7 +85,7 @@ bool XrdSsiCtaServiceProvider::Init(XrdSsiLogger *logP, XrdSsiCluster *clsP, con // Initialise the catalogue - const rdbms::Login catalogueLogin = rdbms::Login::parseFile("/etc/cta/cta_catalogue_db.conf"); + const rdbms::Login catalogueLogin = rdbms::Login::parseFile("/etc/cta/cta-catalogue.conf"); const uint64_t nbConns = m_ctaConf.getConfEntInt<uint64_t>("Catalogue", "NumberOfConnections", nullptr); const uint64_t nbArchiveFileListingConns = 2;