vSphere Problem Detector Operator fails with permissions checks in OpenShift 4
Issue
- Frequently receiving health checks warning for
CheckAccountPermissions
,CheckComputeClusterPermissions
,CheckFolderPermissions
andCheckDefaultDatastore
. -
In the logs of the
vsphere-problem-detector-operator
pod, in namespaceopenshift-cluster-storage-operator
, messages like the following ones can be seen:CheckAccountPermissions failed: missing privileges for vcenter: Cns.Searchable, Sessions.ValidateSession, StorageProfile.Update, StorageProfile.View failed to run checks: missing privileges for vcenter: Cns.Searchable, Sessions.ValidateSession, StorageProfile.Update, StorageProfile.View
error getting datastore DXX: failed to access datastore DXX: datastore 'DXX' not found CheckDefaultDatastore failed: defaultDatastore "DXX" in vSphere configuration: failed to access datastore DXX: datastore 'DXX' not found CheckFolderPermissions failed: failed to access DXXXX: failed to access DXXXX: datastore 'DXX' not found
Environment
- Red Hat OpenShift Container Platform
- 4
- VMware vSphere
- vSphere Problem Detector Operator
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.