ceph-mgr: PY_SSIZE_T_CLEAN error with ceph-mgr-16.2.9-r0 / python3-3.10.4-r0
ceph-mgr-16.2.9 is OK with python3-3.9 but due to a breaking change in python3 3.10 "ceph health detail" throws an error:
[ERR] MGR_MODULE_ERROR: 2 mgr modules have failed Module 'balancer' has failed: PY_SSIZE_T_CLEAN macro must be defined for '#' formats Module 'devicehealth' has failed: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Solution recompile with:
target_compile_definitions(ceph-mgr PRIVATE PY_SSIZE_T_CLEAN)
added to src/mgr/CMakeLists.txt as it is now in ceph/ceph