Closed
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.