dashboard on Ubuntu 22.04: python3-cheroot incompatibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

trying to activate ceph dashboard on a 17.2.0 cluster (Ubuntu 22.04
using standard ubuntu repos), the dashboard module crashes because it
cannot understand the python3-cheroot version number '8.5.2+ds1':

    root@mceph00:~# ceph crash info 2022-07-22T14:44:03.226395Z_a6b006a7-10c3-443d-9ead-161e06a27bf3
    {
        "backtrace": [
            "  File \"/usr/share/ceph/mgr/dashboard/__init__.py\", line 52, in <module>\n    from .module import Module, StandbyModule  # noqa: F401",
            "  File \"/usr/share/ceph/mgr/dashboard/module.py\", line 49, in <module>\n    patch_cherrypy(cherrypy.__version__)",
            "  File \"/usr/share/ceph/mgr/dashboard/cherrypy_backports.py\", line 197, in patch_cherrypy\n    accept_socket_error_0(v)",
            "  File \"/usr/share/ceph/mgr/dashboard/cherrypy_backports.py\", line 124, in accept_socket_error_0\n    if v < StrictVersion(\"9.0.0\") or cheroot_version < StrictVersion(\"6.5.5\"):",
            "  File \"/lib/python3.10/distutils/version.py\", line 64, in __gt__\n    c = self._cmp(other)",
            "  File \"/lib/python3.10/distutils/version.py\", line 168, in _cmp\n    other = StrictVersion(other)",
            "  File \"/lib/python3.10/distutils/version.py\", line 40, in __init__\n    self.parse(vstring)",
            "  File \"/lib/python3.10/distutils/version.py\", line 137, in parse\n    raise ValueError(\"invalid version number '%s'\" % vstring)",
=>          "ValueError: invalid version number '8.5.2+ds1'"
        ],
        "ceph_version": "17.2.0",
        "crash_id": "2022-07-22T14:44:03.226395Z_a6b006a7-10c3-443d-9ead-161e06a27bf3",
        "entity_name": "mgr.mceph05",
        "mgr_module": "dashboard",
        "mgr_module_caller": "PyModule::load_subclass_of",
        "mgr_python_exception": "ValueError",
        "os_id": "22.04",
        "os_name": "Ubuntu 22.04 LTS",
        "os_version": "22.04 LTS (Jammy Jellyfish)",
        "os_version_id": "22.04",
        "process_name": "ceph-mgr",
        "stack_sig": "3f893983e716f2a7e368895904cf3485ac7064d3294a45ea14066a1576c818e3",
        "timestamp": "2022-07-22T14:44:03.226395Z",
        "utsname_hostname": "mceph05",
        "utsname_machine": "x86_64",
        "utsname_release": "5.15.0-41-generic",
        "utsname_sysname": "Linux",
        "utsname_version": "#44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022"
    }

If I remove the version check (see below), dashboard appears to be working.

Regards
Matthias

-----------------------------------------------------------------------

root@mceph00:~# diff -rbup /usr/share/ceph/mgr/dashboard/cherrypy_backports.py{.orig,}
--- /usr/share/ceph/mgr/dashboard/cherrypy_backports.py.orig    2022-04-19 00:08:27.000000000 +0200
+++ /usr/share/ceph/mgr/dashboard/cherrypy_backports.py 2022-07-22 16:46:12.850768963 +0200
@@ -121,7 +121,8 @@ def accept_socket_error_0(v):
     except ImportError:
         pass

-    if v < StrictVersion("9.0.0") or cheroot_version < StrictVersion("6.5.5"):
+    #if v < StrictVersion("9.0.0") or cheroot_version < StrictVersion("6.5.5"):
+    if v < StrictVersion("9.0.0"):
         generic_socket_error = OSError

         def accept_socket_error_0(func):

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux