Add existing Octavia scenarios

Currently, there are:
1. LoadBalancers (create, list, stats-show, show, update, delete)
2. Pools (create, list, show, update, delete)

This patch addes above scenarios to the browbeat

Change-Id: I68cd8e9e127f476efa965bd8e2bf91ae3dd7db27
This commit is contained in:
Lucas H. Xu 2019-06-13 16:57:45 +00:00
parent b416679d44
commit da04dd47ad
12 changed files with 248 additions and 0 deletions

View File

@ -208,6 +208,50 @@ workloads:
disk_format: qcow2
file: rally/glance/create-and-delete-image-cc.yml
- name: octavia
enabled: true
type: rally
concurrency:
- 2
times: 10
scenarios:
- name: create-and-list-loadbalancers
enabled: true
sla_max_failure: 0
file: rally/octavia/octavia-create-list-loadbalancers.yml
- name: create-and-stats-show-loadbalancers
enabled: true
file: rally/octavia/octavia-create-stats-show-loadbalancers.yml
sla_max_failure: 0
- name: create-and-show-loadbalancers
enabled: true
file: rally/octavia/octavia-create-show-loadbalancers.yml
sla_max_failure: 0
- name: create-and-update-loadbalancers
enabled: true
file: rally/octavia/octavia-create-update-loadbalancers.yml
sla_max_failure: 0
- name: create-and-delete-loadbalancers
enabled: true
file: rally/octavia/octavia-create-delete-loadbalancers.yml
sla_max_failure: 0
- name: create-and-list-pools
enabled: true
sla_max_failure: 0
file: rally/octavia/octavia-create-list-pools.yml
- name: create-and-show-pools
enabled: true
file: rally/octavia/octavia-create-show-pools.yml
sla_max_failure: 0
- name: create-and-update-pools
enabled: true
file: rally/octavia/octavia-create-update-pools.yml
sla_max_failure: 0
- name: create-and-delete-pools
enabled: true
file: rally/octavia/octavia-create-delete-pools.yml
sla_max_failure: 0
- name: simple-plugins
enabled: true
type: rally

View File

@ -0,0 +1,22 @@
{% set repetitions = repetitions or 2 %}
{% 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 %}
---
Authenticate.validate_octavia:
-
args:
repetitions: {{repetitions}}
context:
users:
tenants: 1
users_per_tenant: 8
runner:
concurrency: {{concurrency}}
times: {{times}}
type: "constant"
sla:
max_avg_duration: {{sla_max_avg_duration}}
max_seconds_per_iteration: {{sla_max_seconds}}
failure_rate:
max: {{sla_max_failure}}

View File

@ -0,0 +1,19 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_delete_loadbalancers:
-
args: {}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,21 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_delete_pools:
-
args:
protocol: "HTTP"
lb_algorithm: "ROUND_ROBIN"
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,19 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_list_loadbalancers:
-
args: {}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,21 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_list_pools:
-
args:
protocol: "HTTP"
lb_algorithm: "ROUND_ROBIN"
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,19 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_show_loadbalancers:
-
args: {}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,21 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_show_pools:
-
args:
protocol: "HTTP"
lb_algorithm: "ROUND_ROBIN"
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,19 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_stats_loadbalancers:
-
args: {}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,19 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_update_loadbalancers:
-
args: {}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,21 @@
{% set sla_max_failure = sla_max_failure or 0 %}
---
Octavia.create_and_update_pools:
-
args:
protocol: "HTTP"
lb_algorithm: "ROUND_ROBIN"
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 2
users_per_tenant: 2
roles:
- load-balancer_member
network: {}
sla:
failure_rate:
max: {{ sla_max_failure }}

View File

@ -28,6 +28,9 @@ rally:
- name: valid-test-authentic-neutron
enabled: false
file: rally/authenticate/validate_neutron-cc.yml
- name: valid-test-authentic-octavia
enabled: true
file: rally/authenticate/validate_octavia-cc.yml
- valid: false
data:
name: invalid-test-authenticate-01