Project

General

Profile

Bug #41879

Dashboard yields "ImportError: Failed to import _strptime because the import lockis held by another thread." after update to 14.2.4

Added by Roland Sommer 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
dashboard/backend
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature:

Description

After updating to 14.2.4 from 14.2.3 (which we just had rolled out successfully yesterday), the dashboard module refuses to start:

2019-09-17 06:42:03.271 7f125b35b700 -1 Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/module.py", line 355, in serve
    uri = self.await_configuration()
  File "/usr/share/ceph/mgr/dashboard/module.py", line 261, in await_configuration
    uri = self._configure()
  File "/usr/share/ceph/mgr/dashboard/module.py", line 211, in _configure
    if x509.has_expired():
  File "/usr/lib/python2.7/dist-packages/OpenSSL/crypto.py", line 1357, in has_expired
    not_after = datetime.datetime.strptime(time_string, "%Y%m%d%H%M%SZ")
ImportError: Failed to import _strptime because the import lockis held by another thread.

Related issues

Related to mgr - Bug #39979: ceph device check-health: Error EIO: Module 'devicehealth' has experienced an error and cannot handle commands: Failed to import _strptime because the import lockis held by another thread. New 05/20/2019
Related to mgr - Bug #45515: mgr/dashboard:ceph-api-nautilus-backend "ImportError: Failed to import _strptime because the import lockis held by another thread." Resolved

History

#1 Updated by Roland Sommer 8 months ago

This is on Ubuntu LTS 18.04.

#2 Updated by Sebastian Wagner 8 months ago

  • Related to Bug #39979: ceph device check-health: Error EIO: Module 'devicehealth' has experienced an error and cannot handle commands: Failed to import _strptime because the import lockis held by another thread. added

#4 Updated by Roland Sommer 8 months ago

The error seems to happen if the SSL certificate is no longer valid - after renewing the certificate, the error is gone.

#5 Updated by Roland Sommer 8 months ago

Roland Sommer wrote:

The error seems to happen if the SSL certificate is no longer valid - after renewing the certificate, the error is gone.

Better said: the codepath leading to the error is skipped.

#6 Updated by Sebastian Wagner 8 months ago

  • Category set to dashboard/backend
  • Backport set to nautilus

#7 Updated by Laura Paduano 16 days ago

  • Related to Bug #45515: mgr/dashboard:ceph-api-nautilus-backend "ImportError: Failed to import _strptime because the import lockis held by another thread." added

Also available in: Atom PDF