Pod Deployment is Failing Due to Stale Mount Paths of Orphaned Pods On The Node

Problem

  • Pods are getting stuck in the ContianerCreating state post deployment and below mentioned error is recorded at the same time in kubelet logs.
Error
Copy

Environment

  • Platform9 Managed Kubernetes - All Versions
  • Kubelet

Answer

  • The logs explain that there is failure in executing the rmdir() kernel call on the stale mount paths left on the node by the orphaned pods.
  • This is a routine login in the kubelet.volume.go code to clean up the stale mount paths left on the node by orphaned pods.
  • Sometimes these volume paths have a left over file named vol_data.json and due to this the rmdir() kernel call on this mount path fails.
Javascript
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches