diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-05-26 19:38:01 +0800 |
---|---|---|
committer | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-05-27 13:42:51 +0800 |
commit | 4932ec39672bbb3fded52c61d473bf9a47027ea5 (patch) | |
tree | 35ce466cc696ff6ec54ddd94c7ac504239b3ac68 /benchmarks/playbooks | |
parent | 052df6190466f5b9f2722fa1885cf08f6da1e629 (diff) |
This change fix the iperf server port 5201 dropped by iptables problem.
modification:
- Delete "Getting Firewall entry number"
- Delete "Removing entry number"
- Add "Allow iperf port in iptables input"
QTIP-77
Change-Id: If124d747468831218645920c31cb76463d1d17e2
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'benchmarks/playbooks')
-rw-r--r-- | benchmarks/playbooks/iperf.yaml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml index 4199b621..a6e3775b 100644 --- a/benchmarks/playbooks/iperf.yaml +++ b/benchmarks/playbooks/iperf.yaml @@ -55,16 +55,12 @@ shell: sudo yum install epel-release -y when: ansible_os_family == "RedHat" - - name: Getting Firewall entry number - shell: sudo iptables -L INPUT --line-number | grep DROP | awk '{print $1}' - register: iptable_entry - ignore_errors: yes - when: installertype == 'fuel' - - - name: Removing entry number - shell: sudo iptables -D INPUT {{iptable_entry.stdout}} + - name: Allow iperf server port in iptables input rules + shell: iptables -A INPUT -p tcp --dport {{iperf_port}} -j ACCEPT + vars: + iperf_port: 5201 ignore_errors: yes - when: iptable_entry != '' and installertype == 'fuel' + when: rolename == "1-server" and installertype == 'fuel' - name: Installing IPERF when Ubuntu shell: sudo apt-get install iperf3 -y |