]> 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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 12 Oct 2018 11:38:19 +0000 (11:38 +0000)
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>
(cherry picked from commit 08d94324545b3c4e0f6a1caf6224f37d1c2b36db)

infrastructure-playbooks/rolling_update.yml

index c38eca686f08513b1563ee2622fa281f8267a0e6..8fccf57d4bde0666d6ab4216cdbc96c53af9e14b 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] }}"