17536 Commits

Author SHA1 Message Date
Jeremy Stanley
25dc84fecf Update launch-node's default from bionic to focal
We only use Ubuntu 20.04 LTS (Focal) for new servers now.

Change-Id: I357a8c35ff608e43031bef64a58eefca3cd651e4
2021-10-29 16:42:48 +00:00
Zuul
c7398abb4c Merge "Reduce htcachclean limit on our mirrors" 2021-10-29 04:50:46 +00:00
Ian Wienand
458a06da8f reprepro: stop mirroring ubuntu-ports Xenial
We are no longer building or supporting ARM64 Xenial so do not need
this in the mirror.

Change-Id: Ifdaf07e6572e8c5cb2482c988acf0b6f93859782
2021-10-29 09:16:43 +11:00
Zuul
b11ea07415 Merge "Upgrade to gitea 1.15.6" 2021-10-28 20:11:34 +00:00
Clark Boylan
9bec46ed2c Reduce htcachclean limit on our mirrors
We previously set the limit to 70200M on a ~98GB filesystem.
Unfortunately we are able to jump from the ~70GB limit to a full
filesystem before htcachclean happens to run again. Reduce the limit to
60000M to give us more headroom and hopefully avoid filling the fs
between cache clean runs.

Change-Id: I8aa45eb0c396b54dbb3ec84e5ba8fd4ec7da9e27
2021-10-28 11:29:17 -07:00
Clark Boylan
f2cd358b70 Upgrade to gitea 1.15.6
Another bug fix release. We upgrade to keep up and not fall behind.
Release notes can be found at:

  https://github.com/go-gitea/gitea/blob/v1.15.6/CHANGELOG.md

Change-Id: I44874476d6fd09f3333205b3036ed12000560cba
2021-10-28 08:37:04 -07:00
Zuul
b73a99bc1e Merge "Limit zuul stop/start playbooks to zuul02" 2021-10-27 22:51:13 +00:00
Zuul
5c08804102 Merge "Better swap alignment" 2021-10-27 22:20:30 +00:00
James E. Blair
cc74e674db Limit zuul stop/start playbooks to zuul02
Rather than restarting the whole scheduler group, just restart
zuul02, which is our only production scheduler.  That will allow us
to boot zuul01 as a secondary scheduler and manually add/remove it
for testing.

Once we can reliably run two schedulers, we can revert this change.

Change-Id: I5518ea1d3a6a1d48460b0436d4d1eaf9d52b7ddb
2021-10-27 15:00:03 -07:00
Jeremy Stanley
738f42760a Update artifact signing key management process
Now that the SKS keyserver network is no more, and there's no
convenient way to share third-party key signatures, we need to
adjust our key management and rollover process accordingly.

Change-Id: I7008706aae06b6e4a16db2dd85a8c7f91530cd50
2021-10-26 19:41:28 +00:00
Zuul
867675d13d Merge "Upgrade gitea to 1.15.5" 2021-10-25 18:00:14 +00:00
Zuul
ba66fa0c5c Merge "Document Zuul's SIGUSR2 handler" 2021-10-25 16:03:57 +00:00
Clark Boylan
cc41e880eb Upgrade gitea to 1.15.5
Changelog at:

  https://github.com/go-gitea/gitea/blob/v1.15.5/CHANGELOG.md

Change-Id: I4948aaa6d26364ce8f9de66ce83d1b40c763e132
2021-10-25 08:22:03 -07:00
Clark Boylan
f8b1d914aa Document Zuul's SIGUSR2 handler
This is more zuul debugging documentation.

Change-Id: I5298f62658cd68f2bd19ec02fb2c1970d855bf84
2021-10-22 13:03:23 -07:00
Zuul
f2384b8b91 Merge "Fixup some details in the zuul doc" 2021-10-22 16:48:02 +00:00
Zuul
9c29fd8324 Merge "Remove the gerrit group in favor of the review group" 2021-10-22 16:15:56 +00:00
Dr. Jens Harbott
6961f380d1 Fixup some details in the zuul doc
Mostly just formatting and punctuation, plus some outdated bits.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I641beb5d65f87173d50c74a4e1f0dba48d006231
2021-10-22 10:05:20 +02:00
Zuul
d5a738ebf1 Merge "Always update gitea repo meta data" 2021-10-21 23:45:06 +00:00
Clark Boylan
2f7089d33e Make logging zuul restarts less optional
This is followon to feedback for earlier docs updates. Basically we
should always log these restarts so make that more clear that it isn't
optional.

Change-Id: Ib0fa05b2075d6c82199e6e043724aeedaf04e49c
2021-10-21 13:24:28 -07:00
Clark Boylan
f18e575a50 Update zuul secrets decryption docs
Zuul has changed has it stores secret keys and they are in zookeeper
now. This means our old docs on decrypting things are no longer correct.
Update them with a new set of instructions that matches the modern
setup.

Change-Id: I7484a8c02e005fadc41e22a4158b3dcb8434ec5d
2021-10-21 10:39:47 -07:00
Clark Boylan
a6d4d81ee2 Add zuul debugging documentation
Try to provide some hints for debugging unexpected zuul behaviors in our
documentation.

Change-Id: I937df9d8d71ae4984991aa9f327dd1351d539284
2021-10-21 10:39:47 -07:00
Clark Boylan
7eff5b5af2 Update zuul restart documentation
It was recently pointed out that our restart process for zuul is a bit
stale. Document the new modern process that deals with ansible playbooks
and docker containers.

Change-Id: I52812e87ed73e6ed538f94a86c1b62ce3de57c37
2021-10-21 10:39:42 -07:00
Zuul
2c1a449a42 Merge "Build Gerrit 3.3.7 images" 2021-10-18 17:43:35 +00:00
Zuul
52c729e6b7 Merge "Clean up our gerrit config" 2021-10-18 16:18:40 +00:00
Clark Boylan
e3963317ab Always update gitea repo meta data
Last week when we were attempting to only update the subset of projects
that were renamed in gitea we accidentally updated all projects. The
good news is this didn't take significant amounts of time (just a few
minutes).

We should be able to enforce the metadata for all projects given the
cost is now much lower than it was in the past. This will keep things up
to date after renames but also generally if projects update descriptions
or bug tracking locations.

Change-Id: Ief2bb1eb2b11a13fafbe52650317d54d6a0fc824
2021-10-18 08:56:57 -07:00
Clark Boylan
fb1b82f3aa Revert "Allow gitea_create_repos always_update to be list"
This reverts commit a39a939e0352741d0b2c43e96e660f52eac22245.

Turns out that ansible module args don't get typed the way we expect
them. This means having a Boolean or List type argument just ends up in
confusion and always_update being truthy every which way. Revert until
we can fix this properly.

Change-Id: I596fe6883098ba636b1cad5196d1fdd76ff19076
2021-10-15 13:03:59 -07:00
Zuul
dd03cdedc3 Merge "Allow gitea_create_repos always_update to be list" 2021-10-15 15:32:20 +00:00
Jeremy Stanley
a39a939e03 Allow gitea_create_repos always_update to be list
Setting the gitea_always_update var for the gitea-git-repos role to
a list will filter metadata updates to only the project names
included in the supplied list. False and True still have their prior
meanings of do no metadata updates or force metadata updates for
every project we host.

Add testing for this, and also actually test that the rename
playbook renamed something.

Get rid of the git clone in the playbook since it's no longer
relevant to how we run things anyway, we'll instead want to rely on
the Zuul supplied projects.yaml path.

Change-Id: Id8238b232caffc242c6bda9fe39eb7e65fe5e059
2021-10-14 21:47:37 +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
e2fdcc73fd Merge "More yaml.safe_load() in testinfra/conftest.py" 2021-10-13 23:46:14 +00:00
Jeremy Stanley
d76fb17fba More yaml.safe_load() in testinfra/conftest.py
Previous change If91f79a4648920999de8e6bf6e0c9fec82fde233 replaced
one of the instances of yaml.load() in this file with safe_load() in
order to silence what were then warnings. Now they're errors with
current PyYAML, so go ahead and update the other one.

Change-Id: If9f839f60cd71be8be141423ef2b93884d8aeba7
2021-10-13 21:58:41 +00: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
Clark Boylan
37d8c8b772 Clean up our gerrit config
This removes the old config to choose the old change screen by default
as everything is polygerrit now.

We remove the pre plugin melody config as melody now ships as a plugin
and has separate configuration.

We remove old theming information as that is supplied via external files
now.

We remove anonymous git download config because we don't set
gerrit.canonicalGitUrl which is required for this to work. We don't set
that because we don't have a git:// server anymore.

Bump the lucene thread count from 4 to 8 as we have more cores on the
system we run on.

Finally add some comments to help make sense of config that is left in
place.

Change-Id: Ie0b48e544191839067e66647d2ea32f74ce19ed3
2021-10-12 16:36:36 -07:00
Zuul
da1bd39a2a Merge "Remove Gerrit 3.2 images" 2021-10-12 20:59:11 +00:00
Zuul
cced838bf0 Merge "borg-backup-server: wait for lock in verify" 2021-10-12 20:11:07 +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
e4acafc36a Merge "Rename Gerrit Non-Interactive Users to Service Users" 2021-10-11 23:35:36 +00:00
Zuul
b75da802ca Merge "Test upgrade from Gerrit 3.3 to 3.4" 2021-10-11 23:35:34 +00:00
Zuul
3f92dbf8b8 Merge "gerrit: Update quotes for 3.3" 2021-10-11 22:20:15 +00:00
Zuul
4a557023db Merge "Test ansible-devel with an ubuntu-focal bridge.o.o" 2021-10-11 20:13:36 +00:00
Zuul
0d476f0479 Merge "gerrit: diff config files on upgrade" 2021-10-11 19:36:32 +00:00
Zuul
6b05c7db38 Merge "Force gerrit image build to tag 3.4" 2021-10-11 17:50:53 +00:00
Zuul
aa288ba52a Merge "Update gitea to 1.15.4" 2021-10-11 17:40:34 +00:00
Clark Boylan
dce8b2b4a6 Rename Gerrit Non-Interactive Users to Service Users
This is just a documentation update but reflect the change upstream
Gerrit made in versions 3.3 renaming this group.

Change-Id: I5458afd2683c2a7c4616f4894884e3d3ce03bbaf
2021-10-11 08:53:59 -07:00
Clark Boylan
9eebd3d0fc Force gerrit image build to tag 3.4
We added 3.4 jobs but they aren't running because we haven't tagged 3.4
images on dockerhub successfully.

Change-Id: I1fce44fe562a994c5513ceeb96270a4d5f7c40c3
2021-10-11 08:31:01 -07: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