270 Commits

Author SHA1 Message Date
Zuul
7ef6520aad Merge "Update zookeeper-statsd to python3.9 on bullseye" 2021-11-05 20:46:07 +00:00
Clark Boylan
0f51ccf87f Update zookeeper-statsd to python3.9 on bullseye
We're currently on python3.9 on buster.

Change-Id: Ib8be56d44c89850cd63d700694cda174aa2efa4f
2021-11-04 16:49:04 -07:00
Clark Boylan
fd0aba7445 Update haproxy-statsd to bullseye and python3.9
We should generally try to keep these things up to date so do it now.

Change-Id: I59c21959094a87eb5a1e6f80e0a72be47370c072
2021-11-04 15:53:35 -07:00
Zuul
9c29fd8324 Merge "Remove the gerrit group in favor of the review group" 2021-10-22 16:15:56 +00:00
Clark Boylan
2f11da87b0 Build Gerrit 3.3.7 images
This updates our Gerrit 3.3 images to the new 3.3.7 release.

Change-Id: Ib676be49bcc9cd4633dbe6fe87dd6e3a32185a55
2021-10-14 11:46:44 -07:00
Zuul
b1e65bf085 Merge "Switch test gerrit hostname to review99.opendev.org" 2021-10-13 17:47:53 +00:00
Zuul
0017bdc468 Merge "Replace testing group vars with host vars for review02" 2021-10-13 17:16:31 +00:00
Zuul
da1bd39a2a Merge "Remove Gerrit 3.2 images" 2021-10-12 20:59:11 +00:00
Clark Boylan
cf91bc0971 Remove the gerrit group in favor of the review group
Having two groups here was confusing. We seem to use the review group
for most ansible stuff so we prefer that one. We move contents of the
gerrit group_vars into the review group_vars and then clean up the use
of the old group vars file.

Change-Id: I7fa7467f703f5cec075e8e60472868c60ac031f7
2021-10-12 09:48:53 -07:00
Clark Boylan
63f5674e6f Switch test gerrit hostname to review99.opendev.org
Previously we had set up the test gerrit instance to use the same
hostname as production: review02.opendev.org. This causes some confusion
as we have to override settings specifically for testing like a reduced
heap size, but then also copy settings from the prod host vars as we
override the host vars entirely. Using a new hostname allows us to use a
different set of host vars with unique values reducing confusion.

Change-Id: I4b95bbe1bde29228164a66f2d3b648062423e294
2021-10-12 09:48:53 -07:00
Clark Boylan
76baae4e3f Replace testing group vars with host vars for review02
Previously we had a test specific group vars file for the review Ansible
group. This provided junk secrets to our test installations of Gerrit
then we relied on the review02.opendev.org production host vars file to
set values that are public.

Unfortunately, this meant we were using the production heapLimit value
which is far too large for our test instances leading to the occasionaly
failure:

  There is insufficient memory for the Java Runtime Environment to continue.
  Native memory allocation (mmap) failed to map 9596567552 bytes for committing reserved memory.

We cannot set the heapLimit in the group var file because the hostvar
file overrides those values. To fix this we need to replace the test
specific group var contents with a test specific host var file instead.
To avoid repeating ourselves we also create a new review.yaml group_vars
file to capture common settings between testing and prod. Note we should
look at combining this new file with the gerrit.yaml group_vars.

On the testing side of things we set the heapLimit to 6GB, we change the
serverid value to prevent any unexpected notedb confusion, and we remove
replication config.

Change-Id: Id8ec5cae967cc38acf79ecf18d3a0faac3a9c4b3
2021-10-12 09:48:45 -07:00
Zuul
721b832b16 Merge "letsencrypt: avoid running on handler changes" 2021-10-11 23:35:39 +00:00
Zuul
b75da802ca Merge "Test upgrade from Gerrit 3.3 to 3.4" 2021-10-11 23:35:34 +00:00
Zuul
4a557023db Merge "Test ansible-devel with an ubuntu-focal bridge.o.o" 2021-10-11 20:13:36 +00:00
Ian Wienand
432a995184 gerrit: diff config files on upgrade
This ensures we don't miss things gerrit might update in config files

Change-Id: I28cd18f7a180d9f8968441b35642f74cb0c42e34
2021-10-11 18:29:06 +11:00
Zuul
39285a57e4 Merge "Start building gerrit 3.4" 2021-10-10 22:30:40 +00:00
Zuul
fed8ec476b Merge "Upgrade Gerrit to 3.3" 2021-10-10 20:45:48 +00:00
Clark Boylan
46faa6626b Remove Gerrit 3.2 images
This should be merged after we are on 3.3 and happy with the state of
things.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/813081
Change-Id: I4173df5e4ae38af6423402be0299470323762da2
2021-10-07 20:07:38 +00:00
Clark Boylan
0f6c29c0ee Test upgrade from Gerrit 3.3 to 3.4
This shifts our Gerrit upgrade testing ahead to testing 3.3 to 3.4
upgrades as we have upgraded to 3.3 at this point.

Change-Id: Ibb45113dd50f294a2692c65f19f63f83c96a3c11
2021-10-07 11:57:04 -07:00
Monty Taylor
d49f399b17 Start building gerrit 3.4
Change-Id: I9cd8c9e1fb837dae91057da9bc80a3f15e566a59
2021-10-07 11:54:50 -07:00
Clark Boylan
e47dccdc34 Upgrade Gerrit to 3.3
This bumps the gerrit image up to our 3.3 image. Followup changes will
shift upgrade testing to test 3.3 to 3.4 upgrades, clean up no longer
needed 3.2 images, and start building 3.4 images.

Change-Id: Id0f544846946d4c50737a54ceb909a0a686a594e
2021-10-07 11:54:46 -07:00
Clark Boylan
c42099717b Fix gerrit image dep in zuul config
When we moved gerrit to bullseye images we failed to update this
depedency in zuul. Fix that.

Change-Id: I2cc4f8ca8137c4b78d437ab695e8ff831178e1f5
2021-10-07 11:50:13 -07:00
Ian Wienand
fc992cd0e8 letsencrypt: avoid running on handler changes
Avoid running the letsencrypt job when other roles add handlers for
their certificates.  We don't need to run this job explicitly in that
case.

Change-Id: Ic2e9b7fc81b73ecf7af197b83496e3589bb28bb0
Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
2021-10-07 11:38:02 +11:00
Zuul
91c6b2ae84 Merge "Build our gerrit images on Bullseye" 2021-10-07 00:12:30 +00:00
Zuul
9f1f1ef811 Merge "Update our gitea images to bullseye" 2021-10-06 15:53:35 +00:00
Kendall Nelson
62e30e52de Setting Up Ansible For ptgbot
Heavily taken from statusbot, but removed wiki and twitter defaults.

Change-Id: I7b1958dbe37e5d25b8fde746235c88a4d6763ffd
2021-10-06 15:39:25 +11:00
Ian Wienand
547a4578bd letsencrypt : don't use staging in the gate
Currently we connect to the LE staging environment with acme.sh during
CI to get the DNS-01 tokens (but we never follow-through and actually
generate the certificate, as we have nowhere to publish the tokens).
We've known for a while that LE staging isn't really meant to be used
by CI like this, and recent instability has made the issue pronounced.

This modifies the driver script to generate fake tokens which work to
ensure all the DNS processing, etc. is happening correctly.

I have put this behind a flag so the letsencrypt job still does this
however.  I think it is worth this job actually calling acme.sh to
validate this path; this shouldn't be required too often.

Change-Id: I7c0b471a0661aa311aaa861fd2a0d47b07e45a72
2021-10-06 15:34:21 +11:00
Jeremy Stanley
685f9cdd92 Test ansible-devel with an ubuntu-focal bridge.o.o
As of https://github.com/ansible/ansible/commit/724800c (and now
2.12.0b1), ansible started requiring Python 3.8 or later on
controllers. Switch our representative bridge.openstack.org test
nodes to the ubuntu-focal label which has 3.8.10 as its default
python3 so we can determine whether it's safe to upgrade production
similarly.

