From 5e3f0ba45c60e505606bc19a1ddbb4eb27099b1d Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Mon, 19 Sep 2016 01:47:35 -0700 Subject: [PATCH] Remove search_regex from mariadb port check The 'galera-cluster-rolling-restart.yml' upgrade playbook contains a race condition when checking that the mariadb port is available after restarting a galera container. The port can be open but not yet responsive which will lead to a 'Connection reset by peer' socket error, ending the playbook run. Remove the search_regex to avoid prematurely communicating over the socket. The existing subsequent task will validate that the service is behaving correctly. Change-Id: I47f7a66ff9acdf52bf1daeb005c0265fcd1bf7bd --- .../playbooks/galera-cluster-rolling-restart.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml b/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml index e125b99d13..fb2f1a146b 100644 --- a/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml +++ b/scripts/upgrade-utilities/playbooks/galera-cluster-rolling-restart.yml @@ -45,7 +45,6 @@ module: wait_for port: "3306" host: "{{ ansible_ssh_host | default(inventory_hostname) }}" - search_regex: MariaDB retries: 10 delay: 10