From 1bcb139392a5989ef0cc733e1c39d7b6cc87ccbe Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 9 Oct 2016 10:50:06 +0800 Subject: 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 --- tools/kolla-ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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) -- cgit v1.2.3