Failed to spin up a pod with error relabel failed
Applies to
- Astra Trident
- OpenShift Container Platform (OCP)
- ontap-san driver
Issue
Failed to spin up a pod with following error.
Error: relabel failed /var/lib/kubelet/pods/de61fc8c-970e-4144-a4fe-471713bab51f/volumes/kubernetes.io~csi/pvc-f548e660-9cce-416b-b3c8-3752375b3195/mount: lsetxattr /var/lib/kubelet/pods/de61fc8c-970e-4144-a4fe-471713bab51f/volumes/kubernetes.io~csi/pvc-f548e660-9cce-416b-b3c8-3752375b3195/mount/kafka-log1: read-only file system
When running a mount
command on a worker node it shows file system is in read-only(ro).
[root@rhel1~]# mount
/dev/mapper/3600a0980383144626b5d524f516f6a66 on /var/lib/kubelet/pods/de61fc8c-970e-4144-a4fe-471713bab51f/volumes/kubernetes.io~csi/pvc-f548e660-9cce-416b-b3c8-3752375b3195/mount type ext4 (ro,relatime,seclabel,stripe=16)