zuul/zuul/cmd
Antoine Musso 1c80f506db Import Zuul modules at top of files
We had to make sure to not import Paramiko before daemonization.  The
zuul-server would hang when establishing a Gerrit ssh connection due to
Random.Crypto() failling to acquire random number from /dev/urandom. It
would block on read() and never process.

When the Server command line invokes the daemonization, python-daemon
closes all file descriptors. Including /dev/urandom. Then the daemonized
establishes the SSH connection and fails to get random number because
Random.Crypto() locks on read() on a closed file description.

Paramiko issue is https://github.com/paramiko/paramiko/issues/59 and the
fix is to use os.random:
6f211115f4

That has been released with Paramiko 1.11.6 and we now require 2.0+.

Move Zuul imports at top of files and drop the comments hinting at the
Paramiko bug.

Change-Id: I5fe956df74815761e3eac2bd25f6fd7f167fc854
2018-03-05 11:23:32 +01:00
..
__init__.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
client.py Support autoholding nodes for specific changes/refs 2018-02-08 19:26:08 +01:00
cloner.py Support post jobs by supporting rev checkout 2016-07-12 12:51:51 +10:00
executor.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
fingergw.py Revert "Register term_handler for all zuul apps" 2018-01-22 15:20:24 +01:00
merger.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
migrate.py Merge "Parent legacy jobs with artifacts legacy-publish-openstack-artifacts" into feature/zuulv3 2017-09-28 20:35:02 +00:00
scheduler.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
web.py Add /info and /{tenant}/info route to zuul-web 2018-02-19 09:31:13 -06:00