From 585a2483e9fb021d853b0946f185d066335adea4 Mon Sep 17 00:00:00 2001 From: Hans Feldt Date: Wed, 3 Jun 2015 10:50:48 +0200 Subject: 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 --- samples/ping-hot.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 samples/ping-hot.yaml (limited to 'samples/ping-hot.yaml') 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" + -- cgit 1.2.3-korg