]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: lower mon_reweight_min_bytes_per_osd to 10
authorKefu Chai <kchai@redhat.com>
Mon, 22 Aug 2016 17:08:16 +0000 (01:08 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Aug 2016 18:18:35 +0000 (02:18 +0800)
otherwise monitor could reject the command:
```
Refusing to reweight: we only used 588084 kb used across all osds!
```
if the average used space is smaller than
`mon_reweight_min_bytes_per_osd`.

Fixes: http://tracker.ceph.com/issues/16805
Signed-off-by: Kefu Chai <kchai@redhat.com>
tasks/ceph_manager.py

index 70a1efbae0d9734fbed7e52d2e5463de0a84caf0..7d4f9659d95f72b0faef7e3df73f546e8fee599a 100644 (file)
@@ -142,6 +142,8 @@ class Thrasher:
         except Exception:
             manager.raw_cluster_cmd('--', 'mon', 'tell', '*', 'injectargs',
                                     '--mon-osd-down-out-interval 0')
+        manager.raw_cluster_cmd('--', 'tell', 'mon.*', 'injectargs',
+                                '--mon-reweight-min-bytes-per-osd 10')
         self.thread = gevent.spawn(self.do_thrash)
         if self.sighup_delay:
             self.sighup_thread = gevent.spawn(self.do_sighup)