I'm trying to install metrics and logging according the instructions here:
https://docs.openshift.org/latest/install_config/install/advanced_install.html#advanced-install-cluster-metrics

I have something like this in the OSEv3:vars section of my Ansible inventory file:

openshift_hosted_metrics_deploy=true
openshift_hosted_metrics_storage_kind=nfs
openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce']
openshift_hosted_metrics_storage_nfs_directory=/exports
openshift_hosted_metrics_storage_nfs_options='*(rw,root_squash)'
openshift_hosted_metrics_storage_volume_name=metrics
openshift_hosted_metrics_storage_volume_size=10Gi
openshift_hosted_metrics_storage_labels={'storage': 'metrics'}

openshift_hosted_logging_deploy=true
openshift_hosted_logging_storage_kind=nfs
openshift_hosted_logging_storage_access_modes=['ReadWriteOnce']
openshift_hosted_logging_storage_nfs_directory=/exports
openshift_hosted_logging_storage_nfs_options='*(rw,root_squash)'
openshift_hosted_logging_storage_volume_name=logging
openshift_hosted_logging_storage_volume_size=10Gi
openshift_hosted_logging_storage_labels={'storage': 'logging'}

Other than that its pretty standard and minimal configuration.
When it completes all looks good:

$ oc get all
NAME DOCKER REPO TAGS UPDATED
is/registry-console docker-registry.default.svc:5000/default/registry-console latest 30 seconds ago

NAME REVISION DESIRED CURRENT TRIGGERED BY
dc/docker-registry 1 1 1 config
dc/registry-console 1 1 1 config
dc/router 1 1 1 config

NAME DESIRED CURRENT READY AGE
rc/docker-registry-1 1 1 1 3m
rc/registry-console-1 1 1 0 32s
rc/router-1 1 1 1 5m

NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
routes/docker-registry docker-registry-default.os.informaticsmatters.com docker-registry <all> passthrough None routes/registry-console registry-console-default.os.informaticsmatters.com registry-console <all> passthrough None

NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/docker-registry 172.30.176.200 <none> 5000/TCP 4m
svc/kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 8m
svc/registry-console 172.30.187.110 <none> 9000/TCP 32s
svc/router 172.30.158.183 <none> 80/TCP,443/TCP,1936/TCP 5m

NAME READY STATUS RESTARTS AGE
po/docker-registry-1-pvtpt 1/1 Running 0 3m
po/registry-console-1-deploy 1/1 Running 0 32s
po/registry-console-1-vhd6m 0/1 ContainerCreating 0 12s
po/router-1-j0v75 1/1 Running 0 4m
[centos@ip-10-0-17-150 ~]$ oc get all --all-namespaces
NAMESPACE NAME DOCKER REPO TAGS UPDATED
default is/registry-console docker-registry.default.svc:5000/default/registry-console latest 41 seconds ago openshift is/httpd docker-registry.default.svc:5000/openshift/httpd latest,2.4 7 minutes ago openshift is/jenkins docker-registry.default.svc:5000/openshift/jenkins 2,latest,1 7 minutes ago openshift is/mariadb docker-registry.default.svc:5000/openshift/mariadb latest,10.1 7 minutes ago openshift is/mongodb docker-registry.default.svc:5000/openshift/mongodb latest,3.2,2.6 + 1 more... 7 minutes ago openshift is/mysql docker-registry.default.svc:5000/openshift/mysql latest,5.7,5.6 + 1 more... 7 minutes ago openshift is/nodejs docker-registry.default.svc:5000/openshift/nodejs latest,0.10,4 + 1 more... 7 minutes ago openshift is/perl docker-registry.default.svc:5000/openshift/perl 5.16,latest,5.24 + 1 more... 7 minutes ago openshift is/php docker-registry.default.svc:5000/openshift/php latest,7.0,5.6 + 1 more... 7 minutes ago openshift is/postgresql docker-registry.default.svc:5000/openshift/postgresql latest,9.5,9.4 + 1 more... 7 minutes ago openshift is/python docker-registry.default.svc:5000/openshift/python 3.4,3.3,2.7 + 2 more... 7 minutes ago openshift is/redis docker-registry.default.svc:5000/openshift/redis 3.2,latest 7 minutes ago openshift is/ruby docker-registry.default.svc:5000/openshift/ruby 2.2,2.0,latest + 1 more... 7 minutes ago openshift is/wildfly docker-registry.default.svc:5000/openshift/wildfly 9.0,8.1,latest + 2 more... 7 minutes ago

