Commit Graph

177 Commits

Author SHA1 Message Date
Paul Belanger 98e276dfd1 Use full-reconfigure to reload zuul-scheduler
Depends-On: https://review.opendev.org/c/windmill/windmill/+/798005
Change-Id: Ia1c9af51f4e0d1032ae844b7c97f37841c3ffcef
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-24 14:20:25 -04:00
Paul Belanger 40ba59d89e Make jobs voting again
This should allow us to start testing the latest versions of zuul again.

Change-Id: Ia41f1104bff14728291502c33110eff150d3a372
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 12:03:37 -04:00
Paul Belanger 53c3920c6b Initial database support
This adds a database connection for testing, which will be required in
4.0+.

Change-Id: I3c9ba6aac023a0018d857bd3d34f54cdc26e4b79
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 11:35:59 -04:00
Paul Belanger b39e9df5f5 Switch to -f (foreground) for systemd files
-d will be removed in the next version of zuul.

Change-Id: Icbc6e0b6b82d5d7cb544d223614e741219b70fad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 09:49:35 -04:00
Paul Belanger be19120a4a Add ssl support for zookeeper
Change-Id: I891373b656e4f2ab59e1cdffaa122bc821c46bf1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 21:59:34 -04:00
Paul Belanger 12dd334b2e Clean up bitrot
Depends-On: https://review.opendev.org/c/windmill/windmill-config/+/797553
Change-Id: I12e7b603c9d4ae7364982044069e9ac7ac4d6034
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 21:59:30 -04:00
Paul Belanger a2a78e7ef5 Ensure we have python installed for testing
Also fix / ignore linting errors.

Change-Id: I9bb1b658a1e731f1d61753b958f3c23dc45f3542
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-12-02 12:52:12 -05:00
Paul Belanger 7954e0d563 Clean up openstack references
Switch to opendev.org for all the things.

Change-Id: I487f327948cb274ae748a843af052bf031786041
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 14:27:16 -04:00
OpenDev Sysadmins 8eccde32cf OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:08 +00:00
Paul Belanger 24422999ee Rework tox -edocs
This allows us to drop setup.cfg / setup.py files.

Change-Id: I80243d7d619f8d724fab7c44dc6c1164f3aa5fb3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-30 20:36:32 -04:00
Paul Belanger 45d256899b Create zuul_pip_virtualenv_symlink variable
Expose the ability for a user to create a symlink to a zuul
virtualenv, this is usually needed when you start trying to version
different virtualenv installs.

Change-Id: Icef1ac5c412e6c905c6490899dffa47262812466
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-23 23:20:26 -04:00
Paul Belanger a4a10fc062 Define zookeeper hosts for zuul configuration
Zuul 3.7.0 introduced a breaking configuration change, we now need to
define zookeeper hosts by default.

Disable 306 for ansible-lint until we can decided best fix.

Change-Id: Idd54f1ea75cccbb0dab7978ca4d7778fbc05bf42
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-22 20:14:19 -04:00
Paul Belanger 7c804cd9b5 Set gerrit_io logger to INFO by default for scheduler
We get a lot of information from gerrit_io by default, default this to
INFO as not to grow logs to large.

Change-Id: Iefe9425b48458ed99b4e5653e0270a77e745e210
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 10:45:09 -05:00
Paul Belanger 9ecd092e43 Split zuul service state into own task
It is possible we want to enable a service on boot, but don't want to
ensure it is currently running. This splits our systemd tasks into 2
different checks now.

Change-Id: Ic4d9cd8f770f72c262a099dddd6372c155bae133
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-19 12:06:39 -05:00
Paul Belanger c1d6259f95 Don't reload scheduler when zuul.conf changes
Zuul doesn't (yet) support reloads when zuul.conf changes. For this, you
need to actually stop / start the services.

Change-Id: I7e0932e27bc68777d40a6efa350569a205274f43
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-17 14:13:16 -05:00
Paul Belanger 96b9c0de96 Allow user to optionally manage config files
As an example, if we are only install zuul-web, a user might not want
logging files from other services. However, installing them won't hury
anything, so do that by default.

Change-Id: I3c43259a1a6f1bfc35911fa6e1c9d4f506c05f40
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-07 14:39:51 -05:00
Paul Belanger 60144b8a04 Clean up punctuation
Change-Id: I4dc54429850abfba854a56fbf634143e1e3eb9f2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-21 14:27:21 -05:00
Paul Belanger 44cf73e41c Add zuul_user_shell variable
Give the ability for a user to override the default shell for zuul user
account.

Change-Id: I30cb9a13f4eaf799abb627a99780aef84eaec286
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-21 14:22:42 -05:00
Paul Belanger f561a95699 Clean up ansible-lint 4.0.0 errors
A new release of ansible-lint is out, which has now set a default line
length of 120 chars.

Change-Id: Iecb0d6b69ad1280b328ef4ff1568d1b41d1e6a55
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-18 11:52:22 -05:00
Paul Belanger 9d07dd675e Stop gating on ubuntu-xenial
There is no issues running ubuntu-bionic, so stop gating on
ubuntu-xenial to save CI resources.

Change-Id: If3df793eddb52b03c32afb028f69186c26e474d5
Depends-On: https://review.openstack.org/623074
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-05 16:48:56 -05:00
LeopardMa 1446ef2e47 Change openstack-dev to openstack-discuss
Change-Id: Iffe1e8aeb161ce1d64000663f9ff325ff764b528
2018-12-03 21:23:01 -05:00
Paul Belanger 9f0dbe057d Set 0640 for zuul.conf
As is contains secrets for github connection driver.

Change-Id: I6fa51a4c1fe91cc6c9d89f136edb60c2df4f2e76
Depends-On: https://review.openstack.org/593992
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-20 22:43:51 -04:00
Paul Belanger 1c4444bb7e Use new log collection process
Change-Id: I97126c99e532d62695a18176ed6a1fc2e351b0da
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 21:08:47 -04:00
Paul Belanger 118b914aec Fix deprecation warning for ansible
Change-Id: I4a79e9396feb93d12138ee88e0cd1fa5ecba301b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 12:47:24 -04:00
Paul Belanger f1cd85520b Fix truthy value should be true or false warnings
Running yamllint, this exposed the follow warnings. Lets clean them up
before we switch to molecule.

Change-Id: I7eec334124e8c5eecb5a0b5670f0e512ef50a607
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 12:33:51 -04:00
Paul Belanger 0b7d16473e
Gate on ubuntu bionic
This is the latest LTS for ubuntu, and we are ready to gate.

Change-Id: I439ea800b01130eda65e2ffd41ff9f10612adbd0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-31 20:44:47 -04:00
Paul Belanger 7221601eab
Switch to fedora-latest for testing
This makes it easier for openstack-infra to upgrade fedora nodes.

Change-Id: Ib5c4b285361c10d5bcdcdaa71d55537393b628d5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-31 20:44:00 -04:00
Paul Belanger fe578f0e9f
Remove zookeeper workaround
Change-Id: I058eeda9ad09ebc6dbe1bde6cbfec640bb084559
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-27 10:47:08 -04:00
liusheng 621bbb0150 Support editable flag to pip installation
This is useful for deploying experimental CI system for testing.

Change-Id: Ib66ae60936c5659a43857d3e0d0b1a08a089e288
2018-07-03 09:37:31 +08:00
Paul Belanger a5d0f0b7f3
Limit linters to current working directory
Change-Id: Iabf23f917e9e2c52f9c9cc04233c644dcba105de
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 15:32:54 -04:00
Paul Belanger 3a377a0f25
Revert "Don't install zuul_build_depends for pip"
Until we actually provide wheels for all dependencies, we have to
revert this.

