-
Notifications
You must be signed in to change notification settings - Fork 620
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
cinder-csi-plugin does not have options for leader election #702
Comments
/assign |
/kind feature |
ok, I mostly figured this out, will submit a PR soon.. |
@adisky it shows to me that we are using RPC server here, while some other containers like external-provisioner is using controller, my search shows the leader election only applied to controller, so do we have any comments on whether we still can use leader election here? |
@jichenjc if leader election is not necessary for this particular container, then the StatefulSet with replicas=1 should be replaced with a Deployment with appropriate leader election flags on the containers that support it. The comments in the docs suggest that the StatefulSet is being used precisely to avoid having more than one pod at all times... this led me to believe that leader election is not yet supported. |
ok, I will take another look at this and paste some comments if I have . thanks for the info~ @bgagnon |
just for record, I think using CSI-lib https://github.com/kubernetes-csi/csi-lib-utils will be a good choice to include leader election stuff as manila CSI did, then in turn encounter some issue and need fix kubernetes-csi/csi-lib-utils#32 first |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@jichenjc any updates on this issue? |
/remove-lifecycle stale |
sorry, busy in other stuffs recently, I unassign myself and will continue to work on it later if someone is not going to work on it |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
/assign |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten |
I don't understand why do we need to add leader election flag to driver. Leader election (lease) in case of csi are only for controllers to avoid race condition when watching/updating resources on api server. However csi driver act only as a gRPC server and which serves requests by other csi controllers (the ones that already support leader election). Only the one controller which is leader calls its side-car driver. |
Of all the containers in the pod template of the
csi-cinder-controllerplugin
StatefulSet,docker.io/k8scloudprovider/cinder-csi-plugin
is the only one that does not appear to have options for leader election.Isn't this a requirement to run in HA with a multi-replica Deployment?
The text was updated successfully, but these errors were encountered: