16546 Commits

Author SHA1 Message Date
Clark Boylan
8d932bc706 Use sudo to move applytest results
We're wanting to more properly set permissions on the ansible puppet
role manifest dir. This ends up setting mode 0755 with ownership of
root:root on the dir. As a result sudo is necessary to move these
contents later.

Change-Id: I6b6aa79e8e8b63f4665679ab183a8551f0dd521e
2020-11-10 09:47:21 -08:00
Ian Wienand
b05a98440a Remove etherpad from bup backup
bup is going crazy and filling the disk when making its backups.  We
have moved this into the borg backup group and run some backups, so
rather than spending time debugging this, we are just going to disable
bup on the server.

Change-Id: I1daad4eb05f8222131dc84c12577dec924874466
2020-11-10 13:52:03 +11:00
Zuul
d3b275b32c Merge "borg-backup: ignore .bup files" 2020-11-10 02:09:59 +00:00
Zuul
2c457782fa Merge "Account for testinfra project rename" 2020-11-10 01:21:07 +00:00
Ian Wienand
4c243338e3 borg-backup: ignore .bup files
We don't need to backup the old backup tracking files

Change-Id: I829a0f29c016618156e8dca7387d22bb7f0d9d60
2020-11-10 12:10:59 +11:00
Zuul
de7899b5ff Merge "mirror-update/reprepro : use common functions" 2020-11-10 00:59:37 +00:00
Zuul
9ff95a5f00 Merge "etherpad: ignore live db for borg backups" 2020-11-10 00:11:22 +00:00
Zuul
71dd0b65df Merge "etherpad: reduce backup rotations" 2020-11-10 00:10:55 +00:00
Zuul
d11949817d Merge "Add all backup hosts to borg backups" 2020-11-09 23:39:51 +00:00
Ian Wienand
b26622ad12 etherpad: ignore live db for borg backups
Change-Id: Ie7f7e189720e68ec0b07a727be0f5752da20566d
2020-11-10 10:11:24 +11:00
Ian Wienand
1006f478c1 etherpad: reduce backup rotations
The database dumps are ~3gb each, so are starting to fill up the disk.
Reduce on-disk rotations to 2 and rely on remote backups more.

Change-Id: Ie8fc8fd7c4c36ca37e6813104f4c711ea55186ab
2020-11-10 09:24:34 +11:00
Zuul
d3a53e8ec0 Merge "Remove mirror-update server and related puppet" 2020-11-09 21:07:11 +00:00
Sorin Sbarnea
05c4bcbfa7 Account for testinfra project rename
testinfra was project moved and renamed at the same time. Only
the package name was renamed, the module installed is still the same
testinfra and there are no known side effects.

Change-Id: If041f61ba00c8fb8d2d52e07654283d3c4a238f0
2020-11-09 14:58:43 +00:00
Ian Wienand
d533e89089 Add all backup hosts to borg backups
Backups have been going well on ethercalc02, so add borg backup runs
to all backed-up servers.  Port in some additional excludes for Zuul
and slightly modify the /var/ matching.

Change-Id: Ic3adfd162fa9bedd84402e3c25b5c1bebb21f3cb
2020-11-09 17:23:22 +11:00
Zuul
77c930c2bb Merge "grafana: fix typo in test name" 2020-11-05 22:38:02 +00:00
Zuul
375ef4c005 Merge "grafana: redirect http to CNAME" 2020-11-05 22:31:17 +00:00
Zuul
4a99839529 Merge "Update gerrit plugins on 2.16 and 3.0" 2020-11-05 18:25:12 +00:00
Zuul
15d579cf31 Merge "Document dual account split for Gerrit admins" 2020-11-05 17:19:50 +00:00
Clark Boylan
44307d119a Update gerrit plugins on 2.16 and 3.0
The gerrit 2.16 and 3.0 releases have been updated. Bump the plugin
versions to match which will rebuild those images on top of the latest
releases.

Change-Id: Icabb786560c71ac664aaadc0c0518a426e7f3392
2020-11-05 09:15:27 -08:00
Ian Wienand
a529cdc221 grafana: fix typo in test name
Change-Id: I1365432255dce16e3ad3294d78300a8f72f5f689
2020-11-05 13:57:04 +11:00
Zuul
4b98fa0a00 Merge "borg-backup: add fuse" 2020-11-05 02:45:01 +00:00
Ian Wienand
99ee86bce5 grafana: redirect http to CNAME
Currently the http site redirects to https://grafana01.opendev.org
which is a bit confusing.  Change this to redirect to the CNAME
grafana.opendev.org.

Change-Id: I174ce06af036a8f74ace6b4d95edaaf85f63fa27
2020-11-05 13:27:09 +11:00
Ian Wienand
eb07ab3613 borg-backup: add fuse
Add the FUSE dependencies for our hosts backed up with borg, along
with a small script to make mounting the backups easier.  This is the
best way to recover something quickly in what is sure to be a
stressful situation.

Documentation and testing is updated.

Change-Id: I1f409b2df952281deedff2ff8f09e3132a2aff08
2020-11-05 11:56:46 +11:00
Ian Wienand
3568b76c3c Add * match to grafana.opendev.org
This wasn't matching grafana01

Change-Id: I930a6d1428d8becd29d15fdb53d26b0c186b79fd
2020-11-05 11:35:57 +11:00
Zuul
1bc5ceba98 Merge "borg-backup: disambiguate for multiple servers" 2020-11-04 04:15:36 +00:00
Zuul
1dc940c74f Merge "RAX DFW/IAD : add internal mirror DNS to cert" 2020-11-04 03:28:57 +00:00
Zuul
07d476f48f Merge "letsencrypt-install-txt-record: pause after adding TXT records" 2020-11-04 03:28:55 +00:00
Ian Wienand
d9d9a53cb7 borg-backup: disambiguate for multiple servers
The ssh config and cron job will overwrite each other when we have
multiple backup servers.

Ensure the markers are different.

Change-Id: I1736fa9c72c90a357b2229bc86c33b33a2bb321c
2020-11-04 13:11:43 +11:00
Zuul
5df9b9bcf6 Merge "Add borg backup server in RAX ORD" 2020-11-03 23:16:43 +00:00
Zuul
00c496e879 Merge "Add service-incident@opendev mailing list" 2020-10-30 15:37:51 +00:00
Ian Wienand
bdc56b1caf letsencrypt-install-txt-record: pause after adding TXT records
The rdnc reload should notify the child nameservers which will update
quickly, but for general sanity pause 1 minute to allow for
propagation of the added authentication records before continuing.

Change-Id: Ic0f9398e056df77c96824eff8215395947997d82
2020-10-30 16:49:31 +11:00
Ian Wienand
676c5dad44 Add borg backup server in RAX ORD
This is our second backup server for borg, hosted in RAX/ORD.

Change-Id: I2c896345e497067ce12863bdb1dda8ce467e2243
2020-10-30 16:39:25 +11:00
Ian Wienand
9a0dfc3004 RAX DFW/IAD : add internal mirror DNS to cert
As done for ORD, see Ic1e64a9f0de7bca2659404243d3a004b70888e89

Change-Id: I01a0d259abfed00745dd4cf5957ee3cfd14b9449
Depends-On: https://review.opendev.org/760493
2020-10-30 15:02:51 +11:00
Zuul
b72845c274 Merge "Cleanup grafana.openstack.org" 2020-10-29 05:15:00 +00:00
Ian Wienand
166b009613 reprepro: fix apt-puppetlabs volume name
This was missing the leading "apt-"

Change-Id: I61c9823972cf4333232a606c37f2349b0c6c7831
2020-10-29 14:09:42 +11:00
Ian Wienand
b22abc02ff reprepro: catch stderr of individual deb-docker runs
This should catch the stderr of each individual run into the separate
logfile.

