Update rolling_update.yml

The task waiting for the monitor to join the quorum... , the result for ceph -s | grep monmap only contain monmap, not included quorum:

# ceph -s --cluster ceph | grep monmap
     monmap e1: 3 mons at {sh-office-ceph-1=10.12.10.34:6789/0,sh-office-ceph-2=10.12.10.35:6789/0,sh-office-ceph-3=10.12.10.36:6789/0}

If want to get monitor, should use this:

# ceph -s --cluster ceph | grep election
            election epoch 80, quorum 0,1 sh-office-ceph-1,sh-office-ceph-2

ceph verison: 10.2.5
pull/1334/head
yangyimincn 2017-02-28 16:56:02 +08:00 committed by GitHub
parent 1d5be98850
commit 8b36cbac64
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@
- name: waiting for the monitor to join the quorum... - name: waiting for the monitor to join the quorum...
shell: | shell: |
ceph -s --cluster {{ cluster }} | grep monmap | sed 's/.*quorum//' | egrep -sq {{ ansible_hostname }} ceph -s --cluster {{ cluster }} | grep election | sed 's/.*quorum//' | egrep -sq {{ ansible_hostname }}
register: result register: result
until: result.rc == 0 until: result.rc == 0
retries: "{{ health_mon_check_retries }}" retries: "{{ health_mon_check_retries }}"