Skip to content

Commit 5258431

Browse files
vkhitrinmnietoji
authored andcommitted
gather_perf_info: Fix Playbook
Ensure elasticsearch Python SDK is installed globally. Delegate reporting to DuT compute. Change-Id: Ifea7b843baeab1e7c809f9c0046434e577a5475b (cherry picked from commit 9b7c7a3)
1 parent 7aef62a commit 5258431

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

playbooks/packet_gen/trex/gather_perf_info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
command: ovs-vswitchd --version
6666
register: compute_ovs_versions
6767

68-
delegate_to: "{{ groups['compute'][0] }}"
68+
delegate_to: "{{ dut_compute if dut_compute else 'none' }}"
6969

7070
- name: upload_result_to_elk
7171
include_role:

roles/packet_gen/trex/upload_results_to_elk/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- name: install elasticsearch pip
1010
pip:
1111
name: elasticsearch=={{ elasticsearch_pip_version }}
12+
become: true
1213

1314
- name: upload results to elasticsearch
1415
script: upload_to_ELK.py --upload -p /tmp/{{ dut_type }}_perf_info.json
16+
args:
17+
executable: python3

0 commit comments

Comments
 (0)