vSphere Problem Detector Operator fails with permissions checks in OpenShift 4

Solution Verified - Updated -

Issue

  • Frequently receiving health checks warning for CheckAccountPermissions, CheckComputeClusterPermissions, CheckFolderPermissions and CheckDefaultDatastore.
  • In the logs of the vsphere-problem-detector-operator pod, in namespace openshift-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.

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