Better error reporting in cta-admin tools
A couple of error messages must be improved in some cta-admin commands:
- The messages in cta-admin tf rm are too generic, and do not inform about the file being removed, e.g.
[root@ctaproductionfrontend01 ~]# for i in `grep ' 2 ' /tmp/atlastestbeam.txt|grep L71221 | awk '{print $1}'`; do cta-admin tf rm -I $i -v L71221 -r "Vlado (20210916): Deleting 2nd copy of atlastestbeam storage class files" ; done
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
Cannot delete the copy because it is the only copy
A better message will specifiy the attributes of the file being deleted.
- Some tools do not help the user find out what criteria are necessary, for example:
[root@cta-frontend01 ~]# cta-admin rtf ls
Must specify at least one search option
[root@cta-frontend01 ~]# cta-admin rtf ls -i eosctapublicpps
Must specify at least one search option
These tools should mention what search options must be specified.