Build an image custom-cirros (with test_server.bin)
provide floating ip of jump host server for jump_host_ip in browbeat-config.yml to execute curl for lb_ip
Prepare user_data.file like below and pass it to the scenario
for iface in /sys/class/net/*
do
if [ "$iface" != "/sys/class/net/lo" -a "$iface" != "/sys/class/net/eth0" ]
then
interface=$(echo $iface | cut -d "/" -f 5)
echo $interface
sudo ifconfig $interface up
sudo udhcpc -p /var/run/udhcpc.$interface.pid -R -n -T 60 -i $interface -s /sbin/cirros-dhcpc -O mtu -O staticroutes -x hostname cirros
fi
done
echo "Running test_server binary"
chmod 777 /home/cirros/test_server.bin
sudo su && echo 1 > /proc/sys/vm/overcommit_memory
./home/cirros/test_server.bin -port 80 &
Co-authored by: Venkata Kommaddi <anilvenkata@redhat.com>
Change-Id: I0fb8dd841974d28f019319744e4271d9ac210375