]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add more OSD flags 251/head
authorSébastien Han <sebastien.han@enovance.com>
Mon, 27 Apr 2015 17:08:05 +0000 (19:08 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Mon, 27 Apr 2015 17:08:05 +0000 (19:08 +0200)
We don't really want to trigger any sort of scrubbing process while
performing the upgrade.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
Conflicts:
rolling_update.yml

rolling_update.yml

index 0022bde0354c40364d109b449643c81a4e5e3925..fbc5c091c7c37bc0fc53fcfbfff6ffcf5486eeb3 100644 (file)
   sudo: True
 
   pre_tasks:
-    - name: Set the noout flag
-      command: ceph osd set noout
+    - name: Set OSD flags
+      command: ceph osd set {{ item }}
+      with_items:
+        - noout
+        - noscrub
+        - nodeep-scrub
       delegate_to: "{{ groups.mons[0] }}"
 
   roles:
       delay: 10
       delegate_to: "{{ groups.mons[0] }}"
 
-    - name: Unset the noout flag
-      command: ceph osd unset noout
+    - name: Unset OSD flags
+      command: ceph osd unset {{ item }}
+      with_items:
+        - noout
+        - noscrub
+        - nodeep-scrub
       delegate_to: "{{ groups.mons[0] }}"