Skip to content

Commit

Permalink
ceph_manager: lower mon_reweight_min_bytes_per_osd to 10
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tchaikov committed Aug 22, 2016
1 parent 3052452 commit 5c4aeb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/ceph_manager.py
Expand Up @@ -142,6 +142,8 @@ def tmp(x):
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)
Expand Down

0 comments on commit 5c4aeb1

Please sign in to comment.