Yelp/Tron — Issue #95: Failed to connect to host
Author: popofr13
Created: 2012-02-21 15:28:39+00:00
State: open

We have installed the latest version 2.à.10 of tron on an Ubutnu via the debian package.

We dit a simple configuration :

tron run as user tron
ssh keys in /var/lib/tron/.ssh/id_rsa and /var/lib/tron/.ssh/id_rsa.pub
ssh key as as ssh_options/identities
a simple node (the same machine, but with domaine name dev.mydnsexamplename.com)
a simple job

But no success to execute the job ....

We launch trond with --debug option, and this is sample of the log

2012-02-21 16:21:49,029 tron.mcp INFO Storing state in /var/lib/tron/tron_state.yaml
2012-02-21 16:21:51,040 tron.mcp INFO State writing completed in in 2 seconds
2012-02-21 16:21:57,044 tron.node WARNING Cannot run SomeJobName, Failed to connect to dev.mydnsexamplename.com
2012-02-21 16:21:57,045 tron.node INFO Calling fail_run callbacks
2012-02-21 16:21:57,045 tron.action INFO Action run SomeJobName failed with exit status None
2012-02-21 16:21:57,045 tron.mcp INFO Storing state in /var/lib/tron/tron_state.yaml
2012-02-21 16:21:57,130 tron.job INFO No cleanup action for SomeJobName exists
2012-02-21 16:21:57,153 tron.action INFO Action error: [Failure instance: Traceback (failure with no frames): : Connection to dev.mydnsexamplename.com failed
]
2012-02-21 16:21:57,174 tron.action WARNING Failed to connect to host dev.mydnsexamplename.com for run SomeJobName
2012-02-21 16:21:59,054 tron.mcp INFO State writing completed in in 2 seconds

The reason of failure is not really clear :( After investigation, is seems to be a timeout (we change CONNECT_TIMEOUT in node.py).
If we log on the machine with tron user, and try : ssh dev.mydnsexamplename.com, connect is done ....

We really wants to use tron scheduler. Ask if you need more information to reproduce/find the problem.

More information : we use amazon EC2, dev.mydnsexamplename.com is configured to an elastic ip.