-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue 174: Fixing the leader election failure after node reboot #175
Conversation
Signed-off-by: anishakj <[email protected]>
Signed-off-by: anishakj <[email protected]>
Signed-off-by: anishakj <[email protected]>
This reverts commit 77df13b.
Signed-off-by: anishakj <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #175 +/- ##
==========================================
- Coverage 81.64% 80.21% -1.43%
==========================================
Files 9 10 +1
Lines 1760 1825 +65
==========================================
+ Hits 1437 1464 +27
- Misses 251 281 +30
- Partials 72 80 +8
Continue to review full report at Codecov.
|
Signed-off-by: anishakj <[email protected]>
Signed-off-by: anishakj <[email protected]>
Signed-off-by: anishakj <[email protected]>
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
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
Signed-off-by: anishakj <[email protected]>
Signed-off-by: anishakj [email protected]
Change log description
In VMware cluster, some pods are stuck in ProviderFailed state, and leader election function, provided by operator SDK, is unable to process that, so new pods are stuck in wait cycle.
Purpose of the change
Fixes #174
What the code does
Customise the leader.Become() function of operator-sdk and if the pod is in ProviderFailed state, delete the pod and configmap so that new pod can come up.
How to verify it
Verify in Vmware setup pods are coming up successfully after node reboot.