Hi George,
The first thing to say about this tool is a warning that it has never been tested. Please test thoroughly in a pre-production environment and use at your own risk.
The tool cta-change-storage-class-in-catalogue
was created to address the problem of splitting files on the same tape into multiple tapes, which I think is the use case that you have. The idea is to change the storage class of the files to be separated and then repack the tape.
Note that this tool does not change the storage class in the EOS namespace. That has to be done as a separate (manual) step. In other words, using this tool will introduce an inconsistency between the storage class of the file as reported by eos attr ls
and the storage class as reported by cta-admin tf ls
.
The person who wrote this tool left the team before we could test and evaluate it. It may work but we can give no guarantees. Our plan is to do an evaluation and revision of the tool before we use it ourselves. This is on the list of work to be done in 2024/25, but there are several other things which are higher priority, so I don’t expect we will get to it until next year.
Besides those caveats, the tool probably works, please let us know your experiences.
gRPC authentication to EOS
Do not configure gRPC access to EOS. See explanation below.
There are two authentication schemes, Kerberos authentication for the CTA Frontend and gRPC authentication for EOS. Setting up gRPC authentication would give root access to the EOS filesystem. This is a security risk: EOS files can be accessed or deleted by anyone who can read the gRPC keytab. This is why we reduced the scope of the tool so it only updates the CTA Catalogue and not EOS.
However, as the tool does not currently update EOS, this is not an issue. Just don’t configure gRPC.
Authentication to CTA Frontend
Authentication to the CTA Frontend uses Kerberos. The Kerberos identity must be included in the list of administrators. Probably you need to type:
cta-admin admin add --username eosantarespreprodfac --comment "User to change storage classes"
and then it should work (maybe).