Red Hat Bugzilla – Bug 1480051
[starter][starter-us-east-1]Metrics route is not accessible
Last modified: 2017-08-10 21:49:42 EDT
Created attachment 1311512 [details]
"Application is not available" error for metrics route
Description of problem:
starter-us-east-1 env, Metrics route is not accessible."Application is not available" when accesssing metrics route
Command ***** oc get pod -n openshift-infra ***** result as below, hawkular-metrics pod is not reday:
NAME READY STATUS RESTARTS AGE
hawkular-cassandra-1-csx0z 1/1 Running 0 1h
hawkular-cassandra-2-rxtzx 0/1 ContainerCreating 0 1h
hawkular-metrics-1kgwg 0/1 Running 9 1h
heapster-z0f0h 0/1 Running 50 7h
Version-Release number of selected component (if applicable):
OpenShift Master:v220.127.116.11.5 (online version 18.104.22.168)
Steps to Reproduce:
1. login https://metrics.starter-us-east-1.openshift.com/hawkular/metrics
Application is not available shows in UI.
Metrics route could be accessed
The route is not available because the Hawkular Metrics service doesn't have any running pods currently.
This is always the expected behaviour with the router when there are no running pods behind it, it should be clearly stated in the error message from the router when this happens.
The problem here is most likely because the Cassandra pod is stuck in the 'ContainerCreating' phase. Someone needs to fix that problem first (which is not related to metrics, this is likely caused by something like the PV that Cassandra needs cannot be mounted, or there isn't enough room on the node to deploy the pod)
Metrics route could be accessed now.