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

ipvs: Update status code of misc checker if changes while in fault state #2419

Merged
merged 1 commit into from
May 25, 2024

Conversation

pqarmitage
Copy link
Collaborator

The exit code of a misc checker can be read via SNMP. The misc check code was not updating the last exit code if the checker was not dynamic, the checker was already down (i.e. returned a non 0 exit code), and the exit code changed from the previous exit code. This meant that the exit code reported via SNMP was not the latest exit code, but the exit code that caused the status of the checker to change.

This commit now updates the last exit code, even if the checker is already down.

The exit code of a misc checker can be read via SNMP. The misc check code
was not updating the last exit code if the checker was not dynamic, the
checker was already down (i.e. returned a non 0 exit code), and the exit
code changed from the previous exit code. This meant that the exit code
reported via SNMP was not the latest exit code, but the exit code that
caused the status of the checker to change.

This commit now updates the last exit code, even if the checker is already
down.

Signed-off-by: Quentin Armitage <[email protected]>
@pqarmitage pqarmitage merged commit 5ac9819 into acassen:master May 25, 2024
10 checks passed
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.

1 participant