-
Bug
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
Quay Enterprise
-
Undefined
-
On first run, clairctl will report any 403 errors it encounters due to rate limiting. On subsequent runs, clairctl won't in some cases report any errors and will exit gracefully even though errors were still encountered and the output file is an empty file. Please see the following:
bash-4.4$ date; /bin/clairctl --config /cfg/config.yaml export-updaters /updaters/updaters.gz |& cat -n; date
Thu Mar 18 11:36:07 UTC 2021
Thu Mar 18 11:36:07 UTC 2021
bash-4.4$ date; /bin/clairctl --config /cfg/config.yaml export-updaters /updaters/updaters.gz |& cat -n; date
Thu Mar 18 11:36:09 UTC 2021
Thu Mar 18 11:36:09 UTC 2021
bash-4.4$ date; /bin/clairctl --config /cfg/config.yaml export-updaters /updaters/updaters.gz |& cat -n; date
Thu Mar 18 11:36:10 UTC 2021
Thu Mar 18 11:36:10 UTC 2021
bash-4.4$ ls -al /updaters/updaters.gz
-rw-r--r-- 1 nobody nobody 23 Mar 18 11:36 /updaters/updaters.gz
bash-4.4$ rm /updaters/updaters.gz
bash-4.4$ date; /bin/clairctl --config /cfg/config.yaml export-updaters /updaters/updaters.gz |& cat -n; date
Thu Mar 18 11:38:10 UTC 2021
Thu Mar 18 11:38:11 UTC 2021
bash-4.4$ ls -al /updaters/updaters.gz
-rw-r--r-- 1 nobody nobody 23 Mar 18 11:38 /updaters/updaters.gz
bash-4.4$ rm /updaters/updaters.gz
bash-4.4$ ls -al /updaters/updaters.gz
ls: cannot access '/updaters/updaters.gz': No such file or directory
bash-4.4$ date; /bin/clairctl --config /cfg/config.yaml export-updaters /updaters/updaters.gz |& cat -n; date
Thu Mar 18 11:38:29 UTC 2021
Thu Mar 18 11:38:29 UTC 2021
bash-4.4$ ls -al /updaters/updaters.gz
-rw-r--r-- 1 nobody nobody 23 Mar 18 11:38 /updaters/updaters.gz
Running clairctl wtih the -D switch does nothing, the output is the same. Expectation is that clairctl always reports all errors on exit and that with the -D option it also prints out all information which sources are fetched, from where and what was the result of the import command.