]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
defaults: avoid getting stuck (ceph --connect-timeout)
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 24 Jan 2018 17:49:41 +0000 (18:49 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 25 Jan 2018 09:19:27 +0000 (10:19 +0100)
commitf2259df2689e35aa6bc7c8012d8f13964c305c51
treee1a155aeda377d741ab385c28676615a1487ea44
parent94b298041f51ef93811a4cfb1673eaaf2ff40887
defaults: avoid getting stuck (ceph --connect-timeout)

Sometime the playbook gets stuck because even with `--connect-timeout=`
option, the connexion to the existing ceph cluster never timeout.

As a workaround, using `timeout` command provided by coreutils will
actually timeout if we can't connect to the cluster.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1537003
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit ec16cbdb1af9069de09d4a2e2e88739c2c303350)
roles/ceph-defaults/tasks/facts.yml