--- .../bov-pktgen-sanitycheck.xml | 72 +++++++++++ .../vlan-iperf-tcp-udp-test1.xml | 129 ++++++++++++++++++++ .../rhel5/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++ .../rhel5/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++ .../rhel5/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++ .../rhel5/bond-tests/bond-netcat-iperf-test0.xml | 116 ++++++++++++++++++ .../rhel5/bond-tests/bond-netcat-iperf-test1.xml | 116 ++++++++++++++++++ .../rhel5/bond-tests/bond-netcat-iperf-test5.xml | 116 ++++++++++++++++++ .../rhel5/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++ .../rhel5/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++ .../rhel5/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++ .../network-stack-tests/rhel5/rhel58-guest1.xml | 7 + .../network-stack-tests/rhel5/rhel58-guest2.xml | 7 + .../rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml | 106 ++++++++++++++++ .../rhel5/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++ .../bond-over-vlan/bov-pktgen-sanitycheck.xml | 77 ++++++++++++ .../rhel6/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++ .../rhel6/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++ .../rhel6/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++ .../rhel6/bond-tests/bond-netcat-iperf-test0.xml | 117 ++++++++++++++++++ .../rhel6/bond-tests/bond-netcat-iperf-test1.xml | 97 +++++++++++++++ .../rhel6/bond-tests/bond-netcat-iperf-test5.xml | 97 +++++++++++++++ .../rhel6/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++ .../rhel6/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++ .../rhel6/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++ .../network-stack-tests/rhel6/rhel62-guest1.xml | 5 + .../network-stack-tests/rhel6/rhel62-guest2.xml | 5 + .../rhel6/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++ .../rhel6/vlan-tests/vlan-test1.xml | 104 ++++++++++++++++ 29 files changed, 2267 insertions(+), 0 deletions(-) create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml new file mode 100644 index 0000000..562a07d --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml @@ -0,0 +1,72 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1" /> + <slave id="2" /> + </slaves> + </netdevice> + + <netdevice id="4" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="3"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- do a simple pktgen traffic ... --> + <command machine_id="1" type="test" value="PktCounter" bg_id="1"> + <options> + <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/> + <option name="proto" value="udp"/> + <option name="dport" value="9"/> + </options> + </command> + + <command machine_id="2" type="test" value="PktgenTx" timeout="600"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/> + <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/> + <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][1]['name']"/> + <option name="vlan_tci" value="100" /> + </options> + </command> + + <command machine_id="1" type="intr" value="1"/> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml new file mode 100644 index 0000000..b8bd504 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml @@ -0,0 +1,129 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1" /> + <slave id="2" /> + </slaves> + </netdevice> + + <netdevice id="4" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="3"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1" /> + <slave id="2" /> + </slaves> + </netdevice> + + <netdevice id="4" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="3"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][4]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic TCP/UDP stream tests ... --> + + <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" /> + <command type="exec" value="sleep 3" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="120" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" /> + </options> + </command> + <command type="kill" machine_id="2" value="1" /> + + <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" /> + <command type="exec" value="sleep 3" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="120" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" /> + <option name="stream" value="udp" /> + </options> + </command> + <command type="kill" machine_id="2" value="2" /> + +<!-- TEST:3 start iperf tests ... --> + + <command machine_id="1" type="test" value="Iperf" bg_id="31"> + <options> + <option name="role" value="server" /> + <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" /> + <option name="install_dir" value="/root" /> + </options> + </command> + + <command type="exec" value="sleep 5" /> + + <command machine_id="2" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" /> + <option name="duration" value="120" /> + <option name="install_dir" value="/root" /> + </options> + </command> + + <command type="kill" machine_id="1" value="31" /> + + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml new file mode 100644 index 0000000..b416af2 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml new file mode 100644 index 0000000..788b4ab --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml new file mode 100644 index 0000000..8e5f63b --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml new file mode 100644 index 0000000..8b1950b --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml @@ -0,0 +1,116 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="duration" value="600" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="1" value="3" /> + +<!-- start a TCP stream in the same direction --> + + <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="2" value="4" /> + +<!-- kill background processes --> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml new file mode 100644 index 0000000..82ae29c --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml @@ -0,0 +1,116 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="duration" value="600" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="1" value="3" /> + +<!-- start a TCP stream in the same direction --> + + <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="2" value="4" /> + +<!-- kill background processes --> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml new file mode 100644 index 0000000..82ae29c --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml @@ -0,0 +1,116 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="duration" value="600" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="1" value="3" /> + +<!-- start a TCP stream in the same direction --> + + <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + </options> + </command> + + <command type="kill" machine_id="2" value="4" /> + +<!-- kill background processes --> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml new file mode 100644 index 0000000..9ec83ac --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml new file mode 100644 index 0000000..6f01eed --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml new file mode 100644 index 0000000..36bcfcb --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml new file mode 100644 index 0000000..e6ee46f --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml @@ -0,0 +1,7 @@ +<netmachineconfig> + <info hostname="10.34.30.233" rootpass="redhat"/> + <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AA:BB:C1"/> + <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AA:BB:C2"/> + <netdevice type="eth" phys_id="3" hwaddr="52:54:00:CF:1F:A7"/> + <netdevice type="eth" phys_id="4" hwaddr="52:54:00:29:66:82"/> +</netmachineconfig> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml new file mode 100644 index 0000000..3a2db26 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml @@ -0,0 +1,7 @@ +<netmachineconfig> + <info hostname="10.34.30.236" rootpass="redhat"/> + <netdevice type="eth" phys_id="1" hwaddr="52:54:00:aa:bb:d1"/> + <netdevice type="eth" phys_id="2" hwaddr="52:54:00:aa:bb:d2"/> + <netdevice type="eth" phys_id="3" hwaddr="52:54:00:30:d1:a8"/> + <netdevice type="eth" phys_id="4" hwaddr="52:54:00:b7:fa:36"/> +</netmachineconfig> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml new file mode 100644 index 0000000..7cd7a57 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml @@ -0,0 +1,106 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic TCP/UDP stream tests ... --> + + <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" /> + <command type="exec" value="sleep 3" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="600" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + <command type="kill" machine_id="2" value="1" /> + + <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" /> + <command type="exec" value="sleep 3" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="120" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="stream" value="udp" /> + </options> + </command> + <command type="kill" machine_id="2" value="2" /> + +<!-- TEST:3 start iperf tests ... --> + + <command machine_id="1" type="test" value="Iperf" bg_id="31"> + <options> + <option name="role" value="server" /> + <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" /> + <option name="install_dir" value="/root" /> + </options> + </command> + + <command type="exec" value="sleep 5" /> + + <command machine_id="2" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" /> + <option name="duration" value="120" /> + <option name="install_dir" value="/root" /> + </options> + </command> + + <command type="kill" machine_id="1" value="31" /> + + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml new file mode 100644 index 0000000..7bf126c --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml @@ -0,0 +1,71 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml new file mode 100644 index 0000000..1bce1e8 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml @@ -0,0 +1,77 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1" /> + <slave id="2" /> + </slaves> + </netdevice> + + <netdevice id="4" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="3"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1" /> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- do a simple pktgen traffic ... --> + <command machine_id="1" type="test" value="PktCounter" bg_id="1"> + <options> + <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/> + <option name="proto" value="udp"/> + <option name="dport" value="9"/> + </options> + </command> + + <command machine_id="2" type="test" value="PktgenTx" timeout="40"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/> + <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/> + <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][2]['name']"/> + </options> + </command> + + <command machine_id="1" type="intr" value="1"/> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml new file mode 100644 index 0000000..0baa10e --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml new file mode 100644 index 0000000..2b9ece0 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml new file mode 100644 index 0000000..9bb0497 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml @@ -0,0 +1,84 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf"> + <options> + <option name="role" value="client" /> + <option name="duration" value="600"/> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml new file mode 100644 index 0000000..b3486d6 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml @@ -0,0 +1,117 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + <option name="stream" value="udp" /> + </options> + </command> + + <command type="kill" machine_id="1" value="3" /> + +<!-- start a TCP stream in the same direction --> + + <command type="exec" machine_id="2" value="nc -l 1234" bg_id="4" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + <option name="duration" value="300" /> + <option name="stream" value="udp" /> + </options> + </command> + + <command type="kill" machine_id="2" value="4" /> + +<!-- kill background processes --> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml new file mode 100644 index 0000000..3b0c9c7 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml @@ -0,0 +1,97 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat" bg_id="4"> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + </command> + + <command type="exec" value="sleep 60" /> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + <command type="kill" machine_id="1" value="3" /> + <command type="kill" machine_id="2" value="4" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml new file mode 100644 index 0000000..3535138 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml @@ -0,0 +1,97 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start iperf tests ... --> + + <command machine_id="2" type="test" value="Iperf" bg_id="1"> + <options> + <option name="role" value="server" /> + <option name="install_dir" value="/root" /> + <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="test" value="Iperf" bg_id="2"> + <options> + <option name="role" value="client" /> + <option name="install_dir" value="/root" /> + <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + +<!-- start a TCP stream in opposite direction --> + + <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" /> + <command type="exec" value="sleep 1" /> + + <command machine_id="2" type="test" value="NetCat" bg_id="4"> + <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/> + <option name="port" value="1234" /> + </command> + + <command type="exec" value="sleep 60" /> + + <command type="kill" machine_id="1" value="2" /> + <command type="kill" machine_id="2" value="1" /> + <command type="kill" machine_id="1" value="3" /> + <command type="kill" machine_id="2" value="4" /> + + </command_sequence> +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml new file mode 100644 index 0000000..f7a9002 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="0" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml new file mode 100644 index 0000000..0810d66 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="1" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml new file mode 100644 index 0000000..7528199 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml @@ -0,0 +1,75 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="../rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="../rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="bond"> + <options> + <option name="mode" value="5" /> + <option name="miimon" value="100" /> + </options> + <slaves> + <slave id="1"/> + <slave id="2"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml new file mode 100644 index 0000000..b3d2638 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml @@ -0,0 +1,5 @@ +<netmachineconfig> + <info hostname="10.34.30.180" rootpass="redhat"/> + <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AB:CD:E1"/> + <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AB:CD:E2"/> +</netmachineconfig> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml new file mode 100644 index 0000000..fca113a --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml @@ -0,0 +1,5 @@ +<netmachineconfig> + <info hostname="10.34.30.181" rootpass="redhat"/> + <netdevice type="eth" phys_id="1" hwaddr="52:54:00:ab:cd:f1"/> + <netdevice type="eth" phys_id="2" hwaddr="52:54:00:ab:cd:f2"/> +</netmachineconfig> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml new file mode 100644 index 0000000..658a2a9 --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml @@ -0,0 +1,71 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="rhel58-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="rhel58-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic SCTP stream tests ... --> + + <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" /> + <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" /> + + <command type="exec" value="sleep 3" /> + + <command machine_id="1" type="kill" value="1" /> + </command_sequence> + +</nettestrecipe> diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml new file mode 100644 index 0000000..f96a55d --- /dev/null +++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml @@ -0,0 +1,104 @@ +<nettestrecipe> + + <machines> + <machine id="1"> + <netmachineconfig source="rhel62-guest1.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.2/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + + <machine id="2"> + <netmachineconfig source="rhel62-guest2.xml"/> + <netconfig> + <netdevice id="1" phys_id="1" type="eth"/> + <netdevice id="2" phys_id="2" type="eth"/> + <netdevice id="3" type="vlan"> + <options> + <option name="vlan_tci" value="100" /> + </options> + <slaves> + <slave id="1"/> + </slaves> + <addresses> + <address value="192.168.100.3/24" /> + </addresses> + </netdevice> + </netconfig> + </machine> + </machines> + + + <command_sequence> + +<!-- just a ping check ... --> + + <command machine_id="1" type="test" value="IcmpPing"> + <options> + <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="count" value="3"/> + </options> + </command> + +<!-- start basic TCP/UDP stream tests ... --> + + <command machine_id="2" type="exec" value="nc -l 10000" bg_id="1" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="600" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + </options> + </command> + <command type="kill" machine_id="2" value="1" /> + + <command machine_id="2" type="exec" value="nc -u -l 10000" bg_id="2" /> + <command machine_id="1" type="test" value="NetCat"> + <options> + <option name="port" value="10000" /> + <option name="duration" value="600" /> + <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" /> + <option name="stream" value="udp" /> + </options> + </command> + <command type="kill" machine_id="2" value="2" /> + +<!-- TEST:3 start iperf tests ... --> + + <command machine_id="1" type="test" value="Iperf" bg_id="31"> + <options> + <option name="install_dir" value="/opt" /> + <option name="role" value="server" /> + <option name="bind" value="192.168.100.2" /> + </options> + </command> + + <command type="exec" value="sleep 5" /> + + <command machine_id="2" type="test" value="Iperf"> + <options> + <option name="install_dir" value="/opt" /> + <option name="role" value="client" /> + <option name="iperf_server" value="192.168.100.2" /> + <option name="duration" value="600" /> + </options> + </command> + + <command type="kill" machine_id="1" value="31" /> + + + </command_sequence> + +</nettestrecipe>
lnst-developers@lists.fedorahosted.org