]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/smart: remove
authorSage Weil <sage@redhat.com>
Wed, 13 Feb 2019 18:38:53 +0000 (12:38 -0600)
committerSage Weil <sage@redhat.com>
Wed, 13 Feb 2019 18:39:22 +0000 (12:39 -0600)
This is obsolete and replaced by the devicehealth module.

Signed-off-by: Sage Weil <sage@redhat.com>
ceph.spec.in
debian/ceph-mgr.install
src/pybind/mgr/smart/__init__.py [deleted file]
src/pybind/mgr/smart/module.py [deleted file]

index 0d81ecbae863148f2f95094a92b4395701bad861..7879d12e9260ed76387d16cf628dfa8094960f31 100644 (file)
@@ -1461,7 +1461,6 @@ fi
 %{_libdir}/ceph/mgr/rbd_support
 %{_libdir}/ceph/mgr/restful
 %{_libdir}/ceph/mgr/selftest
-%{_libdir}/ceph/mgr/smart
 %{_libdir}/ceph/mgr/status
 %{_libdir}/ceph/mgr/telegraf
 %{_libdir}/ceph/mgr/telemetry
index c134b8eb8c617dcbb5c7cdb203e50b9b4b56c45b..dff4e69a3c1c55c99a31fb73c0d3a40bc413d61e 100644 (file)
@@ -21,7 +21,6 @@ usr/lib/ceph/mgr/prometheus
 usr/lib/ceph/mgr/rbd_support
 usr/lib/ceph/mgr/restful
 usr/lib/ceph/mgr/selftest
-usr/lib/ceph/mgr/smart
 usr/lib/ceph/mgr/status
 usr/lib/ceph/mgr/test_orchestrator
 usr/lib/ceph/mgr/telegraf
diff --git a/src/pybind/mgr/smart/__init__.py b/src/pybind/mgr/smart/__init__.py
deleted file mode 100644 (file)
index 4c5b97c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-from .module import Module
diff --git a/src/pybind/mgr/smart/module.py b/src/pybind/mgr/smart/module.py
deleted file mode 100644 (file)
index 3df9356..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-
-"""
-Pulling smart data from OSD
-"""
-
-import json
-from mgr_module import MgrModule, CommandResult
-
-
-class Module(MgrModule):
-    COMMANDS = [
-        {
-            "cmd": "osd smart get "
-                   "name=osd_id,type=CephString,req=true",
-            "desc": "Get smart data for osd.id",
-            "perm": "r"
-        },
-    ]
-
-    def handle_command(self, inbuf, cmd):
-        self.log.error("handle_command")
-
-        if cmd['prefix'] == 'osd smart get':
-            result = CommandResult('')
-            self.send_command(result, 'osd', cmd['osd_id'], json.dumps({
-                'prefix': 'smart',
-                'format': 'json',
-            }), '')
-            r, outb, outs = result.wait()
-            return (r, outb, outs)
-
-        else:
-            # mgr should respect our self.COMMANDS and not call us for
-            # any prefix we don't advertise
-            raise NotImplementedError(cmd['prefix'])