Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2.22:apply ... General SSLEngine problem

413 views
Skip to first unread message

S C NG

unread,
Aug 19, 2015, 5:44:51 AM8/19/15
to fabric8
I have setup fabric8 vagrant image 2.2.22 and built my own Camel project with "mvn clean install docker:build" successfully. However, "mvn fabric8:json fabric8:apply" failed with the exception below.

I saw this problem in older version (2.1.11) before and it got resolved by adding "KUBERNETES_TRUST_CERT=true" environment variable. I have this environment variable already but it did not resolve my issue this time.

I tried to access

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.410 s
[INFO] Finished at: 2015-08-19T17:34:41+08:00
[INFO] Final Memory: 18M/44M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2.22:apply (default-cli) on project camel-concurrency-t
est: An error has occurred. java.net.ConnectException: General SSLEngine problem: PKIX path building failed: sun.securit
y.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]


My Env variables

DOCKER_HOST=tcp://vagrant.f8:2375
KUBERNETES_DOMAIN=vagrant.f8
KUBERNETES_MASTER=https://172.28.128.4:8443
KUBERNETES_NAMESPACE=default
KUBERNETES_TRUST_CERT=true

Jimmi Dyson

unread,
Aug 19, 2015, 6:29:21 AM8/19/15
to S C NG, fabric8
Hi,

There was a change made (by me, sorry) when we swapped to the new fabric8 Kubernetes client. Can you please try `KUBERNETES_TRUST_CERTIFICATE=true`.

If you've already done an `oc login` (assuming OpenShift?) successfully, this should be using info from the `~/.kube/config` file. Would you be able to share your copy of that file, obviously with any sensitive info removed? Setting the above env var should be unnecessary.

Thanks,
Jimmi

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

S C NG

unread,
Aug 19, 2015, 9:50:08 PM8/19/15
to fabric8, xlogg...@gmail.com
Hi Jimmi,

Thanks for your info. I can get it deployed by updating my env variable to `KUBERNETES_TRUST_CERTIFICATE=true`, and I have to perform "oc login" once so that the `~/.kube/config` file got created. Otherwise, only updating the env variable will still result with the same exception.
Reply all
Reply to author
Forward
0 new messages