17307 Commits

Author SHA1 Message Date
Zuul
20cd0910cd Merge "lodgeit: disable getRecent API endpoint" 2021-08-05 23:13:47 +00:00
Clark Boylan
8a85c1dce1 Update to gitea v1.14.6
There are no diffs in the template files between v1.14.5 and v1.14.6.
This should be a safe update.

Upstream indicates bugfixes around cancelling batched file catting as
well as security updates around jwt and auth.

Change-Id: I2799c62bb3f1fb5e62fc6e3773ec8b9a38ceddfa
2021-08-05 13:17:16 -07:00
Zuul
5c99569a5d Merge "Use the mariadb jdbc connector in gerrit" 2021-08-05 18:44:11 +00:00
Zuul
63f031f079 Merge "Rebuild gerrit images to include fixes" 2021-08-05 15:53:08 +00:00
Zuul
a454fbb6d0 Merge "Use the gitea api in the gitea renaming playbook" 2021-08-04 16:59:21 +00:00
Ian Wienand
b1cf281208 lodgeit: disable getRecent API endpoint
This appears to give a unicode error; but also looking at the access
patterns it seems to serve no good purpose but to be a target for
bots and other odd behaviour.  Block it from apache.

Change-Id: I3a9d4a0161eef34ffe39cf4feb9ab2af561684ca
2021-08-04 15:08:15 +10:00
Zuul
9a5253a4e1 Merge "Update the python docker images again" 2021-08-04 00:51:08 +00:00
Zuul
eb965a7992 Merge "Skip notification prompt for newlist command" 2021-08-03 21:19:40 +00:00
Zuul
446b41c94c Merge "Improve repo rename functional testing" 2021-08-03 20:13:56 +00:00
Clark Boylan
ecbe89f88f Update the python docker images again
We had an image promote failure for python-base:3.8. Due to docker
hub making it very difficult to know if old tags have been cleaned up we
are not sure that reenqueing the previous chagne to zuul will do the
right thing. It may downgrade the latest tag on some of our images. To
avoid any confusion over what is latest we just have zuul build new
images and promote them again.

Change-Id: Iaa859396030f1110b43788e73e9644a97e2ada9b
2021-08-03 13:00:22 -07:00
Zuul
125a330769 Merge "Use nodejs 14" 2021-08-03 17:58:17 +00:00
Zuul
e73739f397 Merge "Update our python-base and -builder images" 2021-08-03 17:23:56 +00:00
Zuul
1d4c6b8cc2 Merge "matrix-eavesdrop: fix initial room path creation" 2021-08-03 17:23:52 +00:00
Clark Boylan
72bd0b6e2a Use the mariadb jdbc connector in gerrit
Upstream stable-3.2 and stable-3.3 branches have been fixed to allow us
to use the mariadb jdbc connector. The previous change has updated our
images to ensure they include this fix. We can now update the config to
use the mariadb connector.

Change-Id: I43ac20d601ff88e42f0d20387fc6ad8842ab8244
2021-08-03 09:08:08 -07:00
Clark Boylan
e5ea6ebc38 Rebuild gerrit images to include fixes
We upstreamed fixes for the mariadb jdbc connector and users being able
to orphan their accounts through accidental deletion of their openid
external ids. These fixes are now present in both the stable-3.2 and
stable-3.3 branches of gerrit. We should rebuild these images to ensure
our images include the fixes.

Note that stable-3.4 does not yet include these fixes but should in
time.

We will update our jdbc connection url in a followup change as we don't
auto update our images. This way we can ensure that the new image is
ready to go before updating that config.

Change-Id: Id23215ddfb3bd4424109e77ecd3480ed2375431d
2021-08-03 09:05:14 -07:00
Clark Boylan
0d36fac5fe Use the gitea api in the gitea renaming playbook
Previously we were hacking the gitea web ui to transfer repo ownership
and to rename repos within an org. We believe this was necessary because
there was no REST API ability to do this. Now we have the ability to do
this via the REST API and in addition a new Gitea release will break our
web ui hijacking.

Update the project renaming playbook to use the REST API as it is
simpler to use and should be more reliable over time as it is versioned.

Change-Id: Idd8326a4891df6bdd47422e2a73880aa053380f5
2021-08-03 08:47:16 -07:00
Clark Boylan
4d9d23e071 Update our python-base and -builder images
We are looking ahead to rebuilding a number of our images for services
like Zuul, Gerrit, and Gitea to do things like check zuul v5 efforts,
fix gerrit bugs, and upgrade gitea to a new version. Ensuring that we
have an up to date base platform seems like a good idea as a result.

