Added heat scenarios from rally
Change-Id: Iaf37b8c8f77a1d14a932df87f65bf9c62cc70010
This commit is contained in:
@@ -267,6 +267,31 @@ workloads:
|
|||||||
batches: 5
|
batches: 5
|
||||||
file: rally/neutron/neutron-boot-server-and-batch-add-subports.yml
|
file: rally/neutron/neutron-boot-server-and-batch-add-subports.yml
|
||||||
|
|
||||||
|
- name: heat
|
||||||
|
enabled: false
|
||||||
|
type: rally
|
||||||
|
rally_deployment: overcloud
|
||||||
|
concurrency:
|
||||||
|
- 8
|
||||||
|
times: 16
|
||||||
|
scenarios:
|
||||||
|
- name: create-and-delete-stack-resource-group
|
||||||
|
enabled: false
|
||||||
|
num_instances: 2
|
||||||
|
instance_image: cirros
|
||||||
|
instance_volume_size: 1
|
||||||
|
instance_flavor: m1.tiny
|
||||||
|
instance_availability_zone: nova
|
||||||
|
file: rally/heat/create-and-delete-stack-resource-group.yaml
|
||||||
|
# specify the updated_template_path as per the use case from "rally/heat/templates/"
|
||||||
|
# use 'updated-random-strings-add.yaml.template' for adding resources to the existing stack
|
||||||
|
# use 'updated-random-strings-delete.yaml.template' for delete
|
||||||
|
# use 'updated-random-strings-replace.yaml.template' for replace
|
||||||
|
- name: create-update-delete-stack
|
||||||
|
enabled: false
|
||||||
|
updated_template_path: rally/heat/templates/updated-random-strings-replace.yaml.template
|
||||||
|
file: rally/heat/create-update-delete-stack.yaml
|
||||||
|
|
||||||
- name: nova
|
- name: nova
|
||||||
enabled: false
|
enabled: false
|
||||||
type: rally
|
type: rally
|
||||||
|
35
rally/heat/create-and-delete-stack-resource-group.yaml
Normal file
35
rally/heat/create-and-delete-stack-resource-group.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
HeatStacks.create_and_delete_stack:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "rally/heat/templates/resource-group-server-with-volume.yaml.template"
|
||||||
|
parameters:
|
||||||
|
num_instances: {{num_instances}}
|
||||||
|
instance_image: {{instance_image}}
|
||||||
|
instance_volume_size: {{instance_volume_size}}
|
||||||
|
instance_flavor: {{instance_flavor}}
|
||||||
|
instance_availability_zone: {{instance_availability_zone}}
|
||||||
|
files: ["rally/heat/templates/server-with-volume.yaml.template"]
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
||||||
|
quotas:
|
||||||
|
neutron:
|
||||||
|
network: -1
|
||||||
|
port: -1
|
||||||
|
nova:
|
||||||
|
instances: -1
|
||||||
|
cores: -1
|
||||||
|
ram: -1
|
||||||
|
cinder:
|
||||||
|
gigabytes: -1
|
||||||
|
volumes: -1
|
||||||
|
|
||||||
|
sla:
|
||||||
|
failure_rate:
|
||||||
|
max: 0
|
17
rally/heat/create-update-delete-stack.yaml
Normal file
17
rally/heat/create-update-delete-stack.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
HeatStacks.create_update_delete_stack:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "rally/heat/templates/random-strings.yaml.template"
|
||||||
|
updated_template_path: {{updated_template_path}}
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
||||||
|
sla:
|
||||||
|
failure_rate:
|
||||||
|
max: 0
|
13
rally/heat/templates/random-strings.yaml.template
Normal file
13
rally/heat/templates/random-strings.yaml.template
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
||||||
|
|
||||||
|
description: Test template for rally create-update-delete scenario
|
||||||
|
|
||||||
|
resources:
|
||||||
|
test_string_one:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
||||||
|
test_string_two:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
@@ -0,0 +1,44 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Test template that creates a resource group with servers and volumes.
|
||||||
|
The template allows to create a lot of nested stacks with standard
|
||||||
|
configuration: nova instance, cinder volume attached to that instance
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
|
||||||
|
num_instances:
|
||||||
|
type: number
|
||||||
|
description: number of instances that should be created in resource group
|
||||||
|
constraints:
|
||||||
|
- range: {min: 1}
|
||||||
|
instance_image:
|
||||||
|
type: string
|
||||||
|
default: cirros
|
||||||
|
instance_volume_size:
|
||||||
|
type: number
|
||||||
|
description: Size of volume to attach to instance
|
||||||
|
default: 1
|
||||||
|
constraints:
|
||||||
|
- range: {min: 1, max: 1024}
|
||||||
|
instance_flavor:
|
||||||
|
type: string
|
||||||
|
description: Type of the instance to be created.
|
||||||
|
default: m1.tiny
|
||||||
|
instance_availability_zone:
|
||||||
|
type: string
|
||||||
|
description: The Availability Zone to launch the instance.
|
||||||
|
default: nova
|
||||||
|
|
||||||
|
resources:
|
||||||
|
group_of_volumes:
|
||||||
|
type: OS::Heat::ResourceGroup
|
||||||
|
properties:
|
||||||
|
count: {get_param: num_instances}
|
||||||
|
resource_def:
|
||||||
|
type: rally/heat/templates/server-with-volume.yaml.template
|
||||||
|
properties:
|
||||||
|
image: {get_param: instance_image}
|
||||||
|
volume_size: {get_param: instance_volume_size}
|
||||||
|
flavor: {get_param: instance_flavor}
|
||||||
|
availability_zone: {get_param: instance_availability_zone}
|
55
rally/heat/templates/server-with-volume.yaml.template
Normal file
55
rally/heat/templates/server-with-volume.yaml.template
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
heat_template_version: 2013-05-23
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
# set all correct defaults for parameters before launch test
|
||||||
|
image:
|
||||||
|
type: string
|
||||||
|
default: cirros
|
||||||
|
flavor:
|
||||||
|
type: string
|
||||||
|
default: m1.tiny
|
||||||
|
availability_zone:
|
||||||
|
type: string
|
||||||
|
description: The Availability Zone to launch the instance.
|
||||||
|
default: nova
|
||||||
|
volume_size:
|
||||||
|
type: number
|
||||||
|
description: Size of the volume to be created.
|
||||||
|
default: 1
|
||||||
|
constraints:
|
||||||
|
- range: { min: 1, max: 1024 }
|
||||||
|
description: must be between 1 and 1024 Gb.
|
||||||
|
cidr:
|
||||||
|
type: string
|
||||||
|
default: 11.11.11.0/24
|
||||||
|
|
||||||
|
resources:
|
||||||
|
server:
|
||||||
|
type: OS::Nova::Server
|
||||||
|
properties:
|
||||||
|
image: {get_param: image}
|
||||||
|
flavor: {get_param: flavor}
|
||||||
|
networks:
|
||||||
|
- port: { get_resource: server_port }
|
||||||
|
server_port:
|
||||||
|
type: OS::Neutron::Port
|
||||||
|
properties:
|
||||||
|
network_id: {get_resource: private_net}
|
||||||
|
private_net:
|
||||||
|
type: OS::Neutron::Net
|
||||||
|
private_subnet:
|
||||||
|
type: OS::Neutron::Subnet
|
||||||
|
properties:
|
||||||
|
network_id: { get_resource: private_net }
|
||||||
|
cidr: {get_param: cidr}
|
||||||
|
cinder_volume:
|
||||||
|
type: OS::Cinder::Volume
|
||||||
|
properties:
|
||||||
|
size: { get_param: volume_size }
|
||||||
|
availability_zone: { get_param: availability_zone }
|
||||||
|
volume_attachment:
|
||||||
|
type: OS::Cinder::VolumeAttachment
|
||||||
|
properties:
|
||||||
|
volume_id: { get_resource: cinder_volume }
|
||||||
|
instance_uuid: { get_resource: server}
|
||||||
|
mountpoint: /dev/vdc
|
@@ -0,0 +1,19 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Test template for create-update-delete-stack scenario in rally.
|
||||||
|
The template updates the stack defined by random-strings.yaml.template with additional resource.
|
||||||
|
|
||||||
|
resources:
|
||||||
|
test_string_one:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
||||||
|
test_string_two:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
||||||
|
test_string_three:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
@@ -0,0 +1,11 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Test template for create-update-delete-stack scenario in rally.
|
||||||
|
The template deletes one resource from the stack defined by random-strings.yaml.template.
|
||||||
|
|
||||||
|
resources:
|
||||||
|
test_string_one:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
@@ -0,0 +1,19 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Test template for create-update-delete-stack scenario in rally.
|
||||||
|
The template deletes one resource from the stack defined by
|
||||||
|
random-strings.yaml.template and re-creates it with the updated parameters
|
||||||
|
(so-called update-replace). That happens because some parameters cannot be
|
||||||
|
changed without resource re-creation. The template allows to measure performance
|
||||||
|
of update-replace operation.
|
||||||
|
|
||||||
|
resources:
|
||||||
|
test_string_one:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 20
|
||||||
|
test_string_two:
|
||||||
|
type: OS::Heat::RandomString
|
||||||
|
properties:
|
||||||
|
length: 40
|
Reference in New Issue
Block a user