网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

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://bjjierui.cn/article/pioeoe.html

其他资讯