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/nodes.py b/cfg_checker/nodes.py
index d87d829..ef2219c 100644
--- a/cfg_checker/nodes.py
+++ b/cfg_checker/nodes.py
@@ -1043,7 +1043,7 @@
logger_cli.error("Timed out waiting for Daemonset to be ready")
return False
- def exec_on_target_pod(self, pod_name, script_filename, args=None):
+ def exec_script_on_target_pod(self, pod_name, script_filename, args=None):
"""
Run script from configmap on target pod assuming it is present
"""
@@ -1064,6 +1064,18 @@
)
return _result
+ def exec_cmd_on_target_pod(self, pod_name, ns, command_str):
+ """
+ Run script from configmap on target pod assuming it is present
+ """
+ _result = self.kube.exec_on_target_pod(
+ command_str,
+ pod_name,
+ ns,
+ strict=True
+ )
+ return _result
+
def execute_script_on_daemon_set(self, ds, script_filename, args=None):
"""
Query daemonset for pods and execute script on all of them