From 802fb4649ae213b81e664363fca5e144edd768b9 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 31 Oct 2018 17:00:55 +0000 Subject: [PATCH] Delegate check of db connectivity during upgrade The upgrade script assumes it is possible to make a TCP connection from the deploy host to the db containers. This breaks when there is an ssh bastion in the way. Change-Id: Iaed95049e6c6590578972ff23ae70a9af3f0c8fe --- .../playbooks/galera-cluster-rolling-restart.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml b/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml index 3b5aa8f47f..72323e3f05 100644 --- a/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml +++ b/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml @@ -41,12 +41,12 @@ post_tasks: - name: Wait for mariadb port 3306 to be available - local_action: - module: wait_for + wait_for: port: "3306" host: "{{ ansible_host | default(ansible_ssh_host | default(inventory_hostname)) }}" retries: 10 delay: 10 + delegate_to: "{{ groups['utility_all'][0] }}" - name: Check that WSREP is ready and Synced shell: "/usr/bin/mysqladmin extended-status | egrep '(wsrep_local_state_comment)'"