-
Notifications
You must be signed in to change notification settings - Fork 20
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: Continue reconciliation after a health check execution error #415
Merged
yanksyoon
merged 12 commits into
main
from
fix/continue-reconciliation-on-health-check-error-ISD-2786
Dec 6, 2024
Merged
fix: Continue reconciliation after a health check execution error #415
yanksyoon
merged 12 commits into
main
from
fix/continue-reconciliation-on-health-check-error-ISD-2786
Dec 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cbartz
commented
Dec 4, 2024
github-runner-manager/src/github_runner_manager/openstack_cloud/health_checks.py
Show resolved
Hide resolved
jdkandersson
approved these changes
Dec 4, 2024
yhaliaw
approved these changes
Dec 5, 2024
…error-ISD-2786 # Conflicts: # docs/changelog.md
Test coverage for 92a43d9
Static code analysis report
|
yanksyoon
deleted the
fix/continue-reconciliation-on-health-check-error-ISD-2786
branch
December 6, 2024 02:57
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Applicable spec: n/a
Overview
Catch health check execution errors and continue reconciliation.
Rationale
We had an issue in production where the health check failed with an invoke.exception.CommandTimeout for an ssh command, and as this error was not caught, the whole reconciliation stopped and so no runners were cleaned up and rebuilt.
Juju Events Changes
n/a
Module Changes
github_runner_manager/openstack_cloud/health_checks.py
: Catch errors on ssh execution and raise a OpenstackHealthCheckErrorgithub_runner_manager/openstack_cloud/openstack_runner_manager.py
: Catch the error and map it to an unknown health state. Do not perform cleanup tasks for runners in unknown health state.Library Changes
n/a
Checklist
src-docs
.urgent
,trivial
,complex
).