Search code examples
kubernetessyndesis

Syndesis (Fuse-online) Integration build failed for unknown host "maven1.repo.org"


We installed fuse-online 7.4 on openshift 3.11. We created an integration containing an OpenApiProvider connection and an SQL connection.

When we publish the integration, the build fails with the following error: "repo1.maven.org: Name or service not known: Unknown host repo1.maven.org: Name or service not known"

  • Openshift is installed behing an enterprise http proxy
  • The image registry.access.redhat.com/fuse7/fuse-ignite-s2i is pulled correctly since docker is configured with proxy.
  • syndesis-server DeploymentConfig has been set with proxies environment variables

I suppose that, since the buildconfig for the integration is created dynamically, is not possible to inject HTTP_PROXY,HTTPS_PROXY,NO_PROXY env variables to the build pod.

We read https://docs.openshift.com/container-platform/3.11/install_config/http_proxies.html#s2i-builds but since we don't have any rights to modify s2i image we cannot proceed.

Is there any way to provide proxy information during during fuse-online integration build?


Solution

  • Finally we succeeded to inject http proxy environment variables in dynamic created build pods. We modified syndesis-server-config config map reporting proxy variables on mavenOptions key like this:

    mavenOptions: "-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort= -Dhttp.nonProxyHosts="

    Thanks for the support

    Let me know if you have any other idea of resolving the issue