From 86426959b32baff994bf8c950c5f1bde9fc122c5 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 16 Jan 2025 10:12:09 -0800 Subject: [PATCH] Fix backup job file triggers The infra-prod-service-borg-backup job didn't trigger when Ansible groups are updated. It should because we can add and remove servers from groups that affect backups and where we run them. While we are fixing triggers we also fix a typo in the corresponding system-config-run job for backups. Finally do a noop comment update in groups.yaml to trigger the backup job because our new paste02 server needs backups. Change-Id: I8fc242e41ba510fb77704c4886d8b9edb14dc6d8 --- inventory/service/groups.yaml | 2 +- zuul.d/infra-prod.yaml | 1 + zuul.d/system-config-run.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inventory/service/groups.yaml b/inventory/service/groups.yaml index 6035a76a4e..4ce0907f1e 100644 --- a/inventory/service/groups.yaml +++ b/inventory/service/groups.yaml @@ -40,7 +40,7 @@ groups: - lists99.opendev.org - keycloak99.opendev.org # All these servers are "special-cased" in specifically - # as they are puppet and should be replaced "soon" + # as they are puppet and should be replaced "soon". - storyboard01.opendev.org - translate01.openstack.org borg-backup-server: diff --git a/zuul.d/infra-prod.yaml b/zuul.d/infra-prod.yaml index b14135c7a0..6c21db4120 100644 --- a/zuul.d/infra-prod.yaml +++ b/zuul.d/infra-prod.yaml @@ -318,6 +318,7 @@ playbook_name: service-borg-backup.yaml files: - inventory/base + - inventory/service/groups.yaml - inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml - inventory/service/host_vars/backup01.ord.rax.opendev.org.yaml - inventory/service/group_vars/borg-backup.yaml diff --git a/zuul.d/system-config-run.yaml b/zuul.d/system-config-run.yaml index 301b4ad599..be85e47f84 100644 --- a/zuul.d/system-config-run.yaml +++ b/zuul.d/system-config-run.yaml @@ -432,7 +432,7 @@ run_test_playbook: playbooks/test-borg-backup.yaml files: - playbooks/service-borg-backup.yaml - - playbooks/test-borg-bcakup.yaml + - playbooks/test-borg-backup.yaml - playbooks/bootstrap-bridge.yaml - playbooks/roles/install-borg - playbooks/roles/borg-backup