system-config/playbooks
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
..
filter_plugins dns_[a|aaaa] filter; use host for lookup 2018-09-13 22:50:40 +10:00
group_vars Update zuul-ci.org certs 2020-01-07 14:35:25 -08:00
host_vars Add airship-citycloud mirror 2020-02-07 08:55:40 -08:00
k8s Add resources for deploying rook and xtradb to kuberenets 2019-02-05 18:52:21 +00:00
module_utils/facts/system Ensure apt is used on ubuntu hosts with zypper 2018-08-20 20:45:13 +00:00
roles Allow for periodic afs releases from mirror-update 2020-02-11 08:52:01 +11:00
templates/clouds Add airship CI cloud 2020-01-31 14:46:02 -08:00
zuul Merge "Add Apache to Ansible for Gerrit" 2020-02-05 18:33:04 +00:00
apply-package-updates.yaml Apply package updates before we reboot in launch-node 2019-02-26 14:17:23 -08:00
base.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
bootstrap-k8s-nodes.yaml Stop running k8s-on-openstack nested 2019-02-12 18:17:46 +00:00
bridge.yaml bridge.o.o: update to latest Ansible 2019-11-20 09:20:09 +11:00
clouds_layouts.yml Add airship CI cloud 2020-01-31 14:46:02 -08:00
gitea-rename-setup-org.yaml Restore setup-org.yaml 2019-09-18 12:40:19 -07:00
gitea-rename-tasks.yaml Restore setup-org.yaml 2019-09-18 12:40:19 -07:00
install_puppet.yaml Handle moved puppet repos 2019-05-15 16:03:07 -07:00
nodepool_restart.yaml Add nodepool_restart playbook 2019-03-04 09:20:07 -08:00
remote_puppet_adhoc.yaml Clean up puppet variables and playbooks 2018-08-17 09:41:12 -05:00
remote_puppet_afs.yaml vos-release: have separate user 2019-11-21 12:03:45 +11:00
remote_puppet_else.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
remote_puppet_git.yaml Put gitea07 and gitea08 back into service 2019-07-29 23:35:36 +00:00
rename_repos.yaml More repo rename playbook fixes 2019-05-31 09:07:26 -07:00
run_cloud_launcher.yaml Name plays in playbooks 2018-09-07 10:51:56 -07:00
service-backup.yaml Ansible roles for backup 2019-08-05 16:59:57 +10:00
service-bridge.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-gitea-lb.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-letsencrypt.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-mirror-update.yaml Set openafs cache sizes for mirror/mirror-update 2019-07-19 12:04:26 -07:00
service-mirror.yaml Set openafs cache sizes for mirror/mirror-update 2019-07-19 12:04:26 -07:00
service-nameserver.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-nodepool.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-registry.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-review-dev.yaml Add review-dev01.opendev.org 2020-02-05 09:58:25 -06:00
service-review.yaml Add service playbook and test run for prod gerrit 2019-12-17 08:13:34 -05:00
service-static.yaml openafs-client: add option for OpenAFS cache location 2020-01-28 21:05:27 +11:00
service-zuul.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
set-hostnames.yaml Don't gather facts in set-hostnames 2019-05-13 06:28:25 +00:00
sync-gitea-projects.yaml Translate gitea project creation to python 2019-07-11 08:21:35 -04:00
test-gitea.yaml Run actual full project creation in gitea test 2019-07-11 13:39:22 -07:00
unattended_upgrades.yml Rename attended_upgrades playbook to unattended_upgrades 2016-07-19 10:41:09 +02:00
update_puppet_version.yaml Only install puppet 4 if not already installed 2019-03-08 09:04:11 -08:00
update-system-config.yaml Stop running k8s-on-openstack nested 2019-02-12 18:17:46 +00:00
zuul_reconfigure.yaml Stub out zuul_reconfigure playbook 2018-09-14 09:17:36 -06:00
zuul_restart.yaml Update zuul ansible installs when restarting zuul 2019-10-04 10:12:18 -07:00
zuul_start.yaml Use host groups for zuul playbooks 2018-09-12 12:26:43 -06:00
zuul_stop.yaml Use host groups for zuul playbooks 2018-09-12 12:26:43 -06:00