Running ceph-16.2.9 on systems with python3.10 causes problems with mgr plugins. # ceph health detail HEALTH_ERR Module 'devicehealth' has failed: PY_SSIZE_T_CLEAN macro must be defined for '#' formats [ERR] MGR_MODULE_ERROR: Module 'devicehealth' 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 Similar issues on ubuntu bug tracker. https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1964322 https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1964322/comments/7 https://bugs.python.org/issue40943 this python 3.10 change caused the issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c5fe2e412eed3c9648d55f1e7d16d4f127bf02c commit 0c5fe2e412eed3c9648d55f1e7d16d4f127bf02c Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2022-07-13 00:19:59 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2022-07-13 00:19:59 +0000 sys-cluster/ceph: Patch to fix py310 (bug #857702) Also update libfmt dep Closes: https://bugs.gentoo.org/857702 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> sys-cluster/ceph/Manifest | 2 + sys-cluster/ceph/ceph-17.2.1-r1.ebuild | 459 +++++++++++++++++++++ sys-cluster/ceph/files/ceph-17.2.1-python310.patch | 35 ++ 3 files changed, 496 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4be3d5347668f59ece000c45cbb019f793c716f commit a4be3d5347668f59ece000c45cbb019f793c716f Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2022-07-12 22:47:18 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2022-07-13 00:19:48 +0000 sys-cluster/ceph: Revbump to 16.2.9-r1 fix #857702 Also change libfmt dep to be <9.0 Bug: https://bugs.gentoo.org/857702 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> sys-cluster/ceph/Manifest | 2 -- .../ceph/{ceph-16.2.9.ebuild => ceph-16.2.9-r1.ebuild} | 3 ++- sys-cluster/ceph/files/ceph-16.2.9-python310.patch | 12 ++++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-)