summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHans Feldt <hans.feldt@ericsson.com>2015-06-16 09:27:31 +0200
committerHans Feldt <hans.feldt@ericsson.com>2015-06-16 13:56:12 +0000
commitfa7bf41e69214d73b756b68fb58ec57dc6e208be (patch)
tree75d16a5164319ea2fce0e0fdd014e4dc60e6d826 /samples
parentdd5c9319cfc3f4dd7bfce2073d29d03d646ac65c (diff)
Add support for single server ping test
A simple test case is added that will ping an external server on the internet. See samples/ping-ext-ip.yaml Change-Id: I15eb3cb6ab9e5c1cf280f2aade2bf4c9646d6cd4 JIRA: - Signed-off-by: Hans Feldt <hans.feldt@ericsson.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/ping-ext-ip.yaml36
-rw-r--r--samples/ping.yaml1
2 files changed, 36 insertions, 1 deletions
diff --git a/samples/ping-ext-ip.yaml b/samples/ping-ext-ip.yaml
new file mode 100644
index 000000000..82cd02c7b
--- /dev/null
+++ b/samples/ping-ext-ip.yaml
@@ -0,0 +1,36 @@
+---
+# Sample benchmark task config file
+# Measure network latency using ping, destination is an external server
+# Make sure servers have internet access before running this test.
+# For example using virtual MOS do something this on the host:
+# sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 \! -d 172.16.0.0/24 -j MASQUERADE
+#
+
+schema: "yardstick:task:0.1"
+
+scenarios:
+-
+ type: Ping
+ host: client.demo
+ target: 8.8.8.8
+ runner:
+ type: Duration
+ duration: 60
+ interval: 1
+ sla:
+ max_rtt: 10
+ action: monitor
+
+context:
+ name: demo
+ image: cirros-0.3.3
+ flavor: m1.tiny
+ user: cirros
+ servers:
+ client:
+ floating_ip: true
+ networks:
+ test:
+ cidr: '10.0.1.0/24'
+ external_network: "net04_ext"
+
diff --git a/samples/ping.yaml b/samples/ping.yaml
index 9a06fc48f..3bc108142 100644
--- a/samples/ping.yaml
+++ b/samples/ping.yaml
@@ -26,7 +26,6 @@ context:
image: cirros-0.3.3
flavor: m1.tiny
user: cirros
- anti_affinity: true
placement_groups:
pgrp1: