Project

General

Profile

Bug #43642

"ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items'

Added by Paul Emmerich about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
telemetry module
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

(docker-croit)@dev-cluster-vlan102 / $ ceph mgr module enable telemetry
(docker-croit)@dev-cluster-vlan102 / $ ceph telemetry show
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 914, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/telemetry/module.py", line 754, in handle_command
    channels=command.get('channels', None)
  File "/usr/share/ceph/mgr/telemetry/module.py", line 595, in compile_report
    report['metadata']['osd'] = self.gather_osd_metadata(osd_map)
  File "/usr/share/ceph/mgr/telemetry/module.py", line 234, in gather_osd_metadata
    for k, v in self.get_metadata('osd', str(osd['osd'])).items():
AttributeError: 'NoneType' object has no attribute 'items'

looks like it fails with this particular osd map which i've attached

osdmap (35.8 KB) Paul Emmerich, 01/16/2020 10:33 PM


Related issues

Copied to mgr - Backport #43978: mimic: "ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items' Resolved
Copied to mgr - Backport #43979: nautilus: "ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items' Resolved

History

#1 Updated by Neha Ojha about 4 years ago

  • Category set to telemetry module

#2 Updated by Yaarit Hatuka about 4 years ago

  • Assignee set to Yaarit Hatuka

#3 Updated by Yaarit Hatuka about 4 years ago

  • Status changed from New to In Progress
  • Backport set to nautilus
  • Pull request ID set to 33051

Hi Paul,

Thanks for reporting this.
This should fix it:
https://github.com/ceph/ceph/pull/33051

Can you please check the logs to see if you have this error message:
"Requested missing service "

Thanks!
Yaarit

#4 Updated by Paul Emmerich about 4 years ago

No, the log contains no such message

#5 Updated by Sage Weil about 4 years ago

  • Status changed from In Progress to Pending Backport

#6 Updated by Sage Weil about 4 years ago

  • Backport changed from nautilus to nautilus, mimic

#7 Updated by Konstantin Shalygin about 4 years ago

  • Copied to Backport #43978: mimic: "ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items' added

#8 Updated by Konstantin Shalygin about 4 years ago

  • Copied to Backport #43979: nautilus: "ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items' added

#9 Updated by Nathan Cutler about 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF