]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add more OSD flags
authorSébastien Han <sebastien.han@enovance.com>
Wed, 15 Apr 2015 21:23:50 +0000 (23:23 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Wed, 15 Apr 2015 21:23:50 +0000 (23:23 +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>
rolling_update.yml

index 1b3d96b9050d804d894ec9ef46215399dbda142a..1e08c3bc1caa178ea90ed099a7bfca931a37d531 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: "{{ item }}"
       with_items: groups.mons[0]
 
       delay: 10
       delegate_to: 127.0.0.1
 
-    - 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: "{{ item }}"
       with_items: groups.mons[0]