diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-12 19:44:00 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-17 08:54:21 +0800 |
commit | 2fa6b511f1a6c1a3372aacdacf7b6f68a4c72ddf (patch) | |
tree | adaed2455a7afcfa64949e3315743609d3494abb /resources/template/qpi-report.j2 | |
parent | 6d6259490b9c0897ba493070516600fcff94b312 (diff) |
Move YAML resources to /resources.
- replacing the content of /benchmarks will break current module like api/cli
- migration required before surpressing the current benchmarks/ folder
Change-Id: I8bd04eeb18aaa3c966330ff7adbe85a267680fc1
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/template/qpi-report.j2')
-rw-r--r-- | resources/template/qpi-report.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/template/qpi-report.j2 b/resources/template/qpi-report.j2 new file mode 100644 index 00000000..afe9bfb8 --- /dev/null +++ b/resources/template/qpi-report.j2 @@ -0,0 +1,18 @@ +Sample QPI Report +{% for host in groups['compute'] %} +{% set qpi_result = hostvars[host].qpi_result %} + +Host: {{ hostvars[host].ansible_hostname }} +QPI: {{ qpi_result.score }} +Spec: {{ qpi_result.spec.name }} + +{% for section in qpi_result.section_results %} +- {{ section.name }}: {{ section.result.score }} +{% for metric in section.result.metric_results %} + - {{ metric.name }}: {{ metric.result.score }} +{% for workload in metric.result.workload_results %} + - {{ workload.name }}: {{ workload.score }} +{% endfor %} +{% endfor %} +{% endfor %} +{% endfor %} |