aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mariadb/tasks/upgrade.yml
blob: 9a54536962e6f6817dc21f705d37a42df00b4fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- name: Set wsrep_sst_method to rsync for upgrade
  become: true
  no_log: true
  shell: >
    {{ kolla_container_engine }} exec {{ mariadb_service.container_name }}
    mysql -uroot -p{{ database_password }}
    -e "SET GLOBAL wsrep_sst_method='rsync';"

- import_tasks: deploy.yml
  vars:
    mariadb_wsrep_sst_method: "rsync"

- name: Set wsrep_sst_method to mariabackup after upgrade
  become: true
  no_log: true
  shell: >
    {{ kolla_container_engine }} exec {{ mariadb_service.container_name }}
    mysql -uroot -p{{ database_password }}
    -e "SET GLOBAL wsrep_sst_method='mariabackup';"

- import_tasks: deploy.yml

# TODO(seunghun1ee): Remove this task after 2026.1
- name: "Stop and remove mariadb_clustercheck containers"
  become: true
  kolla_container:
    action: "stop_and_remove_container"
    common_options: "{{ docker_common_options }}"
    name: "mariadb_clustercheck"
    ignore_missing: true
  when:
    - "'mariadb_clustercheck' not in skip_stop_containers"