harbor-scanner-clair icon indicating copy to clipboard operation
harbor-scanner-clair copied to clipboard

Full Scan with external Clair scanner.

Open ila-001 opened this issue 3 years ago • 3 comments

I have configured an external Clair scanner(2.1.7). which is configured to harbor Version v1.10.6. Performed a manual Full scan. Checked in the harbor db it shows as finished, 27 | IMAGE_SCAN_ALL | Generic | {"type":"Manual","cron":""} | finished | 1cd8df1d50ce805a10c2737d | 2021-06-09 09 :29:29 | 2021-06-09 09:38:19.373139 | f | 1623230969 | 3 (8 rows)

However in the console its showing as still running. Is there any way i can stop the scanning.

ila-001 avatar Jun 09 '21 17:06 ila-001

I think you check in the wrong place.

Please check the scan_report to ensure the status of the records are success or error (failed).

heww avatar Jun 10 '21 05:06 heww

@heww Scan_report table hold the scan status of individual images. Most of the records shows success. There are some 40000+ records in there. I wanted to stop the Full scan job(IMAGE_SCAN_ALL) which is started manually from admin user. follow up questions: If the scan still running why the job- IMAGE_SCAN_ALL should be marked a finished under admin_job table.

ila-001 avatar Jun 10 '21 10:06 ila-001

As soon as the scheduled full scan for 40000 objects is completed, scan report shows the correct data, However after a while the scan report changes to something like this which is incorrect. I am not sure from where this data is coming from. image

ila-001 avatar Jun 16 '21 23:06 ila-001