Retry msgr2 enabling 6 times

This will sometimes fail, so retry it several times
This commit is contained in:
Joshua Boniface 2021-01-27 14:13:09 -05:00
parent c4c285c7b3
commit 7b08610efa
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@
- name: set msgr2 enabled - name: set msgr2 enabled
command: ceph mon enable-msgr2 command: ceph mon enable-msgr2
run_once: true run_once: true
retries: 6
delay: 5
register: result
until: result.rc == 0
- name: create mgr auth keyring - 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 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