Change-Id: Iace3511ee8ec876debfc7361ff814b1d181e1458
2020-10-29 09:41:19 +11:00
Ian Wienand
3ddbba92ae reprepro: fix cron config path and randomise times better
The config should use the full path to the config directory, append
/etc/reprepro to the job.

Currently all the reprepro jobs hash to the same start time because it
uses the hostname as a seed.  Use the unique string name as the seed
so each job starts at a unique time.

Change-Id: If2745d0cd274f390dbff6337b7a44093b5919908
2020-10-29 09:27:29 +11:00
Zuul
3d3f1def31 Merge "reprepo: enable cron jobs" 2020-10-28 21:45:42 +00:00
Jeremy Stanley
427ae2a2aa Document dual account split for Gerrit admins
Our Gerrit admins follow this model of access management now, in
order to shield Administrators permission from external identity
provider risks.

Change-Id: I3070c28c26548d364da38d366bfa2ac8b2fb4668
2020-10-28 21:03:20 +00:00
Ian Wienand
c49ece9204 Cleanup grafana.openstack.org
The opendev.org server is in production, cleanup the old puppet-based
host.

Change-Id: I6db3ce929226a23b96234b52ece8b17f4c6a326a
2020-10-29 07:59:42 +11:00
Clark Boylan
c38f27c4bc This updates LE config for the ord mirror to the correct name
We don't need a duplicate name, we need a mirror-int.ord.rax.opendev.org
name. I think this was copy pasting failure. Simple fix.

Change-Id: Ibe079da6d9393d30e8a664cc67355336d27105e4
2020-10-28 09:59:17 -07:00
Zuul
8cc54626d0 Merge "nameserver: Allow master server to notify via ipv6" 2020-10-28 11:26:23 +00:00
Ian Wienand
0746dc187b nameserver: Allow master server to notify via ipv6
Logs show that the nameservers are being notified via ipv6 and
rejecting the request:

  nsd[18851]: notify for acme.opendev.org. \
   from 2001:4800:7819:104:be76:4eff:fe04:43d0 refused, no acl matches.

Modify the nsd ACL to allow the ipv6 of the master to trigger updates.
This is important for the letsencrypt process, where we need the
acme.opendev.org domain updated in a timely fashion so that TXT
authentication works.

Change-Id: I785f9636dd05e15b8ffd211845f439be7e8344a3
2020-10-28 09:26:14 +00:00
Zuul
2f0e543bae Merge "mirror: remove old ceph links" 2020-10-28 06:08:09 +00:00
Ian Wienand
6ee7a5a116 mirror-update/reprepro : use common functions
This converts the reprepro mirror script to use the common functions
for timestamps and vos release.  This function ssh's to the AFS server
and runs vos release directly there, avoiding many issues with
kerberos timeouts.  This has been working successfully for the rsync
mirrors.  This will also send stats back so we can keep an eye on the
timing.

Change-Id: I1be29f2d9ecaad03b22c87819e5ae8d16c4f177e
2020-10-28 16:55:02 +11:00
Zuul
66d21541ae Merge "ARM64 : run base test on Focal too" 2020-10-28 03:57:05 +00:00
Ian Wienand
c6defd532d mirror: remove old ceph links
These volumes were removed with
I050f737521fa6837f3b6b52b8028a839a29f7bd2 but I forgot to remove them
from this list.

Change-Id: I6b7f4a3aef55627d523eca2183379dff15554046
2020-10-28 14:18:24 +11:00
Zuul
7ac82bf5be Merge "reprepro: deploy Ubuntu keys" 2020-10-28 01:40:10 +00:00
Zuul
1119e78963 Merge "Generate internal certs for RAX ORD mirror" 2020-10-28 01:09:46 +00:00
Ian Wienand
f8852b76fb Remove mirror-update server and related puppet
This has all transitioned to Ansible and the mirror-update.opendev.org
server now.

Change-Id: I5f82139c981c2716f568b15b118690e943b02d52
2020-10-28 11:39:54 +11:00