#315 Execution crashes when connecting to a minion
Closed: Fixed Opened by mkrizek.

Day after we deployed disposable clients to prod a new traceback appeared. Investigate and propose a fix.

[testcloud.instance] 06:42:39 INFO    Successfully booted instance taskotron-706d431a-c653-11e5-86d4-525400120b80
[libtaskotron] 06:43:00 INFO    Running Task over SSH on machine taskotron-706d431a-c653-11e5-86d4-525400120b80
[libtaskotron] 06:43:02 CRITICAL Traceback (most recent call last):
  File "/usr/bin/runtask", line 9, in <module>
    load_entry_point('libtaskotron==0.4.8', 'console_scripts', 'runtask')()
  File "/usr/lib/python2.7/site-packages/libtaskotron/main.py", line 151, in main
    overlord.start()
  File "/usr/lib/python2.7/site-packages/libtaskotron/overlord.py", line 95, in start
    runner.execute()
  File "/usr/lib/python2.7/site-packages/libtaskotron/minion.py", line 162, in execute
    task_vm.wait_for_port(self.port)
  File "/usr/lib/python2.7/site-packages/libtaskotron/ext/disposable/vm.py", line 127, in wait_for_port
    s.connect((self.ipaddr, port))
  File "/usr/lib64/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Log: https://taskotron.fedoraproject.org/taskmaster/builders/x86_64/builds/165247/steps/runtask/logs/stdio


This ticket also depends on https://pagure.io/taskotron/issue/47

This ticket had assigned some Differential requests:
D737

So crashing is fixed, we'll see how often vm's ip isn't found and investigate further. Until then, I am closing this.

Metadata Update from @mkrizek:
- Issue marked as depending on: #185

Metadata