Commit Graph

19 Commits

Author SHA1 Message Date
Clark Boylan 2e9cd0c803 Retire this repo
The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.

Change-Id: I83b9374c66f13d672800e76e8c10903f82479471
2022-02-17 12:42:55 -08:00
Paul Belanger 70e0e5f1c6
Fix typo in nodepool-builder.init
Change-Id: I5902595d1aa6ee4e7141b58b51ce6913b73df627
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-01-19 11:32:17 -05:00
Paul Belanger 078f336a01
Don't assume pidfile location
When configuring the dir for the pidfiles in our init scripts don't
assume the path is /var/run/$NAME. The defaults are now /var/run/nodepool
now and could be set to other values as well. Instead of assuming
/var/run/$NAME we instead take the dirname of $PIDFILE and configure
whatever that dir is instead.

Also expose zuulv3 flag to user to toggle the location of pidfile,
this changes in nodepool > 0.5.0.

Change-Id: I7fff2565f9e77d737c247f204925f66a0e4aabe8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-01-17 14:33:32 -05:00
Paul Belanger f88e7f75e7 Rename nodepoold to nodepool-launcher for zuulv3
Change-Id: I83a27cff4e998c165f534c1111d537f9d45b2ac2
Depends-On: Ic04e3cf2dbdaf914bf8f92d073acb972380708f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-28 13:12:14 -04:00
Paul Belanger c283f5975e Switch back to nodepoold for nodepool-launcher service
We haven't yet renamed nodepoold to nodepool-launcher, so revert this
change.

Change-Id: I976b13fc2cfee4b6bf253077e6b27d2de9419895
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-21 08:43:50 -05:00
Paul Belanger c68c8fcede Create nodepool::launcher
Move nodepool-launcher into its own class. This allows us to scale out
nodepool-launcher for our feature/zuulv3 effort.

Change-Id: I393fa1d8ff080260af772a2f020cca9b9e49b173
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-14 13:27:10 -05:00
Clark Boylan d70a85b686 Properly set pidfile for nodepoold
Nodepoold wants to know what its pidfile is too so we need to set that
in the init scripts after we set DAEMON_ARGS. Without this it will
fallback to its default which causes problems when running more than one
nodepoold process.

Change-Id: I5cc73542ae2499f13fadcfad8f692f5123f62630
2016-10-06 11:44:54 -07:00
Paul Belanger 65d3344f81
Add nodepool-(builder|deleter) services
We've been running 3 nodepool services for a week now, lets properly
template them. nodepool uploads images, nodepool-launcher creates
nodes, nodepool-deleter deletes them.

This is mean to be a short term solution for zuulv25, and shouldn't
affect existing nodepool installations.

Change-Id: Iaee3148d6710f796e9f1ea7cba2962cfbb530fa2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-05 17:27:35 -04:00
Spencer Krum bb12dbb646 Colocate a builder-worker with the service
This is an intermediate step before builders are completely broken out
into their own hosts and nodes.

As part of this work we split up the logging configs for the two daemons
which allows them to be colocated and write to different log files on
the same host.

Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Change-Id: I990e96dde352fb7d01cc4b89d0f4f02de166b943
2016-01-29 10:12:13 -08:00
Antoine Musso 16c9a82ec3 graceful-stop now sends SIGINT along SIGUSR1
Nodepoold is being changed to gracefully stop on SIGINT instead of
SIGUSR1: https://review.openstack.org/#/c/206562/

Given above patch, nodepoold ignore each signals while one of them is
being handled.  Hence adjust the init script to send both SIGINT and
SIGUSR1 to keep back compatibility with old nodepoold versions.

Depends-On: Ic403b9cc74bc991b682819bc4663bb4630933a8e
Change-Id: Icb93d7979806710d7998c11dadf307d4ae4422fc
2015-07-28 16:49:58 +02:00
Ian Wienand 2faf92404e Deploy vhost template for nodepool.o.o logs
In Ie0b269835ebb8effbac0285b782d8add7b47db32 I didn't consider how
difficult it is to get puppet to put in AllowOverride directives to
allow .htaccess to work.  The puppetlabs-apache version we use does
not support "override" as an argument, so you can't easily add this to
allow apache to read htaccess.  Upgrading is a big task because we are
so far behind (see I6fa5f3275a84ec4480169de562d1d4a656111814).

So deploy a full template for nodepool vhost that includes the config
options we need.

Additionally, the existing mimetype isn't set for the log-files

---
 $ curl -I http://nodepool.openstack.org/image.log.2014-10-14
 HTTP/1.1 200 OK
 Date: Fri, 17 Oct 2014 00:02:39 GMT
 Server: Apache/2.2.22 (Ubuntu)
 Last-Modified: Tue, 14 Oct 2014 23:59:56 GMT
 ETag: "f89bb-d458315-5056acfe33700"
 Accept-Ranges: bytes
 Content-Length: 222659349
---

I'm pretty sure this means it defaults to text/plain, but this makes
it explicit.  This should also matches on the timestampped log files
per the rules of multiple extensions [1]

[1] http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext

Change-Id: I7fa2603f4160b06af71a515e655d4a705fa0c768
2014-10-17 15:54:24 +11:00
Ian Wienand f3e71467b8 Enable gzip compression on nodepool logs
Add a .htaccess to the nodepool log directory to enable gzip
compression for text/text mime-types; e.g. the quite large .log files
that nodepool outputs there

Change-Id: Ie0b269835ebb8effbac0285b782d8add7b47db32
2014-10-15 11:58:28 +11:00
Clark Boylan eaa2f4493b Put /usr/local/bin in nodepool PATH for dib
When we install dib via pip the executables are put in /usr/local/bin
which was not in nodepool's PATH. The PATH is configured by the init
script so update the variable to include /usr/local/bin.

Change-Id: Ie456ecf667d330b925d3168a456d4ac84d1c48f4
2014-09-23 13:38:45 -07:00
Clark Boylan 397faa1559 Give nodepool user sudo access for dib
Disk image builder requires root permissions to chroot and mount images.
Update the puppet manifest for nodepool to optionally enable
passwordless sudo access for the nodepool user. This defaults to being
allowed but can be toggled if this is deemed an unnecessary security
risk.

Change-Id: If0bf5f182d88c848cd2a64c5c75cc64cc0b42c58
2014-09-23 09:40:26 -07:00
Matthew Oliver f016e06bcb Nodepool image logs accessible via HTTP
Nodepool logs the creation of nodepool images to an image.log which
are only accessible to root users. This change updates the nodepool
puppet configuration to install apache and allows users to access
these image logs.

Change-Id: I867030c258d00ce017c69812c133f3419215d045
2014-02-13 12:26:18 +11:00
Clark Boylan 94701c1e07 Bump nodepool's file descriptor limit.
Nodepool is running into file descriptor limits like Zuul. Again
compromise and bump the limit in the init script to give us breathing
room until the problem can be properly fixed.

Change-Id: Idd1fd679bdad1d3ea4951be7f9330214d7065027
2014-01-06 22:49:36 -08:00
James E. Blair 4092b4bc43 Update nodepool init script to nodepoold
Change-Id: Ia119d3812b721810668c82bf2cb36a1a2d108307
2013-08-30 15:00:31 -07:00
James E. Blair c0f41b5b0d Add image logging config for nodepool
An upcoming change to nodepool supports logging the output from
the image creation process.  Use it.

Change-Id: I3a45a30f813d0f7b9fff4f602b945d72f2dcda3e
2013-08-29 16:25:02 -07:00
James E. Blair 94fbdbab00 Add nodepool host
Change-Id: Ib216bd400aa269ccdb17848b3870ab65400cf3d2
2013-08-16 13:15:42 -07:00