aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-25 13:49:21 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-25 16:58:26 +0800
commit6463b6635a8094a0ddcf83605cd231ba46104f72 (patch)
tree4ec7c0381f4447f5462fb2cac556a473b4b3c36e /resources/ansible_roles
parentec63540ec6cd3e6310407826b99cf0b3327bdf02 (diff)
Add ssl aes metrics in qpi calculation
Change-Id: Id568aa3942849e105ca24892babff2acaec21121 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles')
-rw-r--r--resources/ansible_roles/openssl/tasks/main.yml5
-rw-r--r--resources/ansible_roles/qtip/tasks/calculate.yml2
2 files changed, 6 insertions, 1 deletions
diff --git a/resources/ansible_roles/openssl/tasks/main.yml b/resources/ansible_roles/openssl/tasks/main.yml
index 6ef24bbc..91c5be93 100644
--- a/resources/ansible_roles/openssl/tasks/main.yml
+++ b/resources/ansible_roles/openssl/tasks/main.yml
@@ -25,6 +25,7 @@
set_fact:
rsa_logfile: "{{ qtip_results }}/openssl_rsa.log"
aes_logfile: "{{ qtip_results }}/openssl_aes.log"
+ tags: always
# TODO(yujunz) `delegate_to` not working under `with_items`
- name: saving rsa output to log
@@ -61,6 +62,7 @@
?(?P<rsa_verify_4096>\d+\.\d)$
export_to: "{{ qtip_results }}/ssl_rsa_metrics.json"
register: ssl_rsa_metrics
+ tags: collect
- name: collect ssl aes metrics
collect:
@@ -75,10 +77,11 @@
?(?P<aes_128_cbc_8192_bytes>\d+\.\w+)$
export_to: "{{ qtip_results }}/ssl_aes_metrics.json"
register: ssl_aes_metrics
+ tags: collect
- name: create SSL report
template:
src: ssl-metrics.j2
dest: "{{ qtip_results }}/ssl-metrics"
delegate_to: localhost
- tags: [report]
+ tags: report
diff --git a/resources/ansible_roles/qtip/tasks/calculate.yml b/resources/ansible_roles/qtip/tasks/calculate.yml
index aae4b453..3bcda9f9 100644
--- a/resources/ansible_roles/qtip/tasks/calculate.yml
+++ b/resources/ansible_roles/qtip/tasks/calculate.yml
@@ -13,6 +13,8 @@
calculate:
metrics:
ssl_rsa: "{{ ssl_rsa_metrics }}"
+ ssl_aes: "{{ ssl_aes_metrics }}"
spec: "{{ qtip_resources }}/QPI/compute.yaml"
+ export_to: "{{ qtip_results }}/qpi_result.json"
register: qpi_result
delegate_to: localhost