Commit Graph

7 Commits

Author SHA1 Message Date
Andreas Jaeger 4adbecad99 Fix flake8
fix a "bug" in that the flake8 configuration in tox.ini was exclusively
selecting H231 as the only error it would report, so it was missing the
errors in the python modules (such as submit_log_processor_jobs). Due to
this being the case for a long time (since 2004) limit the more thorough
linting to the roles/ and playbooks/ directories where we'll be adding
ansible plugins/modules/etc. Also, lint in jenkins/script and nodepool.

Fix problems found.

We can lint everything with pep8 once the zuul v2 scripts are removed,
not worth patching them right now.

Change-Id: I479f010643cf3b67c183d763510f07a33400d38b
Co-Authored-By: Jesse Keating <omgjlk@us.ibm.com>
2017-10-21 18:37:10 +02:00
zhangyanxian 6c28b0b4db Fix typos in initialize-urandom.py & gerrit-git-prep.sh
TrivialFix

Change-Id: I77e9a4202ea7feb9b4ae682237345487ba57a241
2016-11-08 03:57:55 +00:00
Paul Belanger d540370fe0
Remove After=network.target from initialize-urandom service
This actually breaks a dependency cycle we had with glean.  And now
initialize-urandom is run before networking is started.

Change-Id: I891ae11435d279de505d7552129d60efc84de46b
Depends-On: Ifa98cc45f6bbdec722bc9452f17c29a8bddc6a0e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-01 15:12:40 -04:00
Paul Belanger bf315be8c5
Add After=network.target for urandom.service
By making initialize-urandom.service work the same way glean.service
does, we can ensure both services run.  Today, glean will report a
dependency error, which breaks networking on ubuntu-xenial.

Change-Id: Ia7e26166323bd398edd000e70368928e758f22d3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-19 14:32:28 -04:00
Paul Belanger 779f3d8109
Fix file permissions with initialize-urandom element
We overlooked setting up the proper permission on both our
initialize-urandom python and systemd scripts.

Change-Id: I6da27a049954961c9333ebeb48382f8b175dc2d9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-18 23:09:10 -04:00
Monty Taylor b195f8ef6e
Add glue to get initialize-urandom installed
Here we are installing our python app, and setting up systemd.  Our
server should run after haveged and before unbound.

Change-Id: I4f9b24f217f271b64f324c922948c54c46cb1110
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-17 21:21:20 -04:00
James E. Blair 6020537b2c Nodepool elements: Add a script to initialize urandom
In our Xenial images, we see unbound take a while to start because
it uses openssl which uses the getrandom call which can block during
early boot if the nonblocking random number generator is not yet
initialized.

This script uses haveged to quickly initialize the generator.

This commit only includes the script, a later commit will add the
rest of the necessary install steps to the element.

Change-Id: I09d18a0bad6c380fd149660ebfdaf6c12730dc74
2016-08-17 15:22:26 -07:00