Merge "Online backup of the galera database must desynchronize the node before backup" into stable/victoria
This commit is contained in:
commit
8972042c2e
|
@ -107,6 +107,19 @@
|
|||
tags:
|
||||
- bar_create_recover_image
|
||||
|
||||
- name: Galera desync the MySQL node
|
||||
shell: |
|
||||
set -o pipefail
|
||||
{{ tripleo_container_cli }} exec {{ tripleo_backup_and_restore_mysql_container }} bash -c "mysql -p -u root \
|
||||
-p{{ mysql_password.stdout }} --execute 'SET GLOBAL wsrep_desync = ON'"
|
||||
when:
|
||||
- mysql_password.stderr is defined
|
||||
- enabled_galera
|
||||
- tripleo_backup_and_restore_enable_snapshots|bool or not tripleo_backup_and_restore_service_manager|bool
|
||||
tags:
|
||||
- bar_create_recover_image
|
||||
no_log: "{{ tripleo_backup_and_restore_hide_sensitive_logs | bool }}"
|
||||
|
||||
- name: MySQL Grants backup
|
||||
shell: |
|
||||
set -o pipefail
|
||||
|
@ -133,6 +146,19 @@
|
|||
- bar_create_recover_image
|
||||
no_log: "{{ tripleo_backup_and_restore_hide_sensitive_logs | bool }}"
|
||||
|
||||
- name: Galera sync the MySQL node
|
||||
shell: |
|
||||
set -o pipefail
|
||||
{{ tripleo_container_cli }} exec {{ tripleo_backup_and_restore_mysql_container }} bash -c "mysql -p -u root \
|
||||
-p{{ mysql_password.stdout }} --execute 'SET GLOBAL wsrep_desync = OFF'"
|
||||
when:
|
||||
- mysql_password.stderr is defined
|
||||
- enabled_galera
|
||||
- tripleo_backup_and_restore_enable_snapshots|bool or not tripleo_backup_and_restore_service_manager|bool
|
||||
tags:
|
||||
- bar_create_recover_image
|
||||
no_log: "{{ tripleo_backup_and_restore_hide_sensitive_logs | bool }}"
|
||||
|
||||
- name: Pause mysql.
|
||||
command: "{{ tripleo_container_cli }} pause {{ tripleo_backup_and_restore_mysql_container }}"
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue