1. 现象
Ceph Version: ceph version 14.2.5-389-gb0f23ac248 (b0f23ac24801724d9a7da89c2684f2b02bc9a49b) nautilus (stable)
执行 ceph telegraf config-set xxxxx命令时报如下错误:
Error EIO: Module 'telegraf' has experienced an error and cannot handle commands: [Errno 2] No such file or directory
2. 解决
Bug连接:https://tracker.ceph.com/issues/43551
解决办法:https://github.com/ceph/ceph/pull/34052/commits/6fd3febf26abcfc8cb108ceeb587806fa02a660e
编辑 vi /usr/share/ceph/mgr/telegraf/module.py +252
更改:
except (socket.error, RuntimeError, IOError, OSError):
为:
except (socket.error, RuntimeError, IOError, OSError, FileNotFoundError):