Bug 1979520 - KeyError in /usr/share/ceph/mgr/stats/fs/perf_stats.py", line 129 every few milliseconds
Summary: KeyError in /usr/share/ceph/mgr/stats/fs/perf_stats.py", line 129 every few m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: 5.0z1
Assignee: Jos Collin
QA Contact: Yogesh Mane
Mary Frances Hull
URL:
Whiteboard:
Depends On:
Blocks: 1959686
TreeView+ depends on / blocked
 
Reported: 2021-07-06 09:43 UTC by Sebastian Wagner
Modified: 2021-11-02 16:38 UTC (History)
7 users (show)

Fixed In Version: ceph-16.2.0-119.el8cp
Doc Type: Bug Fix
Doc Text:
.Fixes KeyError appearing every few milliseconds in the MGR log Previously, `KeyError` was logged to the Ceph Manager log every few milliseconds. This was due to an attempt to remove an element from `client_metadata[in_progress]` dictionary with a non-existent key, resulting in a `KeyError`. As a result, locating other stack traces in the logs was difficult. This release fixes the code logic in the Ceph File System performance metrics and `KeyError` messages in the Ceph Manager log.
Clone Of:
Environment:
Last Closed: 2021-11-02 16:38:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 51975 0 None None None 2021-07-30 20:56:18 UTC
Red Hat Bugzilla 1978102 1 high CLOSED NFS daemon failed to upgrade with error "[errno 2] RADOS object not found" 2023-09-15 01:10:49 UTC
Red Hat Issue Tracker RHCEPH-446 0 None None None 2021-08-19 05:04:05 UTC
Red Hat Product Errata RHBA-2021:4105 0 None None None 2021-11-02 16:38:56 UTC

Internal Links: 1978102

Description Sebastian Wagner 2021-07-06 09:43:09 UTC
The attached log files of https://bugzilla.redhat.com/show_bug.cgi?id=1978102 show 

debug 2021-06-30T06:09:02.171+0000 7f2dc1e85700 -1 mgr notify stats.notify:
debug 2021-06-30T06:09:03.228+0000 7f2dc1e85700 -1 mgr notify Traceback (most recent call last):
  File "/usr/share/ceph/mgr/stats/module.py", line 31, in notify
    self.fs_perf_stats.notify(notify_id)
  File "/usr/share/ceph/mgr/stats/fs/perf_stats.py", line 129, in notify
    result = self.client_metadata['in_progress'].pop(cmdtag)
KeyError: ''

Every few milliseconds in the MGR log. If this is indeed a bug, it would be great to have this backpacked as it makes finding other Tracebacks in the MGR log file somewhat irritating.

Comment 1 RHEL Program Management 2021-07-06 09:43:17 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Jos Collin 2021-08-05 09:24:20 UTC
The fix is under review:
https://github.com/ceph/ceph/pull/42608

Comment 14 errata-xmlrpc 2021-11-02 16:38:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 5.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4105


Note You need to log in before you can comment on or make changes to this bug.