This reverts commit 6f0e13b909.

Change-Id: I221a7474f5b52059125a7480f432a5ac3b3b648e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 10:16:57 -04:00
Paul Belanger 0042469bc4
Bump minimal version of ansible to 2.4.0
Currently 2.4.0 is the oldest release of ansible, everything later is
EOL. Update our meta data into include this and the platforms we
currently tests with.

Change-Id: I52501c5916f7812be0ce0fbaaec5be82aa30a093
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 16:13:58 -04:00
Paul Belanger 2425f22d75
Remove tox functional
This is no longer needed.

Change-Id: Icaa532e8d8e4ca58535bcdc270cb9c09498eda5a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 16:13:39 -04:00
Paul Belanger 6940659072
Add new build dependencies
Commit Id1b9d7334db78d0f13db33d47a80ffdb65f921df added a new build
dependency to support regex matching of github status.

Change-Id: Id99037602e4e501545714f3485f3603177422717
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 16:12:27 -04:00
Paul Belanger 7f4bcf4f51
Stop setting pidfile for zuul.conf
There really isn't a need to override these defaults, we also use -d
flag by default when starting services, so pidfile aren't actually
used.

Change-Id: Iac3d42b332563b6a850ed49bb750c6c0eae8ac36
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-16 11:41:17 -04:00
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 cd931ba37c
Pass list of packages directly to package task
There is no need to loop over the list of packages, this is actually
slower.

Change-Id: Ifd7d9b9608d25b7078a215bce57babf18c4abce6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-14 16:41:25 -04:00
Paul Belanger 3a137fd752
Stop using pre-compiled wheels
We actually want to ensure users are able to use our roles outside of
openstack-infra. Since those users won't have wheel mirrors, disable
our jobs from using them too.

Change-Id: I219f8980c5e0ee18cfa80b64ae179156cff7ee2b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 14:12:11 -04:00
Paul Belanger cdba41e540
Default zuul_pip_executable to pip3
Moving forward, we'll only support zuul under python3.

Change-Id: I3fdabe07e6aceff68442dfb295fb3c24d6e05b58
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 13:00:49 -04:00
Paul Belanger 6cb235189a
Default install method to pip
We want to encourge users to use the released versions of zuul, so
flip the switch to pip.  We still support git and will continue to
test against it.

Change-Id: I72c99d162efd9fbdbb0ed9363a6779a379a06264
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 22:17:25 -04:00
Paul Belanger 6f0e13b909
Don't install zuul_build_depends for pip
When installing zuul from pip (pypi.python.org) there is no need
to install the build dependenies as we download the wheel.

Change-Id: I2c33e0a0a92b5b7386b952626200473cc77fbb93
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 22:14:49 -04:00
Paul Belanger 65e23fa622
Refactor jobs to support pip / git installation testing
Because we want users to support both pip / git install methods,
refactor testing to support the testing of that.

Change-Id: I8c6bfa94b22af73f84ead571d04181e4cfb8330e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 21:51:17 -04:00
Paul Belanger d701975a50
Simplify systemd service configuration
Merge these files into a single override.conf file.

Change-Id: I2ebfc8b5d0f85fc635a87adc2e2d607239287a92
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-05 00:15:42 -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 9167794c34
Add support to manage SSL cert
Since gear support SSL certs, add in some support to place them into
the SSL folder.  It is possible we might want to move this into an
ansible role, but for now it seems minimal to support it.

Change-Id: I5a3097a6026f648c6dbabb1e26e6a4d201f68c1c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-03 22:36:28 -04:00
Paul Belanger 20729b2f30 Collect journald logs
It is helpful when systemd fails for our services, to collect logs and
see why that is.

Change-Id: I084e4985d33caa77607b3ff1211837fe86a753ca
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-13 22:32:57 +00:00
Zuul 8b849814b6 Merge "Add fingergw support" 2018-03-13 22:20:18 +00:00