Project

General

Profile

Bug #22090

cluster [ERR] Unhandled exception from module 'balancer' while running on mgr.x: 'NoneType' object has no attribute 'iteritems'" in cluster log

Added by Sage Weil about 1 year ago. Updated 9 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
11/08/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:

Description

2017-11-08 10:34:01.192 7f081a754700  1 -- 172.21.15.184:0/767749490 --> 172.21.15.130:6789/0 -- mon_command({"prefix": "osd crush weight-set create-compat", "format": "json"} v 0) v1 -- ?+0 0x5586373ec1c0 con 0x558637157f80
2017-11-08 10:34:01.192 7f082455a700  1 -- 172.21.15.184:0/767749490 <== mon.0 172.21.15.130:6789/0 99 ==== mon_command_ack([{"prefix": "osd crush weight-set create-compat", "format": "json"}]=-1 crush map contains one or more bucket(s) that are not straw2 v17) v1
 ==== 160+0+0 (1021931112 0 0) 0x5586370ddb00 con 0x558637157f80
2017-11-08 10:34:01.192 7f0822556700 10 MonCommandCompletion::finish()
2017-11-08 10:34:01.192 7f0822556700 20 mgr Gil Switched to new thread state 0x55863732b080
2017-11-08 10:34:01.192 7f0822556700 20 mgr ~Gil Destroying new thread state 0x55863732b080
2017-11-08 10:34:01.192 7f0822556700 10 mgr notify_all notify_all: notify_all command
2017-11-08 10:34:01.192 7f081a754700  0 mgr[balancer] Error creating compat weight-set
2017-11-08 10:34:01.192 7f081a754700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'balancer' while running on mgr.x: 'NoneType' object has no attribute 'iteritems'
2017-11-08 10:34:01.192 7f081a754700 -1 balancer.serve:
2017-11-08 10:34:01.192 7f081cf99700 20 mgr Gil Switched to new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081cf99700 20 mgr ~Gil Destroying new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081cf99700 20 mgr Gil Switched to new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081cf99700  1 mgr[restful] Unknown request ''
2017-11-08 10:34:01.192 7f081cf99700 20 mgr ~Gil Destroying new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081cf99700 20 mgr Gil Switched to new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081cf99700 20 mgr ~Gil Destroying new thread state 0x55863732b1e0
2017-11-08 10:34:01.192 7f081a754700 -1 Traceback (most recent call last):
  File "/usr/lib/ceph/mgr/balancer/module.py", line 359, in serve
    if self.optimize(plan):
  File "/usr/lib/ceph/mgr/balancer/module.py", line 596, in optimize
    return self.do_crush_compat(plan)
  File "/usr/lib/ceph/mgr/balancer/module.py", line 659, in do_crush_compat
    orig_ws = { a: b for a, b in orig_ws.iteritems() if a >= 0 }
AttributeError: 'NoneType' object has no attribute 'iteritems'


/a/sage-2017-11-08_06:17:14-rados-wip-sage-testing-2017-11-07-2228-distro-basic-smithi/1826109

Related issues

Copied to RADOS - Backport #22164: luminous: cluster [ERR] Unhandled exception from module 'balancer' while running on mgr.x: 'NoneType' object has no attribute 'iteritems'" in cluster log Resolved

History

#1 Updated by Sage Weil about 1 year ago

  • Status changed from In Progress to Pending Backport
  • Backport set to luminous

#2 Updated by Prashant D about 1 year ago

  • Copied to Backport #22164: luminous: cluster [ERR] Unhandled exception from module 'balancer' while running on mgr.x: 'NoneType' object has no attribute 'iteritems'" in cluster log added

#3 Updated by Nathan Cutler 9 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF