[ceph-users] Problems creating a balancer plan

Massimo Sgaravatto massimo.sgaravatto at gmail.com
Fri Mar 1 10:24:00 PST 2019


Hi

I already used the balancer in my ceph luminous cluster a while ago when
all the OSDs were using filestore.

Now, after having added some bluestore OSDs, if I try to create a plan:


[root at ceph-mon-01 ~]# ceph balancer status
{
    "active": false,
    "plans": [],
    "mode": "crush-compat"
}

[root at ceph-mon-01 ~]# ceph balancer eval
current cluster score 0.051599 (lower is better)

[root at ceph-mon-01 ~]# ceph balancer optimize 01-march-2019
Error EINVAL: Traceback (most recent call last):
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 340, in handle_command
    r, detail = self.optimize(plan)
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 670, in optimize
    return self.do_crush_compat(plan)
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 814, in
do_crush_compat
    weight = best_ws[osd]
KeyError: (64,)

This is what I see in the mgr log:




2019-03-01 19:15:20.310116 7faeff76c700  0 log_channel(audit) log [DBG] :
from='client.194721456 192.168.61.206:0/585546872' entity='client.admin'
cmd=[{"prefix": "balancer optimize", "plan": "01-march-2019", "target":
["mgr", ""]}]: dispatch
2019-03-01 19:15:20.310162 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer status'
2019-03-01 19:15:20.310171 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer mode'
2019-03-01 19:15:20.310179 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer on'
2019-03-01 19:15:20.310186 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer off'
2019-03-01 19:15:20.310195 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer eval'
2019-03-01 19:15:20.310203 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer eval-verbose'
2019-03-01 19:15:20.310211 7faeff76c700  1 mgr.server handle_command
pyc_prefix: 'balancer optimize'
2019-03-01 19:15:20.310487 7faefff6d700  1 mgr[balancer] Handling command:
'{'prefix': 'balancer optimize', 'plan': '01-march-2019', 'target': ['mgr',
'']}'
2019-03-01 19:15:20.530784 7faf204c9700  1 mgr send_beacon active
2019-03-01 19:15:20.559914 7faefff6d700  1 mgr.server reply handle_command
(22) Invalid argument Traceback (most recent call last):
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 340, in handle_command
    r, detail = self.optimize(plan)
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 670, in optimize
    return self.do_crush_compat(plan)
  File "/usr/lib64/ceph/mgr/balancer/module.py", line 814, in
do_crush_compat
    weight = best_ws[osd]
KeyError: (64,)



Thanks, Massimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20190301/c910a38c/attachment.html>


More information about the ceph-users mailing list