Unable to start ocs-operator pods with error 'failed to resolve symlink "/var/lib/kubelet/pods/xxxx: permission denied"' in RHOCP 4

Solution Verified - Updated -

Issue

  • Getting permission denied while pod is trying to attach PVC:
Error: failed to resolve symlink "/var/lib/kubelet/pods/xxxx-d52b-4aab-966f-7bb7f2c0b59d/volumes/kubernetes.io~csi/pvc-xxxx-b817-43a1-8a5e-2408dff21c44/mount": lstat /var/lib/kubelet/pods/xxxx-d52b-4aab-966f-7bb7f2c0b59d/volumes/kubernetes.io~csi/pvc-xxxx-b817-43a1-8a5e-2408dff21c44/mount: permission denied
  • Pod is unable to start on specific node with error :failed to resolve symlink /var/lib/kubelet/pods/ : permission denied.

Environment

  • Red Hat Openshift Cluster 4
  • Red Hat Openshift Container Storage

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content