[TOC]node
软件 | 版本 |
---|---|
操做系统 | 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.
经过在dashboard中的日志查看,发现mgr节点启动报错。vim
经过谷歌搜索,发现有人提过这个bug,好在在stackoverflow中找到了解决办法。bash
mgr节点中,修改devicehealth模块文件,ide
vim /usr/share/ceph/mgr/devicehealth/module.py
ui
添加一行import _strptime
操作系统
重启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