diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-03 08:10:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-03 08:10:41 +0000 |
commit | 403e8ead12863163573f45c1be07a48c05061f45 (patch) | |
tree | 9f0398c9a8e3ebc397e3f30e88a083f09a04d0b5 /benchmarks/playbooks/netperf.yaml | |
parent | 10fa387f3ad554a4c42c580b424f79c2171c64d3 (diff) | |
parent | a9d5c798ad0da8494056181cc1b68f85f9b203c9 (diff) |
Merge "Remove playbooks directory"
Diffstat (limited to 'benchmarks/playbooks/netperf.yaml')
-rw-r--r-- | benchmarks/playbooks/netperf.yaml | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/benchmarks/playbooks/netperf.yaml b/benchmarks/playbooks/netperf.yaml deleted file mode 100644 index a07752cb..00000000 --- a/benchmarks/playbooks/netperf.yaml +++ /dev/null @@ -1,97 +0,0 @@ - - hosts: localhost - connection: local - gather_facts: no - - tasks: - - name: getting directory - shell: echo $PWD - register: qtip_dir - - - name: making Netperf directory - file: path={{workingdir}}/{{Dest_dir}}/netperf state=directory - - - name: making temporary netperf directory - file: path={{workingdir}}/{{Dest_dir}}/netperf/netperf_temp state=directory - - - - hosts: "{{role}}" - become: yes - remote_user: "{{username}}" - - tasks: - - name: Rolename - set_fact: - rolename: "{{role}}" - when: role is defined - - - name: Get Hostname - shell: echo $HOSTNAME - register: hostID - - - name: checking home directory - shell: echo $HOME - register: home_dir - - - name: cleaning - shell: rm -rf $HOME/netperf - - - name: cleaning previous results - shell: rm -rf $HOME/qtip_result - - - name: making netperf temporary directory - shell: mkdir $HOME/netperf - - - name: making results temporary directory - shell: mkdir $HOME/qtip_result - - - name: Fetching netperf - shell: wget ftp://ftp.netperf.org/netperf/netperf-2.7.0.tar.gz - when: ansible_os_family == "RedHat" - - - name: Extracting Netperf - shell: tar -xvf netperf-2.7.0.tar.gz - - - name: configuring netperf - shell: cd $HOME/netperf-2.7.0 && ./configure - - - name: Making Netperf - shell: cd $HOME/netperf-2.7.0 && make - - - name: Installing Netperf - shell: cd $HOME/netperf-2.7.0 && make install - - - name: Running netperf on server - shell: /usr/local/bin/netserver -p 4000 - when: rolename == "1-server" - - - name: Running netperf on Host - shell: /usr/local/bin/netperf -H {{privateip1}} -p 4000 -l {{duration}} -t {{teststream}} -fG >> ./qtip_result/server{{hostID.stdout}}-{{item}}.json - ignore_errors: yes - with_items: - - "{{ip1}}" - 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 - - - name: copy results - fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/netperf/netperf_temp - with_items: "{{files_to_copy.stdout_lines}}" - - - hosts: localhost - connection: local - gather_facts: no - - tasks: - - name: Rolename - set_fact: - rolename: "{{role}}" - when: role is defined - - - name: extracting_json - shell: ( find {{workingdir}}/{{Dest_dir}}/netperf/netperf_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/netperf/) - when: rolename == "2-host" - - - name: removing netperf_temp - shell: rm -rf {{workingdir}}/{{Dest_dir}}/netperf/netperf_temp |