Change-Id: I4262b8aa1759eaae85e5429c5a5097397152afa5
2021-08-03 07:49:05 -07:00
Tristan Cacqueray
953358a485 Update the gerritbot-matrix image to fix the ssh signature failure
This change enables a new runtime which does not use the faulty
openssh crypto policy.

Change-Id: Iedf8e2668a2f9e1770ca1782b3e61983382e5df5
2021-08-03 11:42:28 +00:00
James E. Blair
42a875b0fe matrix-eavesdrop: fix initial room path creation
The bot is supposed to create the filesystem director for the room
path when joining, but it may have done so with a relative path
instead of the full path that is actually used for logging.

Change-Id: I8c9c19a12eb2b85797ade75358859dc06b81b0b6
2021-08-02 16:54:14 -07:00
Jeremy Stanley
bf81097a85 Skip notification prompt for newlist command
Mailman's newlist command helpfully prompts on the TTY waiting for
the user to press enter so that a message will be sent to the list
admin containing the initial configuration password or ctrl-C to
abort notifying. Unfortunately, Ansible's command tasks look enough
like an interactive TTY to confuse newlist into thinking it should
do the same when orchestrated. Pass an empty stdin as part of the
task to work around this.

We didn't encounter the issue in our test jobs, because we avoid
sending notifications by passing newlist a --quiet option which
skips that step, and thus the problematic prompting behavior we
observed in production deployment.

Change-Id: I345bda61802f93a52386b7d3057163e30f0e1b65
2021-08-02 15:04:41 -07:00
James E. Blair
81b3e0eb90 Remove comment from matrix-eavesdrop dockerfile
This is mostly to force a build after correcting a pipeline config.

Change-Id: Ib8ecdfb2b5fe25e0213809c6eebce55493642214
2021-08-02 14:22:42 -07:00
Clark Boylan
65cb02a016 Improve repo rename functional testing
This tests that we can rename both the project and the org the project
lives in. Should just add a bit more robustness to our testing.

Change-Id: I0914e864c787b1dba175e0fabf6ab2648a554d16
2021-08-02 14:12:57 -07:00
Clark Boylan
28736e31ba Use nodejs 14
According to upstream gitea nodejs 16 has broken them and there isn't
much they can do other than using nodejs 14 for the moment. Use 14 in
our image builds to keep our dockerfile buildable.

See https://github.com/go-gitea/gitea/issues/16604 for more info.

Change-Id: I143c3e67f354d220614136905e8b598cd6d2ad61
2021-08-02 14:09:37 -07:00
Zuul
47d1737cd7 Merge "Add mailing list for FLOSS MOOC" 2021-08-02 17:20:31 +00:00
Zuul
04fac27ea8 Merge "Run matrix-gerritbot on eavesdrop" 2021-08-02 17:00:12 +00:00
Zuul
af5fcdcb13 Merge "Run matrix-eavesdrop on eavesdrop" 2021-08-02 17:00:09 +00:00
Zuul
ab092e721f Merge "Add matrix-eavesdrop container image" 2021-08-02 16:35:25 +00:00
Kendall Nelson
fc87c924a3 Add mailing list for FLOSS MOOC
Currently being collaboratively developed here:

https: //gitlab.com/mooc-floss/mooc-floss
Change-Id: I2002ee48878e816544b08012668c66337ab4707a
2021-08-02 16:17:40 +00:00
Tristan Cacqueray
c4b0a8950d Run matrix-gerritbot on eavesdrop
Thin runs the new gerritbot-matrix bot on the eavesdrop server.

Change-Id: Ic11ca46aa4da61d5b80a8996ad900fdf83ab70dc
2021-07-30 09:16:42 -05:00
Ian Wienand
59b058f0d6 Remove Fedora 32 mirror
This is no longer required

Change-Id: Iff9578a41abbe9e9e3c73c50041ddd11376099e4
Depends-On: https://review.opendev.org/c/openstack/project-config/+/795643
2021-07-30 13:23:33 +10:00
Zuul
d8fd9bea18 Merge "Add Debian Bullseye testing" 2021-07-30 01:53:54 +00:00
Zuul
3ce9e4b5ed Merge "Remove review-test" 2021-07-29 01:48:22 +00:00
Zuul
69fbc35605 Merge "Test the rename_repos playbook" 2021-07-29 00:35:28 +00:00
James E. Blair
82c966e6da Run matrix-eavesdrop on eavesdrop
Thin runs the new matrix-eavesdrop bot on the eavesdrop server.

It will write logs out to the limnoria logs directory, which is mounted
inside the container.

Change-Id: I867eec692f63099b295a37a028ee096c24109a2e
2021-07-28 18:34:58 -05:00
Clark Boylan
d504604b0c Test the rename_repos playbook
It would be useful to test our rename playbook against gitea and gerrit
when we make changes to these related playbooks, roles, and docker
images. To do this we need to converge our test and production setups
for gerrit a bit more. We create an openstack-project-creator account in
the test gerrit to match prod and we have rename_repos.yaml talk to
localhost for gerrit ssh commands.

With that done we can run the rename_repos.yaml playbook from
test-gitea.yaml and test-gerrit.yaml to help ensure the playbook
functions as expected against these services.

Co-Authored-By: Ian Wienand <iwienand@redhat.com>
Change-Id: I49ffaf86828e87705da303f40ad4a86be030c709
2021-07-28 08:33:55 -07:00
Ian Wienand
267224c671 Add Debian Bullseye testing
Add Bullsye testing, and also rename the "stable" jobs to codenames to
be clearer about what is being tested.

Change-Id: If2d31481f2e455b58729d581799ba752020fb3d1
2021-07-28 10:54:59 +10:00
Zuul
d8afe07574 Merge "Update docker-compose restart flags" 2021-07-28 00:04:49 +00:00
Alex Schultz
e52972e22f Add cdn0{1,2}.quay.io
It appears quay is now returning their own domain in their blob
redirects. We currently don't cache it so in order for it to work we
need to add cdn01.quay.io and cdn02.quay.io to the proxy config

Change-Id: I2b603d6a5d057e388d473f71bfbaf822d65dd4e1
2021-07-26 21:01:57 +00:00
James E. Blair
b58b204a8e Add matrix-eavesdrop container image
This builds a container image with a simple eavesdrop bot for Matrix.

Change-Id: I5304b4ec974b84886ac969b59cfcec8dec2febf9
2021-07-23 14:28:22 -07:00
Zuul
ec77854022 Merge "Point cacti at review02 explicitly" 2021-07-23 01:16:28 +00:00
Zuul
76a26721e4 Merge "Upgrade gitea to 1.14.5" 2021-07-22 19:41:03 +00:00
Zuul
725d111b54 Merge "Add DNSSEC configuration for gating.dev" 2021-07-22 17:56:45 +00:00
Zuul
df647d2148 Merge "Update gitea to 1.14.4" 2021-07-22 17:01:40 +00:00
James E. Blair
efd6ed5be8 Add DNSSEC configuration for gating.dev
Change-Id: I4d62968456ac72d4f84a63104932cc28d27feccb
2021-07-22 09:36:17 -07:00
Clark Boylan
b7668a83bb Upgrade gitea to 1.14.5
This is a small update to gitea after the previous update. This is
relatively recent and since we had tested the prior upgrade I figured we
can do this as a followup. None of the template files seem to have
deltas between 1.14.4 and 1.14.5 which means if 1.14.4 deploys sanely
then I expect this one will too.

Change-Id: I4472d5973d8104a63f16092a2804fabd3e9fa954
2021-07-22 09:18:36 -07:00
Ian Wienand
fc4ca85f08 Update docker-compose restart flags
After I replace the docker packages some services I thought would come
back did not.

Lodegit seems to be an oversight, add restart always.

Also make sure the ZK containers start themselves.

I believe with Gerrit we've made the choice to not start automatically
due to the general high-touch nature of restarts.  Keep the database
consistent and remove the auto restart there.

Change-Id: I98fa3055ac269564ed96570df0700b2aad24e4d2
2021-07-22 08:35:52 +10:00
Ian Wienand
c1278d18bb Remove review-test
With our system-config-run gerrit/review jobs we have much less need
for a dedicated server to stage changes on.  Remove in prepartion of
server cleanup.

Change-Id: I9430f7a2432324a184e3a4f7e41f9e5150c0200c
2021-07-21 13:12:43 +10:00
Zuul
d68f8ce7bb Merge "Remove review01 references" 2021-07-21 03:08:24 +00:00
Zuul
987cf88750 Merge "gerrit: fix Launchpad credentials write" 2021-07-21 00:52:13 +00:00
Clark Boylan
fb85ae32ed Trim yum-puppetlabs content
This trims out old Fedora and SLES content from our yum-puppetlabs repo.
I think that Fedora might not be used at all but we can clean that up in
a followon as we get a better grasp of how this is used.

Change-Id: I53a9b6cb529f0d3e3822864aca7725a222c78113
2021-07-20 13:33:40 -07:00