Ceph Info command
Updates
- ceph module with 'info', 'report' and 'bench' commands
- mcp-checker ceph info command is collecting Ceph config
and creates an archive
- ceph report command creates HTML document with
info collected from Ceph cluster
- Basic SMART data output in info and full output in report
- skeleton of the ceph bench command to run synced tests
Fixes
- kube helper commands uses proper naming
Change-Id: Ia5aaa343f7d1c38a67d34e60215801bbb0fea097
Related-PROD: PROD-36605
diff --git a/cfg_checker/modules/ceph/bench.py b/cfg_checker/modules/ceph/bench.py
new file mode 100644
index 0000000..28c7929
--- /dev/null
+++ b/cfg_checker/modules/ceph/bench.py
@@ -0,0 +1,48 @@
+from cfg_checker.common import logger_cli
+# from cfg_checker.common.exception import InvalidReturnException
+# from cfg_checker.common.exception import ConfigException
+# from cfg_checker.common.exception import KubeException
+
+from cfg_checker.nodes import KubeNodes
+
+
+class CephBench(object):
+ def __info__(
+ self,
+ config
+ ):
+ self.env_config = config
+ return
+
+ def prepare_pods(self):
+
+ return
+
+ def run_benchmark(self):
+
+ return
+
+ # Create report
+ def create_report(self):
+
+ return
+
+
+class SaltCephBench(CephBench):
+ def __init__(
+ self,
+ config
+ ):
+ logger_cli.error("ERROR: Not impelented for Sale environment!")
+
+ # self.master = SaltNodes(config)
+ super(SaltCephBench, self).__init__(
+ config
+ )
+ return
+
+
+class KubeCephBench(CephBench):
+ def __init__(self, config):
+ self.master = KubeNodes(config)
+ super(KubeCephBench, self).__init__(config)