From b3d943fe9f1edc2f62af5c147997ef8378c82d84 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 9 Mar 2020 10:40:54 +0100 Subject: [PATCH] infra: add retries/until on firewalld start task This commit make that task retrying 5 times to start the service firewalld to avoid failure like following: ``` TASK [ceph-infra : start firewalld] ******************************************** task path: /home/jenkins-build/build/workspace/ceph-ansible-prs-centos-container-purge/roles/ceph-infra/tasks/configure_firewall.yml:22 Monday 09 March 2020 08:58:48 +0000 (0:00:00.963) 0:02:16.457 ********** fatal: [osd4]: FAILED! => changed=false msg: |- Unable to enable service firewalld: Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service. Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service. Failed to execute operation: Connection reset by peer ``` Signed-off-by: Guillaume Abrioux --- roles/ceph-infra/tasks/configure_firewall.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/ceph-infra/tasks/configure_firewall.yml b/roles/ceph-infra/tasks/configure_firewall.yml index 13c6b074f..a5fab7e4a 100644 --- a/roles/ceph-infra/tasks/configure_firewall.yml +++ b/roles/ceph-infra/tasks/configure_firewall.yml @@ -24,6 +24,10 @@ name: firewalld state: started enabled: yes + register: result + retries: 5 + delay: 3 + until: result is succeeded - name: open ceph networks on monitor firewalld: