aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHans Feldt <hans.feldt@ericsson.com>2015-06-03 10:50:48 +0200
committerHans Feldt <hans.feldt@ericsson.com>2015-06-15 11:07:12 +0000
commit585a2483e9fb021d853b0946f185d066335adea4 (patch)
tree828834e6a3dc8617eaaf9422087a6f847b3fe804 /samples
parent7492216de2f198e42bcd5e1539c8b21886a78d8c (diff)
Add support for external HOT template
An external HOT template is a separate yaml file in native Heat format HOT. The external template is referenced in the task file and used as template for a "context". Parameters required at template instantiation are also configured in the task file. See new sample file ping-hot.yaml Change-Id: Ie2b7ea96ea90b75ca4e08a29e2223ceeb1474724 JIRA: YARDSTICK-24 Signed-off-by: Hans Feldt <hans.feldt@ericsson.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/ping-hot.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/samples/ping-hot.yaml b/samples/ping-hot.yaml
new file mode 100644
index 000000000..b4b8f5228
--- /dev/null
+++ b/samples/ping-hot.yaml
@@ -0,0 +1,44 @@
+---
+# Sample benchmark task config file to measure network latency using ping
+# An external HOT template (file) is configured in the context section using
+# the heat_template attribute. Parameters for the template is specified with the
+# heat_parameters attribute.
+
+schema: "yardstick:task:0.1"
+
+scenarios:
+-
+ type: Ping
+ options:
+ packetsize: 200
+ host:
+ name: "server1.demo"
+ public_ip_attr: "server1_public_ip"
+ target:
+ name: "server2.demo"
+ private_ip_attr: "server2_private_ip"
+
+ runner:
+ type: Duration
+ duration: 60
+ interval: 1
+
+ sla:
+ max_rtt: 10
+ action: monitor
+
+context:
+ name: demo
+ user: cirros
+ heat_template: /tmp/heat-templates/hot/servers_in_new_neutron_net.yaml
+ heat_parameters:
+ image: cirros-0.3.3
+ flavor: m1.tiny
+ key_name: yardstick
+ public_net: "660fc7c3-7a56-4faf-91e5-3c9ebdda0104"
+ private_net_name: "test"
+ private_net_cidr: "10.0.1.0/24"
+ private_net_gateway: "10.0.1.1"
+ private_net_pool_start: "10.0.1.2"
+ private_net_pool_end: "10.0.1.200"
+