]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Update rolling_update.yml 1334/head
authoryangyimincn <yangyimincn@163.com>
Tue, 28 Feb 2017 08:56:02 +0000 (16:56 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2017 08:56:02 +0000 (16:56 +0800)
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

infrastructure-playbooks/rolling_update.yml

index a1f4b3e5aa9c3f84986e6625f2d3e82f4a54a11c..d258020afcd4c0e67baf0b269e38fa62f6ca545b 100644 (file)
 
     - name: waiting for the monitor to join the quorum...
       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
       until: result.rc == 0
       retries: "{{ health_mon_check_retries }}"