Skip to content

[Backport release-1.4] fix(csi): detach orphan hot-plug volumes when VMI outlives its VM - #2965

Merged
Andrei Kvapil (kvaps) merged 2 commits into
release-1.4from
backport-2866-to-release-1.4
Jun 24, 2026
Merged

[Backport release-1.4] fix(csi): detach orphan hot-plug volumes when VMI outlives its VM#2965
Andrei Kvapil (kvaps) merged 2 commits into
release-1.4from
backport-2866-to-release-1.4

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #2866 to release-1.4.

Andrei Kvapil (kvaps) and others added 2 commits June 22, 2026 09:32
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
(cherry picked from commit 6b4d7ad)
Upstream treats a missing parent VM as detach success, so when the VMI
outlives its VM during node reprovisioning the hot-plug pod keeps the
infra device exclusively attached to the source host and subsequent
attaches fail. Re-check VMI volume status after upstream unpublish and
detach from the VMI directly. Backport of kubevirt/csi-driver#184.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
(cherry picked from commit 68136f9)
@dosubot dosubot Bot added area/kubernetes Issues or PRs related to the tenant Kubernetes app area/storage Issues or PRs related to storage (linstor, seaweedfs, bucket, velero, harbor) backport Should change be backported on previous release kind/bug Categorizes issue or PR as related to a bug labels Jun 22, 2026
@kvaps
Andrei Kvapil (kvaps) merged commit 813aee7 into release-1.4 Jun 24, 2026
9 checks passed
@kvaps
Andrei Kvapil (kvaps) deleted the backport-2866-to-release-1.4 branch June 24, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/kubernetes Issues or PRs related to the tenant Kubernetes app area/storage Issues or PRs related to storage (linstor, seaweedfs, bucket, velero, harbor) backport Should change be backported on previous release kind/bug Categorizes issue or PR as related to a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant