Ceph mgr devicehealth模塊加載報錯

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

enter description here
enter description here

通過在dashboard中的日誌查看,發現mgr節點啓動報錯。

enter description here

2. 解決辦法

通過谷歌搜索,發現有人提過這個bug,好在在stackoverflow中找到了解決辦法。

mgr節點中,修改devicehealth模塊文件,

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

添加一行import _strptime

enter description here

重啓mgr服務。報錯消失,問題解決。

systemctl restart [email protected]

參考資料:
[1] https://tracker.ceph.com/issues/41879
[2] https://stackoverflow.com/questions/2427240/thread-safe-equivalent-to-pythons-time-strptime

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章