Ceph mgr devicehealth模块加载报错

[TOC]node

1. 问题说明

软件 版本
操做系统 CentOS7.6
ceph nautilus, v14.2.4

由于是刚搭建完ceph不久, rgw以前暂时没用到就没有添加。
今天添加rgw后,经过重启dashboard,发现报Error了。python

ceph mgr module disable dashboard
ceph mgr module enable dashboard
Module 'devicehealth' has failed: Failed to import _strptime because the import lockis held by another thread.

enter description here
enter description here

经过在dashboard中的日志查看,发现mgr节点启动报错。vim

enter description here

2. 解决办法

经过谷歌搜索,发现有人提过这个bug,好在在stackoverflow中找到了解决办法。bash

mgr节点中,修改devicehealth模块文件,ide

vim /usr/share/ceph/mgr/devicehealth/module.pyui

添加一行import _strptime操作系统

enter description here

重启mgr服务。报错消失,问题解决。rest

systemctl restart ceph-mgr@ceph-node2.service日志

参考资料:
[1] https://tracker.ceph.com/issues/41879
[2] https://stackoverflow.com/questions/2427240/thread-safe-equivalent-to-pythons-time-strptimecode

相关文章
相关标签/搜索