Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nautilus: mgr/devicehealth: import _strptime directly #32082

Merged
merged 1 commit into from Dec 6, 2019

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Dec 6, 2019

No description provided.

On some machines (in my case, ubuntu 18.04 with 2.7.15+), I see

MGR_MODULE_ERROR Module 'devicehealth' has failed: Failed to import _strptime because the import lockis held by another thread.
    Module 'devicehealth' has failed: Failed to import _strptime because the import lockis held by another thread.

This is apparently an issue with datetime on py2, see

https://www.raspberrypi.org/forums/viewtopic.php?t=166912

Doing the import explicitly is a simple workaround (and resolves the
warning in my test case).

Signed-off-by: Sage Weil <sage@redhat.com>
@tchaikov tchaikov added this to the nautilus milestone Dec 6, 2019
@liewegas liewegas merged commit e3616ad into ceph:nautilus Dec 6, 2019
@liewegas liewegas deleted the workaround-py2-strptime-nautilus branch December 6, 2019 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants