bnr - Make the galera desync retries and delay configurable

The parameters tripleo_backup_and_restore_galera_retries and tripleo_backup_and_restore_galera_delay are added to make the galera desync reties and delay configurable.

Change-Id: Id1d5d0405591c498090e106354049fa52d2aca91
This commit is contained in:
Fernando Diaz
2022-10-20 12:35:15 +02:00
committed by Fernando Díaz Bravo
parent 6a57f8885c
commit 2a21466cb8
2 changed files with 8 additions and 2 deletions

View File

@ -140,6 +140,12 @@ tripleo_backup_and_restore_restore_retries: 300
# Restore delay
tripleo_backup_and_restore_restore_delay: 10
# Galera retries
tripleo_backup_and_restore_galera_retries: 300
# Galera delay
tripleo_backup_and_restore_galera_delay: 10
# Ironic ubdirectory where the kernel and initrd are uploaded
backup_and_restore_history_path: ""

View File

@ -104,8 +104,8 @@
{{ tripleo_container_cli }} {{ tripleo_container_cli_flags }} exec {{ tripleo_backup_and_restore_mysql_container }} bash -c "mysql -p -u root \
-p{{ mysql_password.stdout }} --execute 'SET GLOBAL wsrep_desync = ON'"
register: desync_output
retries: 300
delay: 5
retries: "{{ tripleo_backup_and_restore_galera_retries }}"
delay: "{{ tripleo_backup_and_restore_galera_delay }}"
until: desync_output.stderr == "" or '"WARN" in desync_output.stderr'
when:
- mysql_password.stderr is defined