[octavia] Fix custom image preparation

Added octavia_test_bin_download_cmd variable to
allow using different command for test_bin file
download, like:-
octavia_test_bin_download_cmd: "curl -O --insecure"

Also use absolute path for test_bin file as relative
path requires the script to run from specific directory.

Change-Id: Id7a6cabd10889abad8ea54745fb6fec7b1db4ffc
This commit is contained in:
yatinkarel 2023-09-21 20:40:01 +05:30
parent baf3716ae9
commit 6b19d3a7fc
3 changed files with 5 additions and 2 deletions

View File

@ -65,6 +65,9 @@ iptables_file: /etc/sysconfig/iptables
#octavia_test_bin_path:
# Command to use to download test_bin file
octavia_test_bin_download_cmd: "wget"
########################################
# Browbeat Workloads
########################################

View File

@ -1,5 +1,5 @@
#!/bin/sh
sudo echo "nameserver {{ dns_server }}" > /etc/resolv.conf
cd /home/cirros/ && wget "{{ octavia_test_bin_path }}"
cd /home/cirros/ && {{ octavia_test_bin_download_cmd }} "{{ octavia_test_bin_path }}"
echo "Browbeat workload installed"

View File

@ -8,5 +8,5 @@ chmod 777 /home/cirros/test_server.bin
sudo su && echo 1 > /proc/sys/vm/overcommit_memory
for i in $(seq 0 $(($NUM_POOLS-1))); do
./home/cirros/test_server.bin -port $(($PORT+ $i)) &
/home/cirros/test_server.bin -port $(($PORT+ $i)) &
done