Ceph report fixes and Ceph bench beta 0.1
- Ceph stats collection
- Updated Ceph results averages calculations
Fixes:
- Fixed huge PG dump copying >30MB jsons
- Fixes for the fio-runner constants
Related-PROD: PROD-36669
Change-Id: Id8e250f626dfdaecc12ad005b61d03a21c9e6c4e
diff --git a/templates/ceph_bench_html.j2 b/templates/ceph_bench_html.j2
index e847cb4..c05a412 100644
--- a/templates/ceph_bench_html.j2
+++ b/templates/ceph_bench_html.j2
@@ -444,7 +444,7 @@
</div>
<table style="table-layout: auto;"><tbody>
{% for agent,ag_result in dt["agents"].items() %}
- {% set j = ag_result[time]["jobs"][0] %}
+ {% set j = ag_result["jobs"][0] %}
<tr>
<td class="status">{{ time }}</td>
<td class="status">{{ agent }}</td>
diff --git a/templates/ceph_info_html.j2 b/templates/ceph_info_html.j2
index eafa2fa..9dca52a 100644
--- a/templates/ceph_info_html.j2
+++ b/templates/ceph_info_html.j2
@@ -884,7 +884,7 @@
<td class="dev_param centered">Smart Status</td>
<td class="dev_param centered">Smart data</td>
</tr>
- {% for _d, _p in dh.items() | sort(attribute='0') %}
+ {% for _d, _p in dh.items() | sort(attribute='0') if _p %}
<tr class="node">
<td class="dev_name">
<div class="text">{{ _p['model_name'] }}, {{ _p['serial_number'] }}</div><br>
diff --git a/templates/cfgagent-template.yaml b/templates/cfgagent-template.yaml
index 86c58e6..3cd7e59 100644
--- a/templates/cfgagent-template.yaml
+++ b/templates/cfgagent-template.yaml
@@ -15,11 +15,11 @@
image: savex13/cfg-checker-agent:0.65
volumeMounts:
- mountPath: /cephvol
- name: cfgagent-pv-placeholder
+ name: cfgagent-pv
dnsPolicy: ClusterFirst
volumes:
- emptyDir: {}
name: pod-tmp
- - name: cfgagent-pv-placeholder
+ - name: cfgagent-pv
persistentVolumeClaim:
claimName: cfgagent-pvc-placeholder