Actions
Bug #45633
closedmgr/status: metadata is fetched async
% Done:
0%
Source:
Development
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
There is a timing windonw during mds rejoin etc where the metadata is being added/removed and a NoneType can be returned.
Which results in brief tracebacks during `ceph fs status`
$ ceph fs status Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1171, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/status/module.py", line 338, in handle_command return self.handle_fs_status(cmd) File "/usr/share/ceph/mgr/status/module.py", line 225, in handle_fs_status mds_versions[metadata.get('ceph_version', "unknown")].append(standby['name']) AttributeError: 'NoneType' object has no attribute 'get'
$ ceph fs status Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1171, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/status/module.py", line 340, in handle_command return self.handle_fs_status(cmd) File "/usr/share/ceph/mgr/status/module.py", line 116, in handle_fs_status mds_versions[metadata.get('ceph_version', "unknown")].append(info['name']) AttributeError: 'NoneType' object has no attribute 'get'
Actions