-
Notifications
You must be signed in to change notification settings - Fork 37
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
OCPBUGS-11486: fix: introduce correct SNO leader election for openshift #370
Conversation
Skipping CI for Draft Pull Request. |
@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-11486, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-11486, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
once #371 is in will rebase and only do SNO changes here |
/retest |
361bfee
to
9a4b95c
Compare
@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-11486, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
3cd159f
to
b4a15ad
Compare
@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-11486, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
125e039
to
968bddb
Compare
968bddb
to
08eb519
Compare
/override ci/prow/lvm-operator-bundle-e2e-aws |
@jeff-roche: Overrode contexts on behalf of jeff-roche: ci/prow/ci-index-lvm-operator-static-deps, ci/prow/lvm-operator-bundle-e2e-aws In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jakobmoellerdev: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/approve |
1 similar comment
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakobmoellerdev, jeff-roche The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jakobmoellerdev: Jira Issue OCPBUGS-11486: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-11486 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR is huge since for correct leader election in an openshift-compliant manner, we will need to introduce https://github.com/openshift/library-go/
Of course since we vendor, this would be a big change.
For the leader election, I consumed https://github.com/openshift/library-go/blob/release-4.14/pkg/config/leaderelection/leaderelection.go#L153 and switched to a custom lease lock that is consuming the Openshift Leaderelection based on leases.
I also had to introduce a redirect of klog to our standard logger as the library uses klog and we didn't have a redirect setup in place. Now all klog messages get parsed into JSON correctly as intended (previously also throttling messages would be malformatted, this has been corrected with that same redirect)
P.S.: to completely fix OCPBUGS-11486 we will also need an upstream PR in topolvm which exposes new flags for all necessary leaderelection parameters in https://github.com/topolvm/topolvm/blob/d242dcc522ae3f4bc3fe692054205b1076319396/pkg/topolvm-controller/cmd/root.go#L47 If we all agree on that approach I will open up a PR there as well.
Results in the following logs: