Have additonal filters on 'cta-admin recycletf ls'
Ops issue reference:
When a large accidental deletion happens, the experiments have a good estimate for when it took place, but we can only filter on VID or file by file using the cta-admin recycletf ls
command.
We should be able to provide the instance and a time range to recycletf
(amongst other values), so that we can quickly list all the deleted files that we can recover.
Recovering is painful, but finding files that can be recovered should be made easier.
Possible search criteria:
disk_file_path: Check if a user submitted file is inrecycletf
. Optionally, takes a file that contains the list of file paths and returns a json.- recycle_log_time_min, recycle_log_time_max: List all files deleted in a time range and sort results by deletion time.
- disk_instance_name: List files for a certain CTA instance.
- vid, fxid, fxidfile, archiveFileId: (already accepted)
Other ?
Current command:
[root@ctaproductionfrontend02 ~]# cta-admin rtf ls
Must specify at least one of the following search options: vid, fxid, fxidfile or archiveFileId
[root@ctaproductionfrontend02 ~]# cta-admin rtf
Missing subcommand
cta-admin rtf/recycletf ls:
Tape files in the recycle log can be listed by VID, EOS disk file ID, EOS disk instance,
ArchiveFileId or copy number. Disk file IDs should be provided in hexadecimal format (fxid).
ls [--vid/-v <vid>] [--fxid/-f <eos_fxid>] [--fxidfile/-F <filename>]
[--copynb/-c <copy_number>] [--id/-I <archive_file_id>]
[--instance/-i <disk_instance>]
Edited by Joao Afonso