Ceph mgr devicehealth模块加载报错

[TOC]

1. 问题说明

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

因为是刚搭建完ceph不久, rgw之前暂时没用到就没有添加。
今天添加rgw后,通过重启dashboard,发现报Error了。

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节点启动报错。

enter description here

2. 解决办法

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

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

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

添加一行import _strptime

enter description here

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

扫描二维码关注公众号,回复: 7920814 查看本文章

systemctl restart [email protected]

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

猜你喜欢

转载自blog.51cto.com/ygqygq2/2451795
MGR
今日推荐