aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2016-10-09 10:50:06 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-10-09 12:08:58 +0000
commit1bcb139392a5989ef0cc733e1c39d7b6cc87ccbe (patch)
treeaa4a8e98f81c58ca72e5c38cf06ce1b31fd51b5b /tools
parent18fa72c901434c023ab68754a2e68d726484f608 (diff)
downloadkolla-1bcb139392a5989ef0cc733e1c39d7b6cc87ccbe.tar.gz
kolla-1bcb139392a5989ef0cc733e1c39d7b6cc87ccbe.zip
Choose node with largest seqno number for mariadb recovery
When all mariadb nodes are stopped gracefully, mariadb galera will write it's last executed position into the grastate.dat file. Need find the node with largest seqno number in that file and recovery from that node. Closes-Bug: #1627717 Change-Id: I6e97c190eec99c966bffde0698f783e519ba14bd
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla-ansible2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 21b3c8263..97a7c358c 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -152,7 +152,7 @@ case "$1" in
;;
(mariadb_recovery)
ACTION="Attempting to restart mariadb cluster"
- EXTRA_OPTS="$EXTRA_OPTS -e action=deploy"
+ EXTRA_OPTS="$EXTRA_OPTS -e action=deploy -e common_run=true"
PLAYBOOK="${BASEDIR}/ansible/mariadb_recovery.yml"
;;
(destroy)