资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

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://cdkjz.cn/article/pioeoe.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220