Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
This repository was archived by the owner on May 11, 2026. It is now read-only.

"x509: certificate signed by unknown authority" when using HOSA on top of oc cluster up --metrics #164

@metmajer

Description

@metmajer

I have deployed HOSA according to the documentation in https://github.com/hawkular/hawkular-openshift-agent/blob/master/README.adoc#running-inside-openshift on my local oc cluster up --metrics cluster. Instead of deploying the agent to the default project, I modified the instructions to deploy to openshift-infra via -n openshift-infra.

Unfortunately, HOSA keeps reporting an "x509: certificate signed by unknown authority" error when connecting to https://hawkular-metrics for both Get and Post operations:

I0415 12:33:11.607507       1 prometheus_metrics_collector.go:103] DEBUG: Told to collect [22] Prometheus metrics from [http://172.17.0.2:8080/metrics]
W0415 12:33:11.628654       1 metrics_storage.go:149] Failed to store metrics. err=Post https://hawkular-metrics/hawkular/metrics/counters/raw: x509: certificate signed by unknown authority
…
I0415 13:32:40.237395       1 discovery.go:264] DEBUG: Detected a new pod that was added: localhost/default/persistent-volume-setup-b516p/42a7b212-21d7-11e7-b0f7-12d904fd13ae
I0415 13:32:40.237412       1 discovery.go:145] DEBUG: Changed pod [localhost/default/persistent-volume-setup-b516p/42a7b212-21d7-11e7-b0f7-12d904fd13ae] does not have volume [hawkular-openshift-agent]
W0415 13:32:40.239585       1 metrics_storage.go:101] Failed to determine if metric definition [pod/9d07d697-21d7-11e7-b0f7-12d904fd13ae/custom/hawkular_openshift_agent_metric_data_points_collected_total] of type [counter] in tenant [openshift-infra] exists. err=Get https://hawkular-metrics/hawkular/metrics/counters/pod%2F9d07d697-21d7-11e7-b0f7-12d904fd13ae%2Fcustom%2Fhawkular_openshift_agent_metric_data_points_collected_total: x509: certificate signed by unknown authority

I am using oc cluster up --metrics with the following version of the oc cli:

$ oc version
oc v3.6.0-alpha.0+0343989
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://127.0.0.1:8443
openshift v3.6.0-alpha.0+0343989
kubernetes v1.5.2+43a9be4

I wanted to try out the most recent https://github.com/openshift/origin/releases/tag/v3.6.0-alpha.1 release, but found that the metrics-deployer component is currently borked: openshift/origin#13777.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions