MicroCeph dashboard module fails with CPython error

Trying to enable the Ceph dashboard, following the instructions on https://docs.ceph.com/en/latest/mgr/dashboard/:

sudo ceph config set mgr mgr/dashboard/server_port 9080
sudo ceph config set mgr mgr/dashboard/ssl_server_port 9443
sudo ceph mgr module enable dashboard
openssl req -new -nodes -x509 -subj "/O=IT/CN=ceph-mgr-dashboard" -days 3650 -keyout dashboard.key -out dashboard.crt -extensions v3_ca
sudo ceph dashboard set-ssl-certificate-key -i dashboard.key
sudo ceph dashboard set-ssl-certificate -i dashboard.crt
sudo ceph mgr module disable dashboard
sudo ceph mgr module enable dashboard
sudo ceph dashboard ac-user-create [...] administrator -i [...]

However, ceph -s reports that the dashboard module has failed:

Module 'dashboard' has failed: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process

Is there a supported way to enable the dashboard?

Looks like a known issue: https://tracker.ceph.com/issues/64213

A fix was merged recently, but it’s not clear if the fix will be backported to Ceph squid.

That patch is included in Ubuntu’s 19.2.3 release. It’s not released yet but is going through the SRU and is tracked under: Bug #2119024 “[SRU] Squid: Ceph new point release 19.2.3” : Bugs : ceph package : Ubuntu

2 Likes

Thanks @pponnuvel , that’s great news :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.