Adding more Nova Scenarios
We ship Nova with only two Scenarios. This commit is to enable other API workloads for Nova. Change-Id: I499853fc1451301b4ec9d50fd9a3460b7d251110
This commit is contained in:
parent
ae07da17a7
commit
a0e9752c3c
@ -187,23 +187,36 @@ rally:
|
||||
- 96
|
||||
times: 128
|
||||
scenarios:
|
||||
- name: boot-snapshot-delete
|
||||
- name: boot-snapshot-delete-cirros
|
||||
enabled: true
|
||||
file: rally/nova/nova-boot-snapshot-cc.yml
|
||||
image_name: cirros
|
||||
flavor_name: m1.tiny
|
||||
- name: boot-list-centos
|
||||
enabled: true
|
||||
file: rally/nova/nova-boot-list-cc.yml
|
||||
sla_max_seconds: 30
|
||||
sla_max_failure: 0
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-list-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-list-cc.yml
|
||||
flavor_name: m1.tiny
|
||||
sla_max_seconds: 30
|
||||
sla_max_failure: 0
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-show-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-show-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-bounce-delete-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-bounce-delete-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-lock-unlock-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-lock-unlock-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: glance
|
||||
enabled: true
|
||||
concurrency:
|
||||
|
@ -184,21 +184,36 @@ rally:
|
||||
- 8
|
||||
times: 10
|
||||
scenarios:
|
||||
- name: boot-snapshot-delete
|
||||
- name: boot-snapshot-delete-cirros
|
||||
enabled: true
|
||||
file: rally/nova/nova-boot-snapshot-cc.yml
|
||||
image_name: cirros
|
||||
flavor_name: m1.tiny
|
||||
- name: boot-list-centos
|
||||
enabled: false
|
||||
file: rally/nova/nova-boot-list-cc.yml
|
||||
sla_max_seconds: 30
|
||||
sla_max_failure: 0
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-list-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-list-cc.yml
|
||||
flavor_name: m1.tiny
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-show-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-show-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-bounce-delete-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-boot-bounce-delete-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: boot-lock-unlock-cirros
|
||||
enabled: true
|
||||
image_name: cirros
|
||||
file: rally/nova/nova-lock-unlock-cc.yml
|
||||
flavor_name: m1.xtiny
|
||||
net_id:
|
||||
- name: glance
|
||||
enabled: true
|
||||
concurrency:
|
||||
|
@ -1,2 +1,7 @@
|
||||
Nova scenarios
|
||||
==============
|
||||
|
||||
We have one required field to make all these Nova scenario's work*:
|
||||
net_id - The network ID we should attach all these guests to.
|
||||
|
||||
* The Neutron network(s) MUST be set to --shared. If they are not set to --shared, the Rally workload will fail.
|
||||
|
41
rally/nova/nova-boot-bounce-delete-cc.yml
Normal file
41
rally/nova/nova-boot-bounce-delete-cc.yml
Normal file
@ -0,0 +1,41 @@
|
||||
{% set image_name = image_name or "centos7" %}
|
||||
{% set flavor_name = flavor_name or "m1.small" %}
|
||||
{% 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 %}
|
||||
---
|
||||
NovaServers.boot_and_bounce_server:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: {{flavor_name}}
|
||||
image:
|
||||
name: {{image_name}}
|
||||
nics:
|
||||
- net-id: {{net_id}}
|
||||
actions:
|
||||
- hard_reboot: 3
|
||||
- soft_reboot: 3
|
||||
- stop_start: 3
|
||||
- rescue_unrescue: 3
|
||||
runner:
|
||||
concurrency: {{concurrency}}
|
||||
times: {{times}}
|
||||
type: "constant"
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
quotas:
|
||||
neutron:
|
||||
network: -1
|
||||
port: -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}}
|
@ -11,6 +11,8 @@
|
||||
name: {{flavor_name}}
|
||||
image:
|
||||
name: {{image_name}}
|
||||
nics:
|
||||
- net-id: {{net_id}}
|
||||
detailed: true
|
||||
runner:
|
||||
concurrency: {{concurrency}}
|
||||
|
36
rally/nova/nova-boot-show-cc.yml
Normal file
36
rally/nova/nova-boot-show-cc.yml
Normal file
@ -0,0 +1,36 @@
|
||||
{% set image_name = image_name or "centos7" %}
|
||||
{% set flavor_name = flavor_name or "m1.small" %}
|
||||
{% 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 %}
|
||||
---
|
||||
NovaServers.boot_and_show_server:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "{{flavor_name}}"
|
||||
image:
|
||||
name: "{{image_name}}"
|
||||
nics:
|
||||
- net-id: {{net_id}}
|
||||
runner:
|
||||
concurrency: {{concurrency}}
|
||||
times: {{times}}
|
||||
type: "constant"
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
quotas:
|
||||
neutron:
|
||||
network: -1
|
||||
port: -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}}
|
@ -12,6 +12,8 @@
|
||||
image:
|
||||
name: "{{image_name}}"
|
||||
force_delete: false
|
||||
nics:
|
||||
- net-id: {{net_id}}
|
||||
detailed: true
|
||||
runner:
|
||||
concurrency: {{concurrency}}
|
||||
|
36
rally/nova/nova-lock-unlock-cc.yml
Normal file
36
rally/nova/nova-lock-unlock-cc.yml
Normal file
@ -0,0 +1,36 @@
|
||||
{% set image_name = image_name or "centos7" %}
|
||||
{% set flavor_name = flavor_name or "m1.small" %}
|
||||
{% 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 %}
|
||||
---
|
||||
NovaServers.boot_lock_unlock_and_delete:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: {{flavor_name}}
|
||||
image:
|
||||
name: {{image_name}}
|
||||
nics:
|
||||
- net-id: {{net_id}}
|
||||
runner:
|
||||
concurrency: {{concurrency}}
|
||||
times: {{times}}
|
||||
type: "constant"
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
quotas:
|
||||
neutron:
|
||||
network: -1
|
||||
port: -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