system-config-run-borg-backup: add jammy test host

With Jammy production nodes coming, add testing to the backup roles on
this distro.

Change-Id: I7d7733c7a52918b1faa65c3d0dcfd2cf94e66066
changes/89/852489/4
Ian Wienand 4 months ago
parent 1df2e24b2b
commit a36ee527c8
  1. 2
      playbooks/zuul/templates/gate-groups.yaml.j2
  2. 7
      testinfra/test_borg_backups.py
  3. 6
      zuul.d/system-config-run.yaml

@ -20,6 +20,7 @@ groups:
backup:
- backup-test01.opendev.org
- backup-test02.opendev.org
- backup-test03.opendev.org
borg-backup-server:
- borg-backup01.region.provider.opendev.org
@ -27,6 +28,7 @@ groups:
borg-backup:
- borg-backup-test01.opendev.org
- borg-backup-test02.opendev.org
- borg-backup-test03.opendev.org
kerberos-kdc:
- kdc-primary.opendev.org

@ -17,7 +17,8 @@ import pytest
testinfra_hosts = ['borg-backup01.region.provider.opendev.org',
'borg-backup-test01.opendev.org',
'borg-backup-test02.opendev.org']
'borg-backup-test02.opendev.org',
'borg-backup-test03.opendev.org']
def test_borg_installed(host):
@ -35,7 +36,9 @@ def test_borg_server_users(host):
if hostname.startswith('borg-backup-test'):
pytest.skip()
for username in 'borg-borg-backup-test01', 'borg-borg-backup-test02':
for username in ('borg-borg-backup-test01',
'borg-borg-backup-test02',
'borg-borg-backup-test03'):
homedir = os.path.join('/opt/backups/', username)
borg_repo = os.path.join(homedir, 'backup')
authorized_keys = os.path.join(homedir, '.ssh', 'authorized_keys')

@ -382,6 +382,8 @@
label: ubuntu-focal
- name: borg-backup-test02.opendev.org
label: ubuntu-bionic
- name: borg-backup-test03.opendev.org
label: ubuntu-jammy
vars:
run_playbooks:
- playbooks/service-borg-backup.yaml
@ -405,7 +407,9 @@
borg-backup-test02.opendev.org:
host_copy_output:
'/var/log/borg-backup-borg-backup01.region.provider.opendev.org.log': logs
borg-backup-test03.opendev.org:
host_copy_output:
'/var/log/borg-backup-borg-backup01.region.provider.opendev.org.log': logs
- job:
name: system-config-run-mirror-base

Loading…
Cancel
Save