Ceph mgr devicehealth模块加载报错

作者: ygqygq2 分类: 系统/运维 发布时间: 2019-11-20 10:17

[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.


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

2. 解决办法

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

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

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

添加一行import _strptime

重启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

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据