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

Change: progress calculation #952

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Change: progress calculation #952

merged 1 commit into from
Mar 11, 2024

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Nov 28, 2023

What

Ospd receives the excluded hosts count from openvas. In the end, is openvas which knows how many hosts were excluded, after removing duplicated, or those which doesn't satisfy a preference like reverse_lookup_only.

However, excluded hosts list (and count) sent to openvas still includes de finished host if a scan is a resumed task . Therefore, still progress calculation adds the finished hosts to total host reported by openvas.

For testing, run scans, stop them and resume it. Different targets should be tested, like a network with the reverse_lookup_only preference, excluded hosts, excluded hosts which do not belong to the target list, etc.

DEPENDS ON ; greenbone/openvas-scanner#1528

Why

Fix an issue which produces the scan to be interrupted because a wrong progress calculation.

References

Jira: SC-964
Closes #951

Checklist

  • Tests

@jjnicola jjnicola requested a review from a team as a code owner November 28, 2023 13:28
@jjnicola jjnicola force-pushed the excluded-hosts branch 2 times, most recently from 902645f to b2e5ad6 Compare November 28, 2023 13:38
@zenire
Copy link

zenire commented Feb 12, 2024

Is there something I can do to help speed up this PR?

@jjnicola
Copy link
Member Author

Hi @zenire ,
For fixing this issue, we had to do some breaking changes. This means that the patch must be included in a major release. We plan to release a major one soon.
Regards

Ospd receives the excluded hosts count from openvas. In the end, is openvas which knows how many hosts were excluded, after removing duplicated, or those which doesn't satisfy a preference like reverse_lookup_only.

However, excluded hosts list (and count) sent to openvas still includes de finished host if a scan is a resumed task
. Therefore, still progress calculation adds the finished hosts to total host reported by openvas.

For testing, run scans, stop them and resume it. Different targets should be tested, like a network with the reverse_lookup_only preference, excluded hosts, excluded hosts which do not belong to the target list, etc.
@jjnicola jjnicola merged commit d8b228c into main Mar 11, 2024
13 checks passed
@jjnicola jjnicola deleted the excluded-hosts branch March 11, 2024 06:41
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

Successfully merging this pull request may close these issues.

Incorrect progress calculation due to excluded_hosts results in Interrupted scan
3 participants