[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:
parent
baf3716ae9
commit
6b19d3a7fc
@ -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
|
||||
########################################
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user