Kubelet is unable to attach or mount volumes for Pod which stays in the Pending state in RHOCP 4
Issue
-
A Pod is unable to start and remains Pending:
$ oc get pods -A | grep Pending openshift-storage rook-ceph-osd-2-aaaaaaaaaaa-6dqqz 0/2 Pending 0 16h openshift-storage rook-ceph-osd-2-aaaaaaaaaaa-k8m78 0/2 Pending 0 17h
-
The kubelet orphaned Pod cleanup process is failing with the following error:
May 27 02:49:27 worker02.example.com hyperkube[4898]: E0527 02:49:27.029001 4898 kubelet_volumes.go:245] "There were many similar errors. Turn up verbosity to see them." err="orphaned pod \"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\" found, but error not a directory occurred when trying to remove the volumes dir" numErrs=1
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Kubelet
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.