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

abort kube-ovn-controller on leader change #1797

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

zhangzujian
Copy link
Member

What type of this PR

  • Bug fixes

In some scenarios, leader change is observed while kube-ovn-controller continues running:

PodName:kube-ovn-controller-7d4fd7596f-l9kjg
...
E0811 14:10:16.385233 7 leaderelection.go:367] Failed to update lock: Operation cannot be fulfilled on configmaps "ovn-config": the object has been modified; please apply your changes to the latest version and try again
I0811 14:10:19.070103 7 election.go:76] new leader elected: kube-ovn-controller-7d4fd7596f-kvtpx
E0811 14:46:30.991520       7 leaderelection.go:330] error retrieving resource lock kube-system/ovn-config: Unauthorized
E0811 14:46:34.605041       7 leaderelection.go:330] error retrieving resource lock kube-system/ovn-config: Unauthorized
E0811 14:46:36.637048       7 leaderelection.go:330] error retrieving resource lock kube-system/ovn-config: Unauthorized

@zhangzujian zhangzujian added bug Something isn't working need backport labels Aug 12, 2022
@zhangzujian zhangzujian marked this pull request as ready for review August 12, 2022 06:35
@zhangzujian zhangzujian requested a review from oilbeater August 12, 2022 06:35
pkg/controller/election.go Outdated Show resolved Hide resolved
@zhangzujian zhangzujian requested a review from oilbeater August 15, 2022 01:38
@zhangzujian zhangzujian merged commit bc38041 into kubeovn:master Aug 15, 2022
@zhangzujian zhangzujian deleted the fix-leader branch August 15, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants