Commit Graph

35 Commits

Author SHA1 Message Date
Paul Belanger 0913ef63b1
Replace layout config with main.yaml
With zuulv3 there is only a single configuration file now for
projects, no more external python files. Remove zuul_file_layout with
zuul_file_main_yaml.

Change-Id: I63d592999684b1437bb240405a62af0cc362e977
Depends-On: https://review.openstack.org/561475
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-15 15:50:07 -04:00
Paul Belanger 7e2a53bdcd
Remove PREFIX from service files
This was really to work around the need not to template our service
files.  Mostly because I was scared how large and unmanageable they
would become.  Let ansible do its job and remove the hacks we had in
our systemd unit file.

Change-Id: I5ae753d7c2a2d068750bd29400e7b736cc33df39
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 20:32:33 -04:00
Paul Belanger 83d425bdb3
Switch to template for zuul service files
We do this for ansible-role-nodepool, we might as well do it here.

Change-Id: I1976f05ec1ec6fdb69e255297dfa64ab00330e7c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 20:27:49 -04:00
Paul Belanger 0a1c5e8c87
Use commandsocket to stop zuul services
Currently all but zuul-web support the commandsocket, so use that over
kill which systemd does by default.

Change-Id: Ic4eacbf6c74c8b722189780b1845ece0ff485b99
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 16:36:56 -04:00
Paul Belanger 6ccb5af56e
Only zuul-scheduler support reloading
Currently all the other services in zuul do not support it, so we can
remove this logic as it is not needed.

Change-Id: I013c4331070491197a119ff2b2317efa2bce4bc4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 15:56:41 -04:00
Paul Belanger 3a9c863212
Add fingergw support
In zuulv3 we added the fingergw process, update our role to support
that.

Change-Id: I2978bb3c53c2f0ed56a6536be110cb471f157ab2
Depends-On: https://review.openstack.org/551015
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-13 16:36:05 -04:00
Paul Belanger 7d5442f91f
Add support for zuul-web
Zuulv3 creates zuul-web which is needed for log streaming, secrets and
various other things.

Change-Id: Ib3378e6f726d0781750a48f80fe276d63c5c68f5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-06 18:26:10 -05:00
Paul Belanger 9d41bcc959 Update layout for zuulv3 syntax
Add an example tenant to layout.yaml to allow zuul-scheduler to start
properly.

Collect additional logs to add in debugging gate failures.

Change-Id: Ic8db52d90716fe8a73afba231ac3a063db2710db
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-17 00:37:46 +00:00
Paul Belanger 83b74f9cfb Remove default files
This are no longer used since we moved to systemd service config
files.

Change-Id: I69587b0088294a7c86ddd2d2b4091d125f17df62
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-06 16:54:53 +00:00
Paul Belanger fedc3c6666
Switch to systemd per service config files
The recommended way to setup service config files is with using:

  systemctl edit foo.service

This updates our systemd configuration files to support this.

Change-Id: I405d6063ad3d5fd529139d7ce17c3238924f2e45
Depends-On: I92801be5fadc91c72e562b4b8dfb2ed1af24a320
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-26 18:40:52 -04:00
Paul Belanger ad4629102c
Remove ubuntu-trusty support
No need to support 2 LTS releases of ubuntu. Focus on ubuntu xenial.

Change-Id: Ib5d33346cb09bb58a2bca66905f1037345ec7364
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-25 20:20:55 -04:00
Paul Belanger dc3ac2381a Rename zuul-launcher to zuul-executor
Change-Id: Ibca96dec83f7a1a077ada9c8e001e9f173c6e050
Depends-On: I933ad76621b402701d418bcb693192713c79da41
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-15 13:53:04 -04:00
Paul Belanger 3fc94ec74a Switch to feature/zuulv3 as default branch
Now that we are running zuulv3-dev.o.o, we are in a good place to
switch to the feature/zuulv3 branch for our ansible role.

Switch out zuul-server with zuul-scheduler.

Add python2-dnf to bindep.txt for fedora-25 job.

Change-Id: Ib61063c9b542e04f2f14a165f23bc82062714bf8
Depends-On: Id54a479e2e1b406cd5fd526ec6d2ee118b28b8d7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-28 12:46:55 -05:00
Paul Belanger 8ebb97e3e9 Support systemd for centos-7 and ubuntu-xenial
Because of a bug in ansible 2.2, it is easier for us to move to
systemd for ubuntu-xenial.

Change-Id: I0c4709f413b7beb131846b815a9e5c474b3221bb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-24 15:26:14 -05:00
Jenkins e359fd93fe Merge "Migrate config installation from copy -> template" 2016-10-18 21:29:11 +00:00
Adam Gandelman 747f3ba540 Migrate config installation from copy -> template
This migrates installation of config files from using 'copy' to 'template',
allowing downstream users of the role the ability to carry a template in their
playbooks and have it easily rendered out simply by overriding the
zuul_file_*_dest variables.

Note, this omits layout.yaml for the time being

