cfg-checker ceph bench module part 4
- benchmark code refactoring/cleaning
- using UTC timezone for scheduling
- 'tasks' mode first version
- updated agent poking response structure
Related-PROD: PROD-36669
Change-Id: I8bf9d9b4d54a41cc04f7765e17efb675028c6262
diff --git a/cfg_checker/modules/ceph/__init__.py b/cfg_checker/modules/ceph/__init__.py
index 62941d5..0f1de01 100644
--- a/cfg_checker/modules/ceph/__init__.py
+++ b/cfg_checker/modules/ceph/__init__.py
@@ -176,17 +176,17 @@
# TODO: Update options for single run
logger_cli.debug(" {} = {}".format(_k, _opts[_k]))
- # handle option inavailability
+ # handle option inavailability from command line for single mode
+
+ # init the Bench class
ceph_bench = bench.KubeCephBench(config)
-
- # Load tasks
-
# Do the testrun
ceph_bench.prepare_agents(_opts)
if not ceph_bench.run_benchmark(_opts):
# No cleaning and/or report if benchmark was not finished
logger_cli.info("# Abnormal benchmark run, no cleaning performed")
return
+ # Cleaning
if not config.no_cleaning_after_benchmark:
ceph_bench.cleanup()
else: