Hi
This is a luminous (v. 12.2.11) cluster
Thanks, Massimo
On Sat, Mar 2, 2019 at 2:49 PM Matthew H <matthew.heler@xxxxxxxxxxx> wrote:
Hi Massimo!
What version of Ceph is in use?
Thanks,
From: ceph-users <ceph-users-bounces@xxxxxxxxxxxxxx> on behalf of Massimo Sgaravatto <massimo.sgaravatto@xxxxxxxxx>
Sent: Friday, March 1, 2019 1:24 PM
To: Ceph Users
Subject: Problems creating a balancer planHi
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@ceph-mon-01 ~]# ceph balancer status{"active": false,"plans": [],"mode": "crush-compat"}
[root@ceph-mon-01 ~]# ceph balancer evalcurrent cluster score 0.051599 (lower is better)
[root@ceph-mon-01 ~]# ceph balancer optimize 01-march-2019Error EINVAL: Traceback (most recent call last):File "/usr/lib64/ceph/mgr/balancer/module.py", line 340, in handle_commandr, detail = self.optimize(plan)File "/usr/lib64/ceph/mgr/balancer/module.py", line 670, in optimizereturn self.do_crush_compat(plan)File "/usr/lib64/ceph/mgr/balancer/module.py", line 814, in do_crush_compatweight = 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", ""]}]: dispatch2019-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 active2019-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_commandr, detail = self.optimize(plan)File "/usr/lib64/ceph/mgr/balancer/module.py", line 670, in optimizereturn self.do_crush_compat(plan)File "/usr/lib64/ceph/mgr/balancer/module.py", line 814, in do_crush_compatweight = best_ws[osd]KeyError: (64,)
Thanks, Massimo
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com