vsphere-plugin~Synchronization failed due to missing privileges for datastore

Solution Verified - Updated -

Issue

  • After changing the existent datastore to a new one, the cluster shows the alert vsphere-plugin~Synchronization failed.

  • The vsphere-problem-detector-operator log reports there are missing privileges for the old datastore.

2025-02-13T22:10:59.284952686Z I0213 22:10:59.283985       1 datastore.go:125] CheckStorageClasses: thin-csi: storage policy openshift-storage-policy-xxxx-yyyy: missing privileges for datastore ds:///vmfs/volumes/aaaaaaaa-bbbbbbbb-cccc-dddddddddddd/: Datastore.AllocateSpace, Datastore.Browse, Datastore.FileManagement
2025-02-13T23:11:29.218497391Z I0213 23:11:29.218375       1 event.go:364] Event(v1.ObjectReference{Kind:"Deployment", Namespace:"openshift-cluster-storage-operator", Name:"vsphere-problem-detector-operator", APIVersion:"apps/v1", ResourceVersion:"", FieldPath:""}): type: 'Warning' reason: 'FailedVSphereCheckStorageClasses' StorageClass thin-csi: storage policy openshift-storage-policy-xxxx-yyyy: missing privileges for datastore ds:///vmfs/volumes/aaaaaaaa-bbbbbbbb-cccc-dddddddddddd/: Datastore.AllocateSpace, Datastore.Browse, Datastore.FileManagement

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.12 or greater.
  • VMware vSphere.

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