Cfg-checker ceph benchmark & info updates and fixes
- Added collecting Ceph global stats while running benchmark
- Added collecting osd pg dump data
- Added page with active OSD nodes stats
- --report-only option, ceph info still collected
Fixes:
- fio-runner uses scheduled time when reporting errors
- proper ceph pv creation
- updated retry decorator timeouts for overloaded envs
- calculated volume size creation with size*1.3
- Proper maximum values indication
Related-PROD: PROD-36669
Change-Id: Ic518ddbb2ca0915b550e981d0b0fc7084000aa04
diff --git a/cfg_checker/reports/reporter.py b/cfg_checker/reports/reporter.py
index 150ce65..de0c83c 100644
--- a/cfg_checker/reports/reporter.py
+++ b/cfg_checker/reports/reporter.py
@@ -123,15 +123,15 @@
def to_gb(bytes_str):
- _bytes = int(bytes_str)
- _gb = _bytes / 1024 / 1024 / 1024
- return "{}".format(round(_gb, 2))
+ return "{}".format(round(int(bytes_str) / 1024 / 1024 / 1024, 2))
def to_mb(bytes_str):
- _bytes = int(bytes_str)
- _mb = _bytes / 1024 / 1024
- return "{}".format(round(_mb, 2))
+ return "{}".format(round(int(bytes_str) / 1024 / 1024, 2))
+
+
+def to_kb(bytes_str):
+ return "{}".format(round(int(bytes_str) / 1024, 2))
def get_bucket_item_name(id, cmap):
@@ -251,6 +251,7 @@
self.jinja2_env.filters['pkg_repo_info'] = make_repo_info
self.jinja2_env.filters['to_gb'] = to_gb
self.jinja2_env.filters['to_mb'] = to_mb
+ self.jinja2_env.filters['to_kb'] = to_kb
self.jinja2_env.filters['get_bucket_item_name'] = get_bucket_item_name
self.jinja2_env.filters['get_rule_steps'] = get_rule_steps
self.jinja2_env.filters['get_pool_stats'] = get_pool_stats_by_id