From 4932ec39672bbb3fded52c61d473bf9a47027ea5 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Thu, 26 May 2016 19:38:01 +0800 Subject: 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 --- benchmarks/playbooks/iperf.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'benchmarks/playbooks') 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 -- cgit 1.2.3-korg