From 5a48323531e42f5fff196391f43896e3fe9ced73 Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Wed, 27 Jul 2016 11:17:28 -0400 Subject: [PATCH] Adding Glance Rally Scenarios 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 --- browbeat-complete.yaml | 24 +++++++ browbeat-config.yaml | 11 +++ conf/browbeat-glance-complete.yaml | 69 +++++++++++++++++++ rally/glance/create-and-delete-image-cc.yml | 25 +++++++ rally/glance/create-and-list-image-cc.yml | 25 +++++++ .../create-image-and-boot-instances-cc.yml | 37 ++++++++++ rally/glance/list-images-cc.yml | 25 +++++++ 7 files changed, 216 insertions(+) create mode 100644 conf/browbeat-glance-complete.yaml create mode 100644 rally/glance/create-and-delete-image-cc.yml create mode 100644 rally/glance/create-and-list-image-cc.yml create mode 100644 rally/glance/create-image-and-boot-instances-cc.yml create mode 100644 rally/glance/list-images-cc.yml diff --git a/browbeat-complete.yaml b/browbeat-complete.yaml index 0acb751f3..4baea42b2 100644 --- a/browbeat-complete.yaml +++ b/browbeat-complete.yaml @@ -197,6 +197,30 @@ rally: flavor_name: m1.tiny sla_max_seconds: 30 sla_max_failure: 0 + - name: glance + enabled: true + concurrency: + - 8 + times: 10 + scenarios: + - name: create-image-boot-instances + enabled: true + image_location: /home/stack/cirros + instances: 2 + flavor_name: m1.small + file: rally/glance/create-image-and-boot-instances-cc.yml + - name: create-and-delete-image + enabled: true + image_location: /home/stack/cirros + flavor_name: m1.small + file: rally/glance/create-and-delete-image-cc.yml + - name: create-and-list-image + enabled: true + image_location: /home/stack/cirros + file: rally/glance/create-and-list-image-cc.yml + - name: list-images + enabled: true + file: rally/glance/list-images-cc.yml - name: plugins enabled: true concurrency: diff --git a/browbeat-config.yaml b/browbeat-config.yaml index 97a250a15..19b0100c6 100644 --- a/browbeat-config.yaml +++ b/browbeat-config.yaml @@ -191,6 +191,17 @@ rally: image_name: cirros file: rally/nova/nova-boot-list-cc.yml flavor_name: m1.tiny + - name: glance + enabled: true + concurrency: + - 8 + times: 10 + scenarios: + - name: create-and-delete-image + enabled: true + image_location: /home/stack/cirros + flavor_name: m1.small + file: rally/glance/create-and-delete-image-cc.yml - name: plugins enabled: true concurrency: diff --git a/conf/browbeat-glance-complete.yaml b/conf/browbeat-glance-complete.yaml new file mode 100644 index 000000000..a6b0ce08e --- /dev/null +++ b/conf/browbeat-glance-complete.yaml @@ -0,0 +1,69 @@ +# Complete set of Glance Benchmarks +browbeat: + results : results/ + rerun: 1 + cloud_name: openstack +elasticsearch: + enabled: false + host: 1.1.1.1 + port: 9200 + metadata_files: + - name: hardware-metadata + file: metadata/hardware-metadata.json + - name: environment-metadata + file: metadata/environment-metadata.json + - name: software-metadata + file: metadata/software-metadata.json +ansible: + hosts: ansible/hosts + adjust: + keystone_token: ansible/browbeat/adjustment-keystone-token.yml + neutron_l3: ansible/browbeat/adjustment-l3.yml + nova_db: ansible/browbeat/adjustment-db.yml + workers: ansible/browbeat/adjustment-workers.yml + grafana_snapshot: ansible/browbeat/snapshot-general-performance-dashboard.yml +connmon: + enabled: false + sudo: true +grafana: + enabled: true + grafana_ip: 1.1.1.1 + grafana_port: 3000 + dashboards: + - openstack-general-system-performance + snapshot: + enabled: false + snapshot_compute: false +rally: + enabled: true + sleep_before: 5 + sleep_after: 5 + venv: /home/stack/rally-venv/bin/activate + plugins: + - glance-create-boot-delete: rally/rally-plugins/glance-create-boot-delete + benchmarks: + - name: glance + enabled: true + concurrency: + - 8 + times: 10 + scenarios: + - name: create-image-boot-instances + enabled: true + image_location: /home/stack/cirros + instances: 2 + flavor_name: m1.small + file: rally/glance/create-image-and-boot-instances-cc.yml + - name: create-and-delete-image + enabled: true + image_location: /home/stack/cirros + flavor_name: m1.small + file: rally/glance/create-and-delete-image-cc.yml + - name: create-and-list-image + enabled: true + image_location: /home/stack/cirros + file: rally/glance/create-and-list-image-cc.yml + - name: list-images + enabled: true + file: rally/glance/list-images-cc.yml + diff --git a/rally/glance/create-and-delete-image-cc.yml b/rally/glance/create-and-delete-image-cc.yml new file mode 100644 index 000000000..b796c5f48 --- /dev/null +++ b/rally/glance/create-and-delete-image-cc.yml @@ -0,0 +1,25 @@ +{% 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_and_delete_image: + - + args: + image_location: "{{image_location}}" + container_format: "bare" + disk_format: "qcow2" + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}} + diff --git a/rally/glance/create-and-list-image-cc.yml b/rally/glance/create-and-list-image-cc.yml new file mode 100644 index 000000000..2546ec16c --- /dev/null +++ b/rally/glance/create-and-list-image-cc.yml @@ -0,0 +1,25 @@ +{% 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_and_list_image: + - + args: + image_location: "{{image_location}}" + container_format: "bare" + disk_format: "qcow2" + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}} + diff --git a/rally/glance/create-image-and-boot-instances-cc.yml b/rally/glance/create-image-and-boot-instances-cc.yml new file mode 100644 index 000000000..693929b1e --- /dev/null +++ b/rally/glance/create-image-and-boot-instances-cc.yml @@ -0,0 +1,37 @@ +{% 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}} diff --git a/rally/glance/list-images-cc.yml b/rally/glance/list-images-cc.yml new file mode 100644 index 000000000..2a6b127c5 --- /dev/null +++ b/rally/glance/list-images-cc.yml @@ -0,0 +1,25 @@ +{% 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.list_images: + - + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + images: + image_url: "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img" + image_type: "qcow2" + image_container: "bare" + images_per_tenant: 4 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}} +