yandex-qatools / teamcity-openstack-plugin

Teamcity plugin to add openstack integration
Other
25 stars 24 forks source link

Openstack detection behind proxy #35

Closed axel3rd closed 5 years ago

axel3rd commented 5 years ago

When agent started on some host behind internet proxy, error:

[2019-01-15 17:00:27,475]  ERROR -    jetbrains.buildServer.AGENT - Unknow problem on Openstack plugin: Server returned HTTP response code: 407 for URL: http://169.254.169.254/openstack/latest/meta_data.json.
java.io.IOException: Server returned HTTP response code: 407 for URL: http://169.254.169.254/openstack/latest/meta_data.json
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
        at java.net.URL.openStream(URL.java:1038)
        at jetbrains.buildServer.clouds.openstack.OpenstackAgentProperties.readDataFromUrl(OpenstackAgentProperties.java:96)
        at jetbrains.buildServer.clouds.openstack.OpenstackAgentProperties.afterAgentConfigurationLoaded(OpenstackAgentProperties.java:52)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at jetbrains.buildServer.util.EventDispatcher$3.run(EventDispatcher.java:128)
        at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:76)
        at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:122)
        at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:72)
        at com.sun.proxy.$Proxy8.afterAgentConfigurationLoaded(Unknown Source)
        at jetbrains.buildServer.agent.impl.BuildAgentImpl.init(BuildAgentImpl.java:799)
        at jetbrains.buildServer.agent.AgentMain2.startAgent(AgentMain2.java:203)
        at jetbrains.buildServer.agent.AgentMain2.main2(AgentMain2.java:79)
        at jetbrains.buildServer.agent.AgentMain2.main(AgentMain2.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at jetbrains.buildServer.agent.AgentMain.main(AgentMain.java:43)

This use case should be managed, this is not an error.