From 034f5d9979bd6cbbde32e3bf45b4de8690297563 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 31 Oct 2024 16:27:03 +0100 Subject: [PATCH] CI: test database backup Change-Id: I4b3e4630942d860c8c4b8e85a794ba6ae920e6e0 --- playbooks/kayobe-overcloud-base/overrides.yml.j2 | 3 +++ playbooks/kayobe-overcloud-base/run.yml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/playbooks/kayobe-overcloud-base/overrides.yml.j2 b/playbooks/kayobe-overcloud-base/overrides.yml.j2 index cae26b818..e20baeb2e 100644 --- a/playbooks/kayobe-overcloud-base/overrides.yml.j2 +++ b/playbooks/kayobe-overcloud-base/overrides.yml.j2 @@ -39,6 +39,9 @@ kolla_enable_ironic: true kolla_enable_heat: false kolla_enable_horizon: false +# Enable Mariabackup for testing database backups +kolla_enable_mariabackup: true + {% if tls_enabled %} kolla_enable_nova_libvirt_container: false compute_libvirt_enable_tls: true diff --git a/playbooks/kayobe-overcloud-base/run.yml b/playbooks/kayobe-overcloud-base/run.yml index d296d6844..76ecd8af6 100644 --- a/playbooks/kayobe-overcloud-base/run.yml +++ b/playbooks/kayobe-overcloud-base/run.yml @@ -49,3 +49,10 @@ source "${KOLLA_CONFIG_PATH:-/etc/kolla}/admin-openrc.sh" && kayobe baremetal compute register &> {{ logs_dir }}/ansible/baremetal-compute-register executable: /bin/bash + + - name: Perform database backup + shell: + cmd: > + source {{ kayobe_src_dir }}/dev/environment-setup.sh && + kayobe overcloud database backup &> {{ logs_dir }}/ansible/database-backup + executable: /bin/bash