From e9f08ad100a9d68ad0e6fd91e476e0acc42e8e93 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:25 -0400 Subject: [PATCH] Retry msgr2 enabling 6 times This will sometimes fail, so retry it several times --- roles/pvc/tasks/ceph/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index 2182adb..ea4813e 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -91,6 +91,10 @@ - name: set msgr2 enabled command: ceph mon enable-msgr2 run_once: true + retries: 6 + delay: 5 + register: result + until: result.rc == 0 - name: create mgr auth keyring command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring