Commit Graph

7 Commits

Author SHA1 Message Date
James E. Blair 1dff39fccd Add REPL
As we continue to debug performance, it can be useful to have access
to a REPL as in Zuul.  Since there is no command socket in Nodepool
as there is in Zuul, the REPL must be engaged with a CLI argument
at startup.

Change-Id: Ieece1628494f79f39bd04216fc9ad7b725e541d8
2023-06-22 13:15:27 -07:00
Fabien Boucher f57ac1881a
Remove uneeded shebang and exec bit on some files
Having python files with exec bit and shebang defined in
/usr/lib/python-*/site-package/ is not fine in a RPM package.

Instead of carrying a patch in nodepool RPM packaging better
to fix this directly upstream.

Change-Id: I5a01e21243f175d28c67376941149e357cdacd26
2019-12-13 19:30:03 +01:00
Mohammed Naser 6b9af280df
docker: don't daemonize when starting images
This patch makes the nodepool process avoid starting up as a daemon in
the Docker images, as it's not meant to become a background process
within a container. In order to have consistent logging like in the
daemonized mode we need to add a new foreground option that runs in
foreground but without debug logging.

Change-Id: I77e9e6e4f94cf726336419a2b22916cc1e974e62
Co-Authored-By: Tobias Henkel <tobias.henkel@bmw.de>
2019-02-08 20:53:04 +01:00
James E. Blair 8784158c75 Resolve paths before demonization
After daemonization, relative paths may be different, so resolve
all of the command line pathname arguments before then.

Change-Id: I2092c3f8e4595d8f874c769f41dacdf47554d681
2018-02-08 10:15:30 -08:00
Tristan Cacqueray a0159428d7 Add webapp port and listen_address configuration
This change adds a webapp settings to nodepool.yaml to enable custom setting
for port and listen_address.

Change-Id: I0f41a0b131bc2a09c47a448c65471e052c0a9e88
2017-06-09 13:56:36 +00:00
Paul Belanger 841f120ff6
Rename nodepool.py to launcher.py
Since we are working towards python3 support, lets rename nodepool.py
to launcher.py to make relative imports nicer, otherwise we'd have to
use:

  from . import foo

Change-Id: Ic38b6a8c2bf25d53625e159cb135b71d383b700c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-17 15:19:47 -04:00
Paul Belanger fbe932e14f Rename nodepoold to nodepool-launcher
The day has come to rename nodepoold to nodepool-launcher.

Change-Id: Ic04e3cf2dbdaf914bf8f92d073acb972380708f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-29 09:28:33 -04:00