Improve 'cta-admin tapepool' '--supply' behaviour
Problem
Currently, the --supply
option of the cta-admin tapepool
is very permissive.
It allows any string to be accepted, without regard to it's format. It also ignores the relation that this field establishes between different tapepools.
For example:
cta-admin tapepool ch --name tsm_tapes_SPC2 --supply "This does not make sense"
Proposal
- Modify the
--supply
option logic, so that it only accepts comma-separated fields. - Modify the CTA catalogue to include the relationship between different tapepools, as defined by
--supply
.- It should not be possible to include a tapepool in
--supply
if it does not exist in the catalogue. - It should not be possible to remove a tapepool if it exists in the
supply
of another tapepool (or alternatively, the entry in the DB should be removed automatically).
- It should not be possible to include a tapepool in
References
Related Ops issue:
Edited by Joao Afonso