Change-Id: Ie1dc4dfaaf08ab74bf59717610231855926e9d19
2021-10-05 16:37:25 +00:00
Clark Boylan
88a6a202e9 Build our gerrit images on Bullseye
This is a bit of spring cleaning. Previously we based on images on
Buster but Bullseye exists now so give it a go.

Change-Id: Icc3d79b361e41df2f2f063993fd206ab7d992f75
2021-09-15 13:45:31 -07:00
Clark Boylan
17ba858b19 Update our gitea images to bullseye
To do this we also update jinja-init to bullseye and gitea seems to be
the only user of this image. The impact of this should be fairly self
contained to gitea.

Note this update isn't urgent, but good hygiene. We should coordinate
this update with the 1.15.x gitea upgrade and do them in such a sequence
that we can identify problems easily if they pop up.

Change-Id: Ia0075416a1d8a067cfecd26c03f8db9641cbcb89
2021-09-15 10:49:42 -07:00
Clark Boylan
6c115cf29e Add support for Ubuntu Focal to our mailman ansible
This switch testing of lists.openstack.org to Focal and we make a CGI
env var update to accomodate newer mailman.

Specifically newer mailman's CGI scripts filter env vars that it will
pass through. We were setting MAILMAN_SITE_DIR to vhost our mailman
installs with apache2, but that doesn't pass the filter and is removed.
HOST is passed through so we update our scripts, apache vhost configs,
exim, and init scripts to use the HOST env var instead.

Change-Id: I5c8c70c219669e37b7b75a61001a2b7f7bb0bb6c
2021-09-13 09:10:00 -07:00
Zuul
669300d7e2 Merge "gitea: use assets bundle" 2021-09-07 16:57:41 +00:00
Zuul
7a9c9475a7 Merge "Add assets and a related docker image/bundle" 2021-09-07 15:47:23 +00:00
Ian Wienand
e772abaf96 gitea: use assets bundle
This uses the opendev assets bundle image created with
I3166679bde6d771276289b9d32e7e4407957b2f8.

The mount options require using BuildKit, hence the Dockerfile update.

Otherwise conceptually it's fairly simple; copy in the files from the
opendevorg/assets image rather than the file-system.

Change-Id: I36bdc76471eec5380a676ebcdd885a88d3985976
2021-09-06 15:07:36 +10:00
Ian Wienand
25cdc97950 Add assets and a related docker image/bundle
Move some common assets into a top-level assets/ directory.  Services
can reference these assets via

 https://opendev.org/opendev/system-config/raw/branch/master/assets/<file>

in <img> tags, etc.

Some services want to embed these into their images, but we wish to
only keep one canonical copy.  For this, add a Dockerfile and jobs
that creates a simple bundle of assets in opendevorg/assets.  This can
be referenced in other builds; the new BuildKit bind-mount is
particularly useful for this
(c.f. I36bdc76471eec5380a676ebcdd885a88d3985976).

Change-Id: I3931566eb86a0618705d276445fa0a5f659692ea
2021-09-01 06:15:43 +10:00
Jeremy Stanley
2fbf6d9e7a Stop managing OpenStackID servers
The Open Infrastructure Foundation's developers who maintain the
OpenStackID software are taking over management of the site itself,
and have deployed it on new servers. DNS records have already been
updated to the new IP address, so it's time to clean up our end in
preparation for deleting the old servers we've been running.

OpenStackID is still used by some services we run, like RefStack and
Zanata, and we're still hosting the OpenStackID Git repository and
documentation, so this does not get rid of all references to it.

Change-Id: I1d625d5204f1e9e3a85ba9605465f6ebb9433021
2021-08-31 19:53:13 +00:00
Monty Taylor
8dbf0a3d82 Produce both buster and bullseye container images
This will allow us to roll out consumption forward in a
methodical manner.

This reverts commit 45caec4d43900bc66fb0b8c219c6dcc3180ca8aa.

Note the weird ARG definitions are there for a reason:
https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

Change-Id: I81174ac035164695f1c27c9662f25335b78c2e64
2021-08-28 16:46:29 -07:00
Zuul
6969f4a033 Merge "Test lists.kc.io on focal" 2021-08-27 16:00:48 +00:00
Zuul
dac6ae68b9 Merge "Restrict generic inventory matchers to inventory/base" 2021-08-24 19:30:51 +00:00
Zuul
6d49588b59 Merge "Test a gerrit 3.2 -> 3.3 upgrade" 2021-08-23 17:01:55 +00:00
Zuul
c74d9fc54d Merge "Update Gerrit images to most recent releases" 2021-08-23 16:58:40 +00:00
Monty Taylor
92a68b3f78 Restrict generic inventory matchers to inventory/base
We have a subdir in inventory called base that includes the shared
files that we don't have a good way to distinguish between services.
Limit the file matchers to inventory/base so that we don't trigger
all of the services anytime a single service's host_vars changes.

Change-Id: I3f461b4ab56ec55beca29e123186b36513803a44
2021-08-21 12:12:33 -05:00
Clark Boylan
f4c1735dfb Update Gerrit images to most recent releases
There are new releases of Gerrit. Let's update our 3.2 and 3.3 images to
match.

Change-Id: Id06cbb5eb2c7e6af30d579327b4a4c89b92e6d8d
2021-08-20 15:55:53 -07:00
Clark Boylan
d3837a7d95 Run service-eavesdrop after promoting the matrix eavesdrop bot
This order is important to ensure we update the matrix eavesdrop bot
when expected and not later in the day when the daily runs happen.

Change-Id: If8e3f9f34e30cdeb7765e6665d1fb19b339454a3
2021-08-20 10:57:26 -07:00
Clark Boylan
803efcce09 Test lists.kc.io on focal
This will double check that we can run our ansible against focal without
trouble. Once the production server is updated we can land this change
to reflect the server state.

Change-Id: I1a572ee13ea4c3fae38f84e5cc300a610efa94ae
2021-08-20 08:13:31 -07:00
Clark Boylan
aeddc1bf17 Test a gerrit 3.2 -> 3.3 upgrade
We create (a currently test only) playbook that upgrades zuul. This job
then runs through project creation and renaming and testinfra testing on
the upgraded gerrit version.

Future improvements should consider loading state on the old gerrit
install before we upgrade that can be asserted as well.

Change-Id: I364037232cf0e6f3fa150f4dbb736ef27d1be3f8
2021-08-19 13:19:05 -07:00
Clark Boylan
652ea73013 Stop requiring puppet things for afs, eavesdrop, and nodepool
These services are all managed with ansible now and don't need to be
triggered when puppet updates.

Change-Id: Ie32b788263724ad9a5ca88a6406290309ec8c87a
2021-08-17 15:58:17 -07:00
Clark Boylan
ce5d207dbb Run remote-puppet-else daily instead of hourly
Update the file matchers to actually match the current set of puppet
things. This ensure the deploy job runs when we want it and we can catch
up daily instead of hourly.

Previously a number of the matchers didn't actually match the puppet
things because the path prefix was wrong or works were in different
orders for the dir names.

Change-Id: I3510da81d942cf6fb7da998b8a73b0a566ea7411
2021-08-17 15:54:38 -07:00
Clark Boylan
ffe06527de Run infra-prod-service-zuul-preview daily instaed of hourly
This is being done beacuse we don't make many changes to the
zuul-preview service but it runs in the hourly buildset starving deploy
runs. Since this doesn't change much we can move it to the daily run
instead.

If we need to update it we can run the playbook manually or land a
change to trigger it.

Change-Id: I89d2c712fcfd18bd4f694b2c90067295253b8836
2021-08-17 15:45:17 -07:00
Clark Boylan
268fc98bd7 Remove extra service-codesearch job in deploy
This job was listed twice. Remove the extra one for clarity.

Change-Id: I7aa39e3757d6562af474ec7c9cfdda7d8024cd1c
2021-08-16 11:42:37 -07:00