Depends-on: I32cc11901bddd03125e1c4ce6f246d811f414cba

Change-Id: I9f5890a54ded2b0169aa76501828e7856e0d6583
2016-10-18 14:16:10 -07:00
Tristan Cacqueray e51435759e zuul-merger: increase maximum number of opened files
This change tries to mitigate the "Too many open files" error happening
on busy deployment. This is using the same limit as in puppet-zuul
module.

Change-Id: I277865b06b98665e7c577703faf9369b90eec183
2016-10-17 18:19:53 +00:00
Paul Belanger 14202ecc93 Notifiy user is DAEMON is missing
Add a helpful message that the zuul binaries are missing from init.d
scripts.

Change-Id: I703b2c5cce3a09d0330063cb65097dc7041648bc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-10 09:15:33 -04:00
Paul Belanger 854ee57989
Expose user for service configuration for init.d script
Currently we hardcode the user we use to start services. Allow the
user to decided who to use.

Sadly, we cannot support systemd services at this time. We likely need
to switch to the systemd task or write out own logic. We'll have to
revisting this in the future.

Change-Id: I338d167863509667b935ccc7490d796315bc6153
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 19:42:40 -04:00
Paul Belanger 485fe51dbd
If daemon is not installed, exit 5
According to documentation[1] we should use exit code 5 if program is
not installed. This also fixes a bug with our default PREFIX for
ubuntu.

[1] http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Change-Id: I5166cf4970a67cce7af3d2e88d5809e9814a8946
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 05:09:54 -04:00
Paul Belanger a8ec39d644
Add $PREFIX to server configuration files
Since it is possible for zuul to be installed into a virtualenv, we
need to expose the ability for a user to update the prefix for
services.

Change-Id: Ifb7e174a5ed338ed3d299e7e8a5deabd01b2f429
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-29 17:44:36 -04:00
Paul Belanger 242a1c0460
Per service configurations
It is now possible to make configuration changes per service.

Change-Id: Ia59daa9859c22e4ff5e601528a63331d2eef93cf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-28 16:29:59 -04:00
Paul Belanger 390b5157d9
Fix path issue with roles_path
- address ansible-lint issues with test.yaml
  - fix init.d issue on ubuntu-xenial

Change-Id: I8a992ee448b25abd62065baf54230b81c1bf48b2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-27 13:16:18 -04:00
Paul Belanger 3e2496e28e
Add log_config to launcher section
Change-Id: I4579971e6a32b763c35122c11f64195eb6893833
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 18:27:21 -04:00
Paul Belanger 85371e9ad2
Initial support for zuulv2.5
Change-Id: Ic0629f3a7c957905c6241d4e7898a4f12e3ece75
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 15:09:43 -04:00
Paul Belanger 2063ed25a3
Stop templating configuration options
Simplify things by only passing the zuul.conf file, not a template.
If users need more dynamic options, they are free to template the file
first then use us to copy the file in place.

Change-Id: Ibd599b3ece707682eff9650a2244c0fb092f601c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 12:59:42 -04:00
Paul Belanger 4689704c7f Rework service config files
This removes the wonky relative paths used in ansible.

Change-Id: I37cf70c919d3e0a9022b1c63352565c46be07c57
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-28 10:23:01 -05:00
Paul Belanger e08a313323 zuul-merger doesn't support signal HUP
Change-Id: I32fc21568abbefab6979005938a9f5afa158a7d8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-25 15:44:39 -05:00
Paul Belanger 07380285dd Use rsync to copy layout configuration
Change-Id: I406bf0f5207fc9fe42a8c7ccccb3013fcee63969
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-20 12:19:31 -05:00
Paul Belanger 79aec371c1 Drop project-config support
The most I started thinking about this, the more it should be in an
external project.  We've exposed everything the user needs to override
the default settings and reload zuul.

Change-Id: I3b7c08f1511100ccbf50ba1eb8fd7dd220c9eab4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-16 17:09:34 -05:00
Paul Belanger 2eed4399ee Allow user to control service states
Change-Id: Ied277489341bfb7950f12bf6f1fa96f691178348
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-16 15:54:28 -05:00
Paul Belanger 5801ce8f14 Add support for Debian services
Change-Id: I267b590e02ccd3119a9a38d6e42e8eaf87bfe114
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-14 18:35:17 -05:00
Paul Belanger 8d66b8696f Clean up systemd files
Both server and merger should properly load on first-boot now.  Also
drop logging to syslog, since we have logging setup.

Change-Id: I59cc2ade3ce81736f70d4dd7f0bf49d1d2a4f933
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 12:15:19 -05:00
Paul Belanger 1f4cc4fc9d Properly template zuul services
This will allow a user to override our settings, additional we now
have unit tests for code coverage.

Change-Id: I5a10bc09dc1de941af89c11314c32c31a7890434
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 11:31:37 -05:00
Paul Belanger 57e5e1e055 Initial commit
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-10 16:50:05 -04:00