Skip to content

Volumes not torn down on pod delete #4086

Closed
@chakri-nelluri

Description

Volumes are not getting teared down on pod delete. I see the following error in kubelet log.

Couldn't sync containers: remove /var/lib/kubelet/pods/f936e991-abed-11e4-96a8-00266cf650e0/volumes/kubernetes.io~dw-vol/redisvol2: device or resource busy

We are trying to clean up pod directory before cleaning up volumes. Reversing 'kubelet.cleanOrphanedPods' & 'kubelet.cleanupOrphanedVolumes' in kubelet.go fixes the issue.
I have the patch available, if we are ok to commit.

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sig/nodeCategorizes an issue or PR as relevant to SIG Node.sig/storageCategorizes an issue or PR as relevant to SIG Storage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions