5a48323531
Adding some common scenarios for stressing glance. + Create and list images + Create and delete images + Create image and boot instances off it + List images by placing image in context Also adding a separate configuration file for glance only. Change-Id: I5327e9c65cb1b045f686e442e88b3e71f73ac5cf
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
{% set flavor_name = flavor_name or "m1.small" %}
|
|
{% set instances = instances or 2 %}
|
|
{% set image_location = image_location or "/home/stack/cirros" %}
|
|
{% 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 %}
|
|
---
|
|
GlanceImages.create_image_and_boot_instances:
|
|
-
|
|
args:
|
|
image_location: "{{image_location}}"
|
|
container_format: "bare"
|
|
disk_format: "qcow2"
|
|
flavor:
|
|
name: "{{flavor_name}}"
|
|
number_instances: {{instances}}
|
|
runner:
|
|
type: "constant"
|
|
times: {{times}}
|
|
concurrency: {{concurrency}}
|
|
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}}
|