Add nova resize scenario

Change-Id: I7bcaaba563957df03d52737a2a20d1cc58036f01
This commit is contained in:
Asma Syed Hameed 2019-05-14 20:34:49 +05:30
parent 2b930e6e0f
commit 1263990861
3 changed files with 59 additions and 0 deletions

View File

@ -209,6 +209,12 @@ workloads:
image_name: cirros
file: rally/nova/nova-lock-unlock-cc.yml
flavor_name: m1.xtiny
- name: boot_server_from_volume_and_resize
enabled: true
image_name: cirros
file: rally/nova/nova-boot-from-volume-and-resize.yml
initial_flavor_name: m1.tiny
final_flavor_name: m1.small
- name: glance
enabled: true
type: rally

View File

@ -193,6 +193,12 @@ workloads:
image_name: cirros
file: rally/nova/nova-lock-unlock-cc.yml
flavor_name: m1.xtiny
- name: boot_server_from_volume_and_resize
enabled: true
image_name: cirros
file: rally/nova/nova-boot-from-volume-and-resize.yml
initial_flavor_name: m1.tiny
final_flavor_name: m1.small
- name: glance
enabled: true

View File

@ -0,0 +1,47 @@
{% set image_name = image_name or "centos7" %}
{% set flavor = initial_flavor_name or "m1.tiny" %}
{% set final_flavor_name = final_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_server_from_volume_and_resize:
-
args:
flavor:
name: "{{initial_flavor_name}}"
image:
name: "{{image_name}}"
to_flavor:
name: "{{final_flavor_name}}"
confirm: true
volume_size: 1
force_delete: false
do_delete: true
boot_server_kwargs: {}
create_volume_kwargs: {}
runner:
type: "constant"
times: {{times}}
concurrency: {{concurrency}}
context:
network:
start_cidr: "10.0.0.0/16"
networks_per_tenant: 1
users:
tenants: 3
users_per_tenant: 2
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}}