Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Pod Deployment is Failing Due to Stale Mount Paths of Orphaned Pods On The Node
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- Pods are getting stuck in the
ContianerCreatingstate post deployment and below mentioned error is recorded at the same time in kubelet logs.
Error
E0422 18:03:55.666613 44260 kubelet_volumes.go:225] orphaned pod "ca7bcbd3-35f9-4497-a7f5-2e901728c3a3" found, but failed to rmdir() volume at path /var/lib/kubelet/pods/ca7bcbd3-35f9-4497-a7f5-2e901728c3a3/volumes/kubernetes.io~portworx-volume/pvc-50a9d02c-57cd-4141-96d6-d6cdf0182625: operation not permitted : There were a total of 2 errors similar to this. Turn up verbosity to see them.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.gocode 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.jsonand due to this thermdir()kernel call on this mount path fails.
Javascript
sudo ls -la /var/lib/kubelet/pods/1d4bfc07-3469-4eaa-992f-6d23c17f3aee/volumes/kubernetes.io~csi/pvc-13c81b28-4038-40d5-b6e8-4194e1d7be0etotal 12drwxr-x--- 2 root root 4096 Oct 7 12:37 .drwxr-x--- 3 root root 4096 Oct 2 19:37 ..-rw-r--r-- 1 root root 270 Oct 7 12:37 vol_data.jsonVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message