Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ansible/roles/mariadb/tasks/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
register: container_facts

- name: Taking {{ mariadb_backup_type }} database backup via Mariabackup
vars:
cmd: "{{ 'kolla_mariadb_backup.sh' if mariadb_backup_target == 'active' else 'kolla_mariadb_backup_replica.sh' }}"
become: true
kolla_container:
action: "start_container"
command: "bash -c 'sudo -E kolla_set_configs && /usr/local/bin/{{ cmd }}'"
command: "bash -c 'sudo -E kolla_set_configs && /usr/local/bin/kolla_mariadb_backup.sh'"
common_options: "{{ docker_common_options }}"
detach: False
# NOTE(mgoddard): Try to use the same image as the MariaDB server container
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/mariadb/templates/backup.my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
default-character-set=utf8
user={{ mariadb_backup_database_user }}
password={{ mariadb_backup_database_password }}
host={{ database_address }}
port={{ database_port }}
host={{ api_interface_address }}
port={{ mariadb_port }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
fixes:
- |
Fixes MariaDB backups failing since MariaDB 10.11.19 and 11.4.13.
Mariabackup copied the data directory of ``mariadb_backup_host`` but
connected through the load balancer, which could route it to a different
Galera member. The backup lock then applied to the wrong node. It now
connects to the MariaDB instance on the host it backs up.
upgrade:
- |
``mariadb_backup_target`` no longer has any effect. Backups are always
taken from ``mariadb_backup_host``.
- |
Full backups are now named ``mysqlbackup-<date>.qp.xbc.xbs.gz`` and
incrementals ``incremental-<date>-mysqlbackup-<date>.qp.xbc.xbs.gz``,
matching the restore documentation. Existing backups remain restorable.
1 change: 1 addition & 0 deletions tests/setup_gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function prepare_images {

python3 -m venv ~/kolla-venv
source ~/kolla-venv/bin/activate
pip3 install -U pip
if [[ "$CONTAINER_ENGINE" == "docker" ]]; then
pip install "${KOLLA_SRC_DIR}" "docker"
else
Expand Down
6 changes: 4 additions & 2 deletions zuul.d/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
scenario_images_extra:
- ^cinder
- ^redis
- ^valkey

- job:
name: kolla-ansible-magnum-base
Expand Down Expand Up @@ -227,7 +228,7 @@
vars:
scenario: octavia
scenario_images_extra:
- ^redis
- ^valkey
- ^octavia

- job:
Expand Down Expand Up @@ -279,6 +280,7 @@
- ^tacker
- ^mistral
- ^redis
- ^valkey
- ^barbican

- job:
Expand Down Expand Up @@ -307,7 +309,7 @@
vars:
scenario: ovn
scenario_images_extra:
- ^redis
- ^valkey
- ^octavia
- ^ovn

Expand Down