From e42bf30b4596b7c58dadfcb77e16f6a26de3bce9 Mon Sep 17 00:00:00 2001 From: Yaarit Hatuka Date: Tue, 5 Dec 2017 09:25:00 -0500 Subject: [PATCH] osd: add 'ceph [tell|daemon] osd.id smart' Also added 'ceph daemon osd.id list_devices' which prints to stdout the OSD devices. 'ceph [tell|daemon] osd.id smart' probes the OSD devices for SMART data and prints it to stdout in a JSON format. It assumes smartctl '--json' feature exists. Signed-off-by: Yaarit Hatuka --- src/common/options.cc | 4 ++ src/osd/OSD.cc | 107 +++++++++++++++++++++++++++++++ src/osd/OSD.h | 3 + src/pybind/mgr/smart/__init__.py | 2 + src/pybind/mgr/smart/module.py | 35 ++++++++++ 5 files changed, 151 insertions(+) create mode 100644 src/pybind/mgr/smart/__init__.py create mode 100644 src/pybind/mgr/smart/module.py diff --git a/src/common/options.cc b/src/common/options.cc index b286457b9b3..ee73aa106b9 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1632,6 +1632,10 @@ std::vector