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

fix: ScanResults stuck in aborted state #427

Merged
1 commit merged into from
Jun 30, 2023
Merged

fix: ScanResults stuck in aborted state #427

1 commit merged into from
Jun 30, 2023

Conversation

chrisgacsal
Copy link
Contributor

Description

The vmclarity-cli running on the Scanner instance is responsible for handling the aborted event for the corresponding ScanResult. The ScanResultWatcher controller will periodically check whether the vmclarity-cli managed to gracefully shutdown the running scan and set theScanResultto done indicating that thr scan is finished and the Scanner instance could be removed. However moving the ScanResults state to done will not happen in case the vmclarity-cli process is not running on the Scanner instance making the ScanResultWatcher controller waiting indefinitely.

The ScanResultWatcher will now monitor the ScanResults in aborted state and will move their state to done after a predefined period of time.

Type of Change

[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@chrisgacsal chrisgacsal self-assigned this Jun 20, 2023
@chrisgacsal chrisgacsal added bug Something isn't working enhancement New feature or request labels Jun 20, 2023
@chrisgacsal chrisgacsal added this to the v0.5.0 milestone Jun 20, 2023
@chrisgacsal chrisgacsal force-pushed the fix-abort-timeout branch 3 times, most recently from a206f6a to bc6f05e Compare June 20, 2023 11:52
@chrisgacsal chrisgacsal modified the milestones: v0.5.0, v0.6.0 Jun 27, 2023
@chrisgacsal chrisgacsal marked this pull request as ready for review June 27, 2023 17:38
@chrisgacsal chrisgacsal requested a review from a team as a code owner June 27, 2023 17:38
@chrisgacsal
Copy link
Contributor Author

I've verified the change by running E2E on AWS.

The `vmclarity-cli` running on the `Scanner` instance is responsible
for handling the `aborted` event for the corresponding `ScanResult`.
The `ScanResultWatcher` controller will periodically check whether
the `vmclarity-cli` managed to gracefully shutdown the running scan
and set the` ScanResult `to `done` indicating that thr scan is finished
and the Scanner instance could be removed. However moving
the `ScanResults` state to `done` will not happen in case
the `vmclarity-cli` process is not running on the Scanner instance
making the `ScanResultWatcher` controller waiting indefinitely.

The `ScanResultWatcher` will now monitor the `ScanResults` in `aborted`
state and will move their state to `done` after a predefined
period of time.
@ghost ghost added this pull request to the merge queue Jun 30, 2023
Merged via the queue into main with commit 7ccbe55 Jun 30, 2023
5 checks passed
@ghost ghost deleted the fix-abort-timeout branch June 30, 2023 08:19
@chrisgacsal chrisgacsal mentioned this pull request Nov 6, 2023
7 tasks
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants