-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"x509: certificate signed by unknown authority" when using HOSA on top of oc cluster up --metrics
#164
Comments
Can you look at the Origin Metrics docs and confirm you followed these directions with the configuration files specified in those docs (I am just wondering if the HOSA docs are somehow outdated due to something changing recently in Origin): What is happening is your Origin Metrics server is using a self-signed certificate and HOSA is not accepting it. I don't know what changed, but I've never seen this before, I just wonder if your config is different than what is expected. When all else fails, just to get you up and going (and still be able to use a self-signed certificate), I think this should work around the problem - in your agent's yaml configuration where it points to your Origin Metrics server (aka "hawkular_server"), set the tls section to indicate you want to ignore this error:
This feature was added recently via #161 but should be in the latest HOSA release. Though, again, I don't know why you would need this unless something changed recently in Origin Metrics. |
@jmazzitelli Thank you for your quick reply, this sounds like a valuable workaround. Looking at https://github.com/openshift/origin-metrics/blob/master/hawkular-agent/hawkular-openshift-agent.yaml, I am wondering where your suggestion would fit in best? The document uses environment variables, such as Also, I want to confirm that I've followed the approach listed here: https://docs.openshift.org/latest/install_config/cluster_metrics.html#deploying-hawkular-openshift-agent. |
@jmazzitelli I now understand how this needs to be done, here's how I've adapted https://github.com/openshift/origin-metrics/blob/master/hawkular-agent/hawkular-openshift-agent-configmap.yaml:
What I don't understand though is, why the same example doesn't work using the cluster internal hostname
The example does only work when I use the cluster external hostname. |
I want to add that the
|
yeah, I mentioned that earlier on the hawkular-dev mailing list. But to make it official, I wrote a git issue on the origin-metrics git repo: openshift/origin-metrics#333 |
I wonder if this is happening because you moved the agent to the openshift-infra rather than default project? Maybe @mwringe can shed some light on this? I should probably run this on the new 3.6 - because you are hitting things I've never seen before. |
I actually had the agent deployed both in the |
The above script is not necessary. I have double-checked and the |
Yeah, we have had some changes in Origin Metrics lately with rearranging how our certificates are being used. We will need to get a new update of HOSA to take this into account |
@jpkrohling - for some reason I can't assign you this ticket. But it's yours :) |
This will be addressed in PR #167 |
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 thedefault
project, I modified the instructions to deploy toopenshift-infra
via-n openshift-infra
.Unfortunately, HOSA keeps reporting an "x509: certificate signed by unknown authority" error when connecting to
https://hawkular-metrics
for bothGet
andPost
operations:I am using
oc cluster up --metrics
with the following version of theoc
cli: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.The text was updated successfully, but these errors were encountered: