-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
linux, macosx, windows guests inside vmware host
TITLE:
hudson slave-agent (slave.jar) shold not exit when network is missing:
PROBLEM:
currently, when slave-agent runs on start insde a vmware guest,
there are times when java (slave-agent) is started/running,
while vmware network is still not ready;
this causes slave-agent to exit on IOException - see sample hudson.log below;
SOLUTION:
slave-agent code should continue to try to connect after a delay;
WORKAROUND:
1) introduce startup delay
2) intruduce slave-agent dependency on other networked service
############################################
hudson.log:
Jan 9, 2011 1:19:42 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Hudson agent is running in headless mode.
Jan 9, 2011 1:19:42 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among https://moe.barchart.com:443/hudson/
Jan 9, 2011 1:19:43 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: Failed to connect to https://moe.barchart.com:443/hudson/tcpSlaveAgentListener/: moe.barchart.com
java.io.IOException: Failed to connect to https://moe.barchart.com:443/hudson/tcpSlaveAgentListener/: moe.barchart.com
at hudson.remoting.Engine.run(Engine.java:154)
Caused by: java.net.UnknownHostException: moe.barchart.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at hudson.remoting.Engine.run(Engine.java:151)