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

Leader election identity matching does not work if host networked #33

Open
gcampbell12 opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@gcampbell12
Copy link

The volume modifier attempts to run on the same node as the csi-resizer by watching the external-resizer lease and trying to match the holder identity of the lease to the current pod name in cases where the CSI driver pod is host networked this does not work since the resizer sets the identity of it's lease from the sanitized hostname which for host networked pods is the hostname of the underlying node:
https://github.com/kubernetes-csi/csi-lib-utils/blob/master/leaderelection/leader_election.go#L202-L204 / https://github.com/kubernetes-csi/csi-lib-utils/blob/master/leaderelection/leader_election.go#L207-L215

This mismatch of names means you end up deadlocked with no volume modifier running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant