Ceph mgr devicehealth模块加载报错

一时失言乱红尘 2023-06-15 04:53 98阅读 0赞

文章目录

    1. 问题说明
    1. 解决办法

1. 问题说明


















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

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

  1. ceph mgr module disable dashboard
  2. ceph mgr module enable dashboard
  3. 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服务。报错消失,问题解决。

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-strptime

发表评论

表情:
评论列表 (有 0 条评论,98人围观)

还没有评论,来说两句吧...

相关阅读