aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/site.cntt.yml
blob: 8a290c8125631297128d1eaad30ea4db396bada9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
- hosts:
    - 127.0.0.1
  roles:
    - role: collivier.xtesting
      project: functest
      gerrit_project: functest
      builds:
        dependencies:
          - repo: _
            dport:
            container: alpine
            tag: '3.11'
        steps:
          - name: build opnfv/functest-core
            containers:
              - name: functest-core
                ref_arg: BRANCH
                path: docker/core
          - name: build containers
            containers:
              - name: functest-healthcheck
                ref_arg: BRANCH
                path: docker/healthcheck
              - name: functest-smoke-cntt
                ref_arg: BRANCH
                path: docker/smoke-cntt
              - name: functest-benchmarking-cntt
                ref_arg: BRANCH
                path: docker/benchmarking-cntt
              - name: functest-vnf
                ref_arg:
                path: docker/vnf
      suites:
        - container: functest-healthcheck
          tests:
            - connection_check
            - tenantnetwork1
            - tenantnetwork2
            - vmready1
            - vmready2
            - singlevm1
            - singlevm2
            - vping_ssh
            - vping_userdata
            - cinder_test
            - odl
            - tempest_smoke
            - tempest_horizon
        - container: functest-smoke-cntt
          tests:
            - tempest_neutron_cntt
            - tempest_cinder_cntt
            - tempest_keystone_cntt
            - tempest_heat_cntt
            - rally_sanity_cntt
            - tempest_full_cntt
            - tempest_scenario_cntt
            - tempest_slow_cntt
        - container: functest-benchmarking-cntt
          tests:
            - rally_full_cntt
            - rally_jobs_cntt
            - vmtp
            - shaker
        - container: functest-vnf
          tests:
            - cloudify
            - cloudify_ims
            - heat_ims
            - vyos_vrouter
            - juju_epc
          properties:
            execution-type: SEQUENTIALLY
name: Running iperf on server shell: iperf3 -s async: 400 poll: 0 when: rolename == "1-server" - name: Running Iperf on Host shell: iperf3 --time {{duration}} -b 0 G -c {{ip1}} -J -O10 >> {{home_dir.stdout}}/qtip_result/iperf_raw.json ignore_errors: yes with_items: - "{{ip1}}" when: rolename == "2-host" and "{{privateip1}}" == "NONE" - name: Running Iperf on Host shell: iperf3 --time {{duration}} -b 0 G -c {{privateip1}} -J -O10 >> {{home_dir.stdout}}/qtip_result/iperf_raw.json ignore_errors: yes with_items: - "{{ip1}}" when: rolename == "2-host" and "{{privateip1}}" != "NONE" - name: Fetching result transformation script copy: src=./result_transform/iperf/iperf_transform.py dest={{home_dir.stdout}}/qtip_result - name: Transforming result shell: cd $HOME/qtip_result && sudo python iperf_transform.py when: rolename =="2-host" and "{{ip2}}" == '' - name: copy report formation script copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result when: rolename =="2-host" and "{{ip2}}" == '' - name: consolidating report shell: cd $HOME/qtip_result && sudo python final_report.py IPERF {{fname}} when: rolename =="2-host" and "{{ip2}}" == '' - name: Files to Copy shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2 register: files_to_copy when: rolename =="2-host" and "{{ip2}}" == '' - name: copy results fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/iperf/iperf_temp with_items: files_to_copy.stdout_lines when: rolename =="2-host" and "{{ip2}}" == '' - name: registering log files shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2 register: copy_log_results when: rolename =="2-host" and "{{ip2}}" == '' - name: copying log results fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/iperf/iperf_temp with_items: copy_log_results.stdout_lines when: rolename =="2-host" and "{{ip2}}" == '' - hosts: 127.0.0.1 connection: local tasks: - name: Rolename set_fact: rolename: "{{role}}" when: role is defined - name: extracting_json shell: ( find {{workingdir}}/{{Dest_dir}}/iperf/iperf_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/iperf/) when: rolename == "2-host" - name: making_logs_folder shell: mkdir -p {{workingdir}}/{{Dest_dir}}/iperf/logs - name: extracting_log shell: ( find {{workingdir}}/{{Dest_dir}}/iperf/iperf_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/iperf/logs) when: rolename == "2-host" - name: removing iperf_raw file shell: rm -rf {{workingdir}}/{{Dest_dir}}/iperf/iperf_raw.json when: rolename == "2-host" - name: removing iperf_temp shell: rm -rf {{workingdir}}/{{Dest_dir}}/iperf/iperf_temp