Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Scan with external Clair scanner. #23

Open
ila-001 opened this issue Jun 9, 2021 · 3 comments
Open

Full Scan with external Clair scanner. #23

ila-001 opened this issue Jun 9, 2021 · 3 comments

Comments

@ila-001
Copy link

ila-001 commented Jun 9, 2021

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.

@heww
Copy link
Collaborator

heww commented Jun 10, 2021

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).

@ila-001
Copy link
Author

ila-001 commented Jun 10, 2021

@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
Copy link
Author

ila-001 commented Jun 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants