Commit Graph

16 Commits

Author SHA1 Message Date
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
Paul Belanger a748468adb Fix version number when installing dev release
Now that we publish dev releases to pypi, we should also allow those
versions to be displayed with --version flag.

Change-Id: I045c9d5382a1035cd7678f9882e32d371f108555
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-05-08 14:18:37 -04:00
David Shrewsbury 0a4d00fd82 Add support for yappi and objgraph output
This duplicates the logic in zuul, and makes us consistent with
current nodepool documentation that says we already support this.

Change-Id: Ib92272b302a5225726a830ee50571fb7ad96e457
2019-04-17 16:15:33 -04: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
Tobias Henkel 97060ea7ba
Document default values of runtime arguments
Argparse can output the default values of the runtime
arguments. Enable it so we have them documented.

Change-Id: I4fd7f21546615bd249485707521d8222fab10962
2019-01-14 14:57:28 +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
James E. Blair 08409fb2fa Exercise pidfile before daemonizing
This is one of the few errors that can cause us to silently
fail to start.

Change-Id: Id5dbf737f55770d77e76fe94f72c2e39b9891dae
2018-02-08 10:15:21 -08:00
James E. Blair 782dca216c Add default logging configuration
Add a default logging configuration based on what was recently
added to Zuul.  This will use sane defaults for system logging,
though it does not yet address image build logging.

Change-Id: Ie86fc6d6839e2eb199c27515346b57b2ebede703
2018-02-07 15:49:19 -08:00
Rui Chen 73e5d8bdd4 Fix nodepool cmd TypeError when no arguemnts
When execute command "nodepool" without any argument,
an internal error TypeError and traceback info
will be raised out now. Output help message to instead.

Change-Id: If96761fd2342c76a2c69a5bb16bd526279502ac0
2017-11-20 09:43:05 +08:00
Jamie Lennox 7f10787e9a Allow loading logging config from yaml
The newer dictConfig logging configuration allows a much more flexible
configuration and should be used in preference to the file config. For
backwards compatibility if the logging configuration has a yaml
extension then load it, otherwise fall back to the file config.

Change-Id: Ia29e294144fa057ded7b72e4475265766f855494
2017-06-07 11:16:50 +10:00
Jamie Lennox 6e206087df Refactor nodepool apps into base app
There is a lot of commonality between the nodepool apps that is
replicated between each of the files. This will mean adding more again
when new apps are added.

Separate a base NodepoolApp and NodepoolDaemonApp that handle the common
parts of setting up a nodepool app and use them in the existing apps.

First Proposed as: I098b0a1d749e9dc400d45355f9295ca07058768b
Then reverted: I7d8f1cd866b768326157f4503c1f729ebb703c0c

Change-Id: I81e80af8e2c18e56db8b6dca59ceb279dc9d591c
2017-03-22 17:04:14 +11:00
David Shrewsbury 3dc2c40d8e Revert "Refactor nodepool apps into base app"
Logging is currently broken due to this change. Nothing is logged.

This reverts commit 03c41ccc35.

Change-Id: I7d8f1cd866b768326157f4503c1f729ebb703c0c
2017-03-20 15:00:30 +00:00
Jamie Lennox 03c41ccc35 Refactor nodepool apps into base app
There is a lot of commonality between the nodepool apps that is
replicated between each of the files. This will mean adding more again
when new apps are added.

Separate a base NodepoolApp and NodepoolDaemonApp that handle the common
parts of setting up a nodepool app and use them in the existing apps.

Change-Id: I098b0a1d749e9dc400d45355f9295ca07058768b
2017-03-17 15:27:17 +11:00
James E. Blair 343f9d0b6e Add stack dump handler to builder
This allows us to see the running threads and their stack traces.

Change-Id: I1b618ae662730f62c02bdb5f9573a3bb25072c9a
2016-12-01 11:25:31 -08:00
Paul Belanger 0c57e681d9 Use common logging for nodepool applications
This works well for zuul, so it should work for nodepool.

Change-Id: I536694494d58c7cb4bb9dd1b10d24ddbdaf127ae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-15 13:56:53 -05:00
James E. Blair 5866f10601 Initial commit
Much of this comes from devstack-gate.

Change-Id: I7af197743cdf9523318605b6e85d2cc747a356c7
2013-08-15 09:47:23 -07:00