A new tool previewing the mounts is needed for ops (a.k.a. as annotated cta::Scheduler::getNextMount)
A new tool showing the mount policy execution would be nice for the operators to understand what is happening. We could make it run in 2 modes:
- global, where all libraries are considered
- local , where a library is specified by the user
The tool would then print out the candidate mounts with annotations explaining why it gets considered or not.
As this would be a duplication of cta::Scheduler::getNextMount
it would be a very good idea to create a shared function implementing both the annotated version (for the command line tool) and the actual scheduling. They would be guaranteed to diverge otherwise.