-
Notifications
You must be signed in to change notification settings - Fork 147
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: don't log NodeReady is true and false in same reconcile loop #3112
Conversation
Before:
After:
|
ff269c4
to
cd1e1d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has bugged me in RWX HA testing, too. Glad to see it addressed. LGTM.
(I assume that when kubelet is restored, or the node restarts, it does return to Ready.)
It looks like the CI failure is a result of expecting the duplicate logging. I am reworking the tests slightly. |
cd1e1d9
to
defad2a
Compare
I does, but it is good to add this to the test plan above. I will do that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Longhorn 7738 Signed-off-by: Eric Weber <eric.weber@suse.com>
Longhorn 7738 Signed-off-by: Eric Weber <eric.weber@suse.com>
Longhorn 7738 Signed-off-by: Eric Weber <eric.weber@suse.com>
b845eeb
to
f7ace75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mergify backport v1.7.x v1.6.x |
✅ Backports have been created
|
Which issue(s) this PR fixes:
longhorn/longhorn#7738
What this PR does / why we need it:
Key change:
nodeReady
conditional variable now ensure we don't record ready (i.e. log and emit an event) during the check for a manager pod just to later record not ready during the Kubernetes node status check.Additional changes:
Ready
andSchedulable
is now broken out into a separate function.