system-config/testinfra
Ian Wienand fbb9790d49 Allow for periodic afs releases from mirror-update
This is a migration of the current periodic "vos release" script to
mirror-update.opendev.org.

The current script is deployed by puppet and run by a cron job on
afsdb01.dfw.openstack.org.

My initial motivation for this was wanting to better track our release
of these various volumes.  With tarballs and releases moving to AFS
publishing, we are going to want to track the release process more
carefully.

Initially, I wanted to send timing statistics to graphite so we could
build a dashboard and track the release times of all volumes.  Because
this requires an additional libraries and since we are deprecating
puppet, further development there is unappealing and it would better
live in ansible.

Since I6c96f89c6f113362e6085febca70d58176f678e7 we have the ability to
call "vos release" with "-localauth" permissions via ssh on
mirror-update; this avoids various timeout issues (see the changelog
comment there for more details).  So we do not need to run this script
directly on the afsdb server.

We are alreadying publishing mirror update logs from mirror-update,
and it would be good to also publish these release logs so anyone can
see if there are problems.

All this points to mirror-update.opendev.org being a good future home
for this script.

The script has been refactored some to

 - have a no-op mode
 - send timing stats for each volume release
 - call "vos release" via the ssh mecahnism we created
 - use an advisory lock to avoid running over itself

It runs from a virtualenv and it's logs are published via the same
mechanism as the mirror logs (slightly misnamed now).

Note this script is currently a no-op to test the deployment, running
and log publishing.  A follow-up will disable the old job and make
this active.

Change-Id: I62ae941e70c7d58e00bc663a50d52e79dfa5a684
2020-02-11 08:52:01 +11:00
..
test_adns.py master-nameserver: Add unmanaged domains; add acme.opendev.org 2019-03-27 14:22:59 +11:00
test_backups.py backup: minor fixes 2019-08-09 14:11:41 +10:00
test_base.py base-server: disable install of suggests and recommends packages 2019-07-31 16:21:08 +10:00
test_bridge.py Disable cloud launcher cron job during CI 2019-07-16 15:01:55 +10:00
test_eavesdrop.py Add system-config-run-eavesdrop 2018-08-30 10:25:23 -07:00
test_gerrit.py Add review-dev01.opendev.org 2020-02-05 09:58:25 -06:00
test_gitea_lb.py Add haproxy-statsd to haproxy server 2019-05-24 15:40:28 -07:00
test_gitea.py Collect gitea sshd logs 2019-08-06 13:42:25 -07:00
test_letsencrypt.py letsencrypt: use a fake CA for self-signed testing certs 2019-05-14 10:24:28 +10:00
test_mirror-update.py Allow for periodic afs releases from mirror-update 2020-02-11 08:52:01 +11:00
test_mirror.py Create opendev mirrors 2019-05-21 11:08:25 +10:00
test_nodepool.py Configure .kube/config on bridge 2019-02-06 15:43:19 -08:00
test_ns.py Configure opendev nameservers using ansible 2018-11-02 13:49:38 -07:00
test_registry.py Run a docker registry for CI 2019-02-01 10:12:51 -08:00
test_static.py Add tarballs.<openstack|opendev>.org to static.opendev.org 2020-02-06 08:24:16 +11:00
test_zuul_preview.py Run zuul-preview 2019-02-25 13:14:51 -08:00