Project

General

Profile

Actions

Bug #53476

open

vstart fails with dashboard with Python 3.10

Added by Pete Zaitcev over 2 years ago. Updated over 2 years ago.

Status:
Triaged
Priority:
Normal
Category:
General - Back-end
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph builds with no issue (after the py3.10 PR merged, "cmake: check for python(\d)\.(\d+) when building boost").
Then, running vstart normally this happens:

$ RGW=1 ../src/vstart.sh -n
..........................
out/cluster.mon.a.log:2021-11-23T23:50:00.000367-0600 mon.a (mon.0) 41 : cluster [ERR] [WRN] MGR_MODULE_DEPENDENCY: Module 'dashboard' has failed dependency: super(): class cell not found

The traceback is this:

2021-11-23T23:44:42.091-0600 7f105ed9ecc0 -1 mgr[py] Module not found: 'dashboard'
2021-11-23T23:44:42.091-0600 7f105ed9ecc0 -1 mgr[py] Traceback (most recent call last):
File "/home/zaitcev/ceph/ceph-srbac/src/pybind/mgr/dashboard/__init__.py", line 52, in <module>
from .module import Module, StandbyModule # noqa: F401
File "/home/zaitcev/ceph/ceph-srbac/src/pybind/mgr/dashboard/module.py", line 28, in <module>
from .controllers import Router, json_error_page
File "/home/zaitcev/ceph/ceph-srbac/src/pybind/mgr/dashboard/controllers/__init__.py", line 9, in <module>
from ._rest_controller import RESTController
File "/home/zaitcev/ceph/ceph-srbac/src/pybind/mgr/dashboard/controllers/_rest_controller.py", line 16, in <module>
class RESTController(BaseController, skip_registry=True):
File "/home/zaitcev/ceph/ceph-srbac/src/pybind/mgr/dashboard/controllers/_base_controller.py", line 28, in init_subclass
super().__init_subclass__(**kwargs) # type: ignore
RuntimeError: super(): class cell not found

2021-11-23T23:44:42.092-0600 7f105ed9ecc0 -1 mgr[py] Class not found in module 'dashboard'
2021-11-23T23:44:42.092-0600 7f105ed9ecc0 -1 mgr[py] Error loading module 'dashboard': (2) No such file or directory

So, perhaps dashboard is just not built in all-default build? But it looks there:

[zaitcev@lembas build]$ ls ./src/pybind/mgr/dashboard/frontend/
CMakeFiles CTestTestfile.cmake node-env
cmake_install.cmake dist package.json
[zaitcev@lembas build]$

Running "RGW=1 ../src/vstart.sh -n --without-dashboard" succeeds.

This is with the master branch. Not sure what release we're at currently.

Actions

Also available in: Atom PDF