Merge "Improvements/Fixes to netcreate-boot-ping plugin"
This commit is contained in:
commit
2c2460d0bf
@ -90,6 +90,7 @@ rally:
|
|||||||
venv: /home/stack/rally-venv/bin/activate
|
venv: /home/stack/rally-venv/bin/activate
|
||||||
plugins:
|
plugins:
|
||||||
- netcreate-boot: rally/rally-plugins/netcreate-boot
|
- netcreate-boot: rally/rally-plugins/netcreate-boot
|
||||||
|
- netcreate-boot-ping: rally/rally-plugins/netcreate-boot-ping
|
||||||
- subnet-router-create: rally/rally-plugins/subnet-router-create
|
- subnet-router-create: rally/rally-plugins/subnet-router-create
|
||||||
- glance-create-boot-delete: rally/rally-plugins/glance-create-boot-delete
|
- glance-create-boot-delete: rally/rally-plugins/glance-create-boot-delete
|
||||||
- nova-create-pbench-uperf: rally/rally-plugins/nova-create-pbench-uperf
|
- nova-create-pbench-uperf: rally/rally-plugins/nova-create-pbench-uperf
|
||||||
@ -215,6 +216,12 @@ rally:
|
|||||||
image_name: cirros
|
image_name: cirros
|
||||||
flavor_name: m1.tiny
|
flavor_name: m1.tiny
|
||||||
file: rally/rally-plugins/netcreate-boot/netcreate_boot.yml
|
file: rally/rally-plugins/netcreate-boot/netcreate_boot.yml
|
||||||
|
- name: netcreate-boot-ping
|
||||||
|
enabled: true
|
||||||
|
image_name: cirros
|
||||||
|
flavor_name: m1.xtiny
|
||||||
|
net_id: 790354c7-f286-4fd1-a4a1-ec9749c61fbf
|
||||||
|
file: rally/rally-plugins/netcreate-boot-ping/netcreate_nova-boot-fip-ping.yml
|
||||||
- name: subnet-router-create
|
- name: subnet-router-create
|
||||||
enabled: true
|
enabled: true
|
||||||
num_networks: 10
|
num_networks: 10
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"NeutronBootFipPingPlugin.create_network_nova_boot_ping": [
|
|
||||||
{
|
|
||||||
"args": {
|
|
||||||
"floating": True,
|
|
||||||
"flavor": {
|
|
||||||
"name": "{{flavor_name}}"
|
|
||||||
},
|
|
||||||
"image": {
|
|
||||||
"name": "{{image_name}}"
|
|
||||||
},
|
|
||||||
"ext_net": {
|
|
||||||
"id": "{{net_id}}"
|
|
||||||
},
|
|
||||||
"network_create_args": {}
|
|
||||||
},
|
|
||||||
"runner": {
|
|
||||||
"type": "serial",
|
|
||||||
"times": 1
|
|
||||||
},
|
|
||||||
"context": {
|
|
||||||
"users": {
|
|
||||||
"tenants": 1,
|
|
||||||
"users_per_tenant": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -18,7 +18,7 @@ from rally.task import types
|
|||||||
from rally.task import validation
|
from rally.task import validation
|
||||||
|
|
||||||
|
|
||||||
class NeutronBootFipPingPlugin(neutron_utils.NeutronScenario,
|
class BrowbeatPlugin(neutron_utils.NeutronScenario,
|
||||||
vm_utils.VMScenario,
|
vm_utils.VMScenario,
|
||||||
scenario.Scenario):
|
scenario.Scenario):
|
||||||
#
|
#
|
||||||
@ -37,11 +37,12 @@ class NeutronBootFipPingPlugin(neutron_utils.NeutronScenario,
|
|||||||
@validation.required_openstack(users=True)
|
@validation.required_openstack(users=True)
|
||||||
@scenario.configure(context={"cleanup": ["nova", "neutron"],
|
@scenario.configure(context={"cleanup": ["nova", "neutron"],
|
||||||
"keypair": {}, "allow_ssh": {}})
|
"keypair": {}, "allow_ssh": {}})
|
||||||
def create_network_nova_boot_ping(self, image, flavor, ext_net, floating=False, router=None,
|
def create_network_nova_boot_ping(self, image, flavor, ext_net, floating=True,
|
||||||
|
router_create_args=None, router=None,
|
||||||
network_create_args=None, subnet_create_args=None,
|
network_create_args=None, subnet_create_args=None,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
if router is None:
|
if router is None:
|
||||||
router = self._create_router({}, ext_net)
|
router = self._create_router(router_create_args, ext_net)
|
||||||
|
|
||||||
network = self._create_network(network_create_args or {})
|
network = self._create_network(network_create_args or {})
|
||||||
subnet = self._create_subnet(network, subnet_create_args or {})
|
subnet = self._create_subnet(network, subnet_create_args or {})
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
|
||||||
|
{% 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.create_network_nova_boot_ping:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
floating: True
|
||||||
|
flavor:
|
||||||
|
name: '{{flavor_name}}'
|
||||||
|
image:
|
||||||
|
name: '{{image_name}}'
|
||||||
|
ext_net:
|
||||||
|
id: {{ net_id }}
|
||||||
|
network_create_args: {}
|
||||||
|
router_create_args: {}
|
||||||
|
subnet_create_args: {}
|
||||||
|
runner:
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
times: {{times}}
|
||||||
|
type: "constant"
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
||||||
|
quotas:
|
||||||
|
neutron:
|
||||||
|
network: -1
|
||||||
|
port: -1
|
||||||
|
router: -1
|
||||||
|
subnet: -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}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user