ceph-mgr: python errors with ceph-mgr-16.2.7-r1 / python3-3.10.1-r0
After upgrading to ceph-mgr-16.2.7-r1 and python3-3.10.1-r0, ceph health detail
complains about errors in mgr modules:
# ceph health detail
HEALTH_ERR 10 mgr modules have failed
[ERR] MGR_MODULE_ERROR: 10 mgr modules have failed
Module 'balancer' has failed: Not found or unloadable
Module 'crash' has failed: Not found or unloadable
Module 'devicehealth' has failed: Not found or unloadable
Module 'orchestrator' has failed: Not found or unloadable
Module 'pg_autoscaler' has failed: Not found or unloadable
Module 'progress' has failed: Not found or unloadable
Module 'rbd_support' has failed: Not found or unloadable
Module 'status' has failed: Not found or unloadable
Module 'telemetry' has failed: Not found or unloadable
Module 'volumes' has failed: Not found or unloadable
According to the ceph-mgr log, failure reason is the same for all modules:
2021-12-22T13:02:25.626+0100 7fd596cb9b38 1 mgr handle_mgr_map Activating!
2021-12-22T13:02:25.629+0100 7fd596cb9b38 1 mgr handle_mgr_map I am now activating
2021-12-22T13:02:25.643+0100 7fd57fd3bb38 -1 mgr load Failed to construct class in 'balancer'
2021-12-22T13:02:25.643+0100 7fd57fd3bb38 -1 mgr load Traceback (most recent call last):
File "/usr/share/ceph/mgr/balancer/module.py", line 427, in __init__
super(Module, self).__init__(*args, **kwargs)
File "/usr/share/ceph/mgr/mgr_module.py", line 890, in __init__
self._configure_logging(mgr_level, log_level, cluster_level,
File "/usr/share/ceph/mgr/mgr_module.py", line 589, in _configure_logging
self._cluster_log_handler = ClusterLogHandler(self)
File "/usr/share/ceph/mgr/mgr_module.py", line 543, in __init__
super().__init__()
RuntimeError: super(): __class__ cell not found