Metrics - Administrator has not installed a router or the router is not selecting this route.
Hello guys!
I followed ths instructions in: https://docs.openshift.org/latest/install_config/cluster_metrics.html
The metrics-deployer POD in in error state. Any help will be appreciated.:
$ oc projects
You have access to the following projects and can switch between them with 'oc project
- openshift-infra
Using project "openshift-infra" on server "https://10.8.7.213:8443".
$ oc get pods NAME READY STATUS RESTARTS AGE hawkular-cassandra-1-f2oti 1/1 Running 0 1h hawkular-metrics-q5wsp 1/1 Running 0 1h heapster-5d391 1/1 Running 0 1h metrics-deployer-ljq6v 0/1 Error 0 1h
$ oc logs metrics-deployer-ljq6v --- validate_deployment_artifacts --- ======== ERROR ========= validate_deployment_artifacts: The hawkular-metrics route is not active. This often means that the route has already been created (likely in another project) and this one is newer.
It can also mean that no router has been deployed.
--- validate_deployed_project --- VALIDATION FAILED
$ oc status In project openshift-infra on server https://10.8.7.213:8443
svc/hawkular-cassandra - 172.30.124.69 ports 9042->cql-port, 9160->thift-port, 7000->tcp-port, 7001->ssl-port rc/hawkular-cassandra-1 runs openshift/origin-metrics-cassandra:latest rc/hawkular-cassandra-1 created about an hour ago - 1 pod
svc/hawkular-cassandra-nodes (headless) ports 9042, 9160, 7000, 7001 rc/hawkular-cassandra-1 runs openshift/origin-metrics-cassandra:latest rc/hawkular-cassandra-1 created about an hour ago - 1 pod
https://pxl0docker001 (reencrypt) to pod port https-endpoint (svc/hawkular-metrics) rc/hawkular-metrics runs openshift/origin-metrics-hawkular-metrics:latest rc/hawkular-metrics created about an hour ago - 1 pod
svc/heapster - 172.30.238.235:80 -> http-endpoint rc/heapster runs openshift/origin-metrics-heapster:latest rc/heapster created about an hour ago - 1 pod
Errors:
- route/hawkular-metrics is routing traffic to svc/hawkular-metrics, but either the administrator has not installed a router or the router is not selecting this route.
$ oc get route NAME HOST/PORT PATH SERVICE TERMINATION LABELS hawkular-metrics pxl0docker001 hawkular-metrics:https-endpoint reencrypt metrics-infra=hawkular-metrics,name=hawkular-metrics
$ oc describe route/hawkular-metrics
Name: hawkular-metrics
Namespace: openshift-infra
Created: About an hour ago
Labels: metrics-infra=hawkular-metrics
name=hawkular-metrics
Annotations:
Version
$ oc version oc v1.3.0-alpha.3+1148c68 kubernetes v1.3.0+507d3a7 features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://10.8.7.213:8443 openshift v1.3.0-alpha.3+1148c68 kubernetes v1.3.0+507d3a7
Solved after create the router: https://docs.openshift.org/latest/install_config/install/deploy_router.html