]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
infra: add retries/until on firewalld start task
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 9 Mar 2020 09:40:54 +0000 (10:40 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Mar 2020 20:48:20 +0000 (21:48 +0100)
commit03416c0d4e0166aea4185561e6521218a32018ce
tree9559769f42c38445a4e0d38e4e2d9e48fd7ff972
parent957156c0fef77153bcfd4f253e3c4be71992eec9
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 <gabrioux@redhat.com>
(cherry picked from commit b3d943fe9f1edc2f62af5c147997ef8378c82d84)
roles/ceph-infra/tasks/configure_firewall.yml