快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

Cephmgrdevicehealth模块加载报错

[TOC]

成都创新互联2013年开创至今,先为贺州等服务建站,贺州等地企业,进行企业商务咨询服务。为贺州企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

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.

Ceph mgr devicehealth模块加载报错
Ceph mgr devicehealth模块加载报错

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

Ceph mgr devicehealth模块加载报错

2. 解决办法

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

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

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

添加一行import _strptime

Ceph mgr devicehealth模块加载报错

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


当前题目:Cephmgrdevicehealth模块加载报错
文章路径:http://6mz.cn/article/pioeoe.html

其他资讯