87f2384e9b
These Rally plugins are designed to take num_networks as an optional argument, where num_networks=1 if not otherwise defined. https://github.com/openstack/browbeat/blob/master/rally/rally-plugins/netcreate-boot/netcreate_boot.py#L29 But when Rally takes the Browbeat config values and attempts to template the yml files in the plugin folders num_networks is not set to a default value in those template files, meaning Rally fails to generate the templates and to ever reach the plugin which wouldn't care anyways. This change adds a default value for num_networks to the plugin template files such that when Rally templates off of these files it will run successfully regardless of if num_networks is defined. Note that from the perspective of the Rally plugin it will now always recieve a value for num_networks even if that value is 1, the same thing it would be if it had not recieved a value at all. Change-Id: I4313aaed963be1689be91bbd180a046e70f987b3
30 lines
768 B
YAML
30 lines
768 B
YAML
{% 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 %}
|
|
{% set num_networks = num_networks or 1 %}
|
|
---
|
|
NeutronPlugin.create_router_and_net:
|
|
-
|
|
args:
|
|
network_create_args: {}
|
|
num_networks: {{num_networks}}
|
|
runner:
|
|
concurrency: {{concurrency}}
|
|
times: {{times}}
|
|
type: "constant"
|
|
context:
|
|
users:
|
|
tenants: 1
|
|
users_per_tenant: 8
|
|
quotas:
|
|
neutron:
|
|
network: -1
|
|
port: -1
|
|
router: -1
|
|
subnet: -1
|
|
sla:
|
|
max_avg_duration: {{sla_max_avg_duration}}
|
|
max_seconds_per_iteration: {{sla_max_seconds}}
|
|
failure_rate:
|
|
max: {{sla_max_failure}}
|