Queries to the Hawkular Metrics pod return 'Status Code:500 Kubernetes client request failure'

Solution Unverified - Updated -

Issue

  • During a new deploy of an environment behind a proxy, a /query to the hawkular endpoint returns the error 'Status Code:500 Kubernetes client request failure':

    # oc logs hawkular-metrics-3ch7c
    2017-07-03 15:55:25 Starting Hawkular Metrics
    Error: the service account for Hawkular Metrics does not have permission to view resources in this namespace. View permissions are required for Hawkular Metrics to function properly.
    Usually this can be resolved by running: oc adm policy add-role-to-user view system:serviceaccount:openshift-infra:hawkular -n openshift-infra
    

Environment

  • OpenShift Container Platform 3.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.