browbeat/rally/rally-plugins/octavia/octavia-fully-populated-loadbalancer.yml
Asma Syed Hameed 24f3eec46d Enhance the test scenario to use octavia_tempest_plugin to simulate http server on backend vm's
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
2021-07-16 14:47:33 +05:30

47 lines
1.2 KiB
YAML

{% set image_name = image_name or 'centos7' %}
{% set flavor_name = flavor_name or 'm1.small' %}
{% set vip_subnet_id = vip_subnet_id %}
{% set num_lb = num_lb or 1 %}
{% set user_data_file = user_data_file %}
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
---
BrowbeatPlugin.OctaviaFullyPopulatedLoadbalancer:
-
args:
image:
name: '{{image_name}}'
flavor:
name: '{{flavor_name}}'
vip_subnet_id: '{{vip_subnet_id}}'
num_lb: '{{num_lb}}'
user_data_file: {{user_data_file}}
jump_host_ip: "{{ jump_host_ip }}"
user: "{{ user}}"
runner:
concurrency: {{concurrency}}
times: {{times}}
type: "constant"
context:
users:
tenants: 2
users_per_tenant: 2
network: {}
quotas:
neutron:
network: -1
port: -1
router: -1
subnet: -1
floatingip: -1
nova:
instances: -1
cores: -1
ram: -1
sla:
max_avg_duration: {{sla_max_avg_duration}}
max_seconds_per_iteration: {{sla_max_seconds}}
failure_rate:
max: {{sla_max_failure}}