]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Rolling upgrades should use norebalance flag for OSDs
authorVishal Kanaujia <vishal.kanaujia@flipkart.com>
Wed, 30 May 2018 07:55:18 +0000 (13:25 +0530)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 4 Jun 2018 08:59:01 +0000 (10:59 +0200)
The rolling upgrades playbook should have norebalance flag set for
OSDs upgrades to wait only for recovery.

Fixes: #2657
Signed-off-by: Vishal Kanaujia <vishal.kanaujia@flipkart.com>
infrastructure-playbooks/rolling_update.yml

index 47e7111b8c0d968729514dd97fad5a798733c066..8a6db318d828d69d426da465b48aa93d7452d97b 100644 (file)
       command: ceph --cluster {{ cluster }} osd set {{ item }}
       with_items:
         - noout
+        - norebalance
         - noscrub
         - nodeep-scrub
       delegate_to: "{{ mon_host }}"
         docker exec ceph-mon-{{ hostvars[mon_host]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd set {{ item }}
       with_items:
         - noout
+        - norebalance
         - noscrub
         - nodeep-scrub
       delegate_to: "{{ mon_host }}"
       command: "{{ docker_exec_cmd_update_osd|default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}"
       with_items:
         - noout
+        - norebalance
         - noscrub
         - nodeep-scrub
       delegate_to: "{{ groups[mon_group_name][0] }}"