Project

General

Profile

Actions

Bug #43642

closed

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

Added by Paul Emmerich over 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


Files

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

Related issues 2 (0 open2 closed)

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

Updated by Neha Ojha over 4 years ago

  • Category set to telemetry module
Actions #2

Updated by Yaarit Hatuka over 4 years ago

  • Assignee set to Yaarit Hatuka
Actions #3

Updated by Yaarit Hatuka over 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

Actions #4

Updated by Paul Emmerich over 4 years ago

No, the log contains no such message

Actions #5

Updated by Sage Weil over 4 years ago

  • Status changed from In Progress to Pending Backport
Actions #6

Updated by Sage Weil over 4 years ago

  • Backport changed from nautilus to nautilus, mimic
Actions #7

Updated by Konstantin Shalygin over 4 years ago

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

Updated by Konstantin Shalygin over 4 years ago

  • Copied to Backport #43979: nautilus: "ceph telemetry show" shows error: AttributeError: 'NoneType' object has no attribute 'items' added
Actions #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".

Actions

Also available in: Atom PDF