[cinder-csi-plugin] add leader election#1638
Conversation
|
Welcome @m-yosefpor! |
|
Hi @m-yosefpor. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/assign @ramineni |
|
Build succeeded.
|
|
Build succeeded.
|
|
@ramineni do we need to also have e2e tests for an HA setup? |
|
I believe the use of |
|
Build failed.
|
Agree. now with leader election, even with |
|
Build succeeded.
|
|
/ok-to-test |
|
Build failed.
|
|
Build succeeded.
|
|
Build failed.
|
|
Build failed.
|
|
@ramineni all your suggestions applied. |
|
Build succeeded.
|
|
Build succeeded.
|
|
Build failed.
|
|
Build failed.
|
|
Build failed.
|
|
Build failed.
|
|
Build failed.
|
|
Build succeeded.
|
|
/lgtm @m-yosefpor I edited the release note, please double check. |
SGTM. Thanks. |
|
@m-yosefpor Thanks. Looks good. /lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ramineni The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@lingxiankong any ETA on when the next release for openstack-cinder-csi helm chart will be? |
Hi @m-yosefpor, the current chart release policy is we only do the official release together with the project, so for this specific one, we have to wait until v1.23 release. I know that may sound weird, I will talk with the team and see what we could do. |
What this PR does / why we need it:
Adding support for running HA CSI controller.
Which issue this PR fixes(if applicable):
fixes #702
Special notes for reviewers:
Increase replicas to 3, all operations should work as expected (attach, detach, provision, deprovision, resize, snapshot).
I tested it on k8s 1.20, all operations are completing without errors. Also I can see successful leader election change events:
Cordon all nodes, deletetd
csi-cinder-controllerplugin-0(so it won't be scheduled again), leader changed tocsi-cinder-controllerplugin-2successfully and all CSI operations still working.Release note: