rally-openstack/samples/tasks/scenarios/nova/boot-and-associate-floating-ip.json
chenhb d48d9f89c8 Add option arguments of scenarios of floating ip creation
In some cases, we must specify a network for floating ip creation.
e.g: more one extenal network and the first extenal network cannot
route to the vm.

Change-Id: I704612ef8f0129fafb16f9468f38383d47d587ab
2017-12-05 11:35:26 +00:00

63 lines
1.1 KiB
JSON

{% set flavor_name = flavor_name or "m1.tiny" %}
{
"NovaServers.boot_and_associate_floating_ip": [
{
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"args": {
"flavor": {
"name": "{{flavor_name}}"
},
"image": {
"name": "^cirros.*-disk$"
}
},
"context": {
"users": {
"users_per_tenant": 1,
"tenants": 1
},
"network": {}
},
"sla": {
"failure_rate": {
"max": 0
}
}
},
{
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"args": {
"flavor": {
"name": "{{flavor_name}}"
},
"image": {
"name": "^cirros.*-disk$"
},
"create_floating_ip_args": {
"ext_network": "ext_network_name"
}
},
"context": {
"users": {
"users_per_tenant": 1,
"tenants": 1
},
"network": {}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}