Merge "mariadb: fix cluster recovery" into stable/2023.1
This commit is contained in:
commit
7f9dfd8e3a
|
@ -48,7 +48,7 @@
|
||||||
# WSREP: Recovered position: <UUID>:<seqno>.
|
# WSREP: Recovered position: <UUID>:<seqno>.
|
||||||
- name: Get MariaDB wsrep recovery seqno
|
- name: Get MariaDB wsrep recovery seqno
|
||||||
become: true
|
become: true
|
||||||
shell: tail -n 200 /tmp/mariadb_tmp.log | awk -F" " '$0~/Recovered position/{print $NF;exit;}' | awk -F":" '{print $2}'
|
shell: awk -F" " '/Recovered position/{seqno=$NF} END{split(seqno, a, ":"); print a[2]}' /tmp/mariadb_tmp.log
|
||||||
register: wsrep_recovery_seqno
|
register: wsrep_recovery_seqno
|
||||||
|
|
||||||
- name: Removing MariaDB log file from /tmp
|
- name: Removing MariaDB log file from /tmp
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixed an issue where the MariaDB Cluster recovery process would fail if the
|
||||||
|
sequence number was not found in the logs. The recovery process now checks
|
||||||
|
the complete log file for the sequence number and recovers the cluster.
|
||||||
|
See `LP#1821173 <https://bugs.launchpad.net/kolla-ansible/+bug/1821173>`__
|
||||||
|
for details.
|
Loading…
Reference in New Issue