NAMESPACE NAME REVISION DESIRED CURRENT TRIGGERED BY
default dc/docker-registry 1 1 1 config
default dc/registry-console 1 1 1 config
default dc/router 1 1 1 config
logging dc/logging-curator 1 1 1 config
logging dc/logging-es-data-master-odmpzhxe 1 1 1 config
logging dc/logging-kibana 1 1 1 config

NAMESPACE NAME DESIRED CURRENT READY AGE
default rc/docker-registry-1 1 1 1 4m
default rc/registry-console-1 1 1 0 43s
default rc/router-1 1 1 1 5m
logging rc/logging-curator-1 1 1 0 1m
logging rc/logging-es-data-master-odmpzhxe-1 1 1 1 1m
logging rc/logging-kibana-1 1 1 0 1m
openshift-infra rc/hawkular-cassandra-1 1 1 1 2m
openshift-infra rc/hawkular-metrics 1 1 0 2m
openshift-infra rc/heapster 1 1 0 2m

NAMESPACE NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
default routes/docker-registry docker-registry-default.os.informaticsmatters.com docker-registry <all> passthrough None default routes/registry-console registry-console-default.os.informaticsmatters.com registry-console <all> passthrough None logging routes/logging-kibana kibana.os.informaticsmatters.com logging-kibana <all> reencrypt/Redirect None openshift-infra routes/hawkular-metrics hawkular-metrics.os.informaticsmatters.com hawkular-metrics <all> reencrypt None

NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default svc/docker-registry 172.30.176.200 <none> 5000/TCP 4m
default svc/kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 8m
default svc/registry-console 172.30.187.110 <none> 9000/TCP 43s
default svc/router 172.30.158.183 <none> 80/TCP,443/TCP,1936/TCP 5m
logging svc/logging-es 172.30.153.11 <none> 9200/TCP 1m
logging svc/logging-es-cluster 172.30.134.20 <none> 9300/TCP 1m
logging svc/logging-kibana 172.30.132.81 <none> 443/TCP 1m
openshift-infra svc/hawkular-cassandra 172.30.220.44 <none> 9042/TCP,9160/TCP,7000/TCP,7001/TCP 2m openshift-infra svc/hawkular-cassandra-nodes None <none> 9042/TCP,9160/TCP,7000/TCP,7001/TCP 2m
openshift-infra svc/hawkular-metrics 172.30.125.8 <none> 443/TCP 2m
openshift-infra svc/heapster 172.30.235.216 <none> 80/TCP 2m

NAMESPACE NAME READY STATUS RESTARTS AGE
default po/docker-registry-1-pvtpt 1/1 Running 0 4m
default po/registry-console-1-deploy 1/1 Running 0 43s
default po/registry-console-1-vhd6m 0/1 ContainerCreating 0 23s
default po/router-1-j0v75 1/1 Running 0 4m
logging po/logging-curator-1-deploy 1/1 Running 0 59s
logging po/logging-curator-1-z39rt 0/1 ContainerCreating 0 57s
logging po/logging-es-data-master-odmpzhxe-1-pg5f6 1/1 Running 0 1m
logging po/logging-fluentd-fm04l 0/1 ContainerCreating 0 48s
logging po/logging-kibana-1-deploy 1/1 Running 0 1m
logging po/logging-kibana-1-vjr2h 0/2 ContainerCreating 0 1m
openshift-infra po/hawkular-cassandra-1-sgslf 1/1 Running 0 2m
openshift-infra po/hawkular-metrics-r1cct 0/1 Running 0 2m
openshift-infra po/heapster-z6wm4 0/1 Running 0 2m
All looks OK.

I can access logging at a URL like this:
https://kibana.my.domain.com

But metrics stubbornly refused to respond on the default URL:
https://hawkular-metrics.my.domain.com/hawkular/metrics

The route looks OK:

oc describe route/hawkular-metrics -n openshift-infra
Name: hawkular-metrics
Namespace: openshift-infra
Created: 15 minutes ago
Labels: metrics-infra=hawkular-metrics
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","kind":"Route","metadata":{"annotations":{},"labels":{"metrics-infra":"hawkular-metrics"},"name":"hawkular-metrics","namespace":"openshift-infra"},"spec":{"host":"hawkular-metrics.os.informaticsmatters.com","tls": <...snip...>,"to":{"kind":"Service","name":"hawkular-metrics"}}}

Requested Host: hawkular-metrics.os.informaticsmatters.com
exposed on router router 15 minutes ago
Path: <none>
TLS Termination: reencrypt
Insecure Policy: <none>
Endpoint Port: <all endpoint ports>

Service: hawkular-metrics
Weight: 100 (100%)
Endpoints: <none>
But at that endpoint all I get is the "Application is not available" page (I think this indicates that the route is working).

Is that URL incorrect or is something not working correctly?

Thanks

Tim



_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to