Skip to content

PV delete with leader election - #8

Merged
arahamad merged 1 commit into
mainfrom
pv-delete
Sep 17, 2026
Merged

arahamad merged 1 commit into
mainfrom
pv-delete

Conversation

@MahanteshR12

Copy link
Copy Markdown
Collaborator

Problem:

  • The CSI driver runs on all three worker nodes.
  • Each node had its own csi-provisioner.
  • Without leader election, all three provisioners responded to the same PVC.
  • This created three IBM volumes with the same name.
  • During deletion, the driver searched by name and found multiple matching volumes, so it could not determine which one to delete.

Fix:

  • Enabled --leader-election=true.
    • Only one provisioner now processes PVC creation and deletion.
    • The others remain standby.
    • Result: one PVC creates exactly one IBM volume.
  • Stored and reused the native IBM volume ID (r006-...) during deletion.
    • The driver deletes the exact volume directly instead of relying on its name.

@arahamad arahamad left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@arahamad
arahamad merged commit 2b4e81f into main Sep 17, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants