首页 > 其他 > 详细

Ceph mgr devicehealth模块加载报错

时间:2019-11-20 19:26:52      阅读:128      评论:0      收藏:0      [点我收藏+]
[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

Ceph mgr devicehealth模块加载报错

原文:https://blog.51cto.com/ygqygq2/2451795

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!