Support run cyclictest on BareMetal
[yardstick.git] / samples / ping-ext-stimuli.yaml
1 ---
2 # Sample benchmark task config file
3 # Measure network latency using ping, destination is an external server
4 # Make sure servers have internet access before running this test.
5 # For example using virtual MOS do something this on the host:
6 # sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 \! -d 172.16.0.0/24 -j MASQUERADE
7 #
8 # This sample demonstrates the use of runner actions - hooks inserted in
9 # diffrent places of the runner execution.
10 #
11
12 schema: "yardstick:task:0.1"
13
14 scenarios:
15 -
16   type: Ping
17   host: goofy.demo
18   target: 8.8.8.8
19   runner:
20     type: Duration
21     duration: 60
22     interval: 1
23     pre-start-action:
24         command: "heat stack-show demo"
25     periodic-action:
26         interval: 10
27         command: "ifconfig vboxnet1"
28     single-shot-action:
29         after: 30
30         command: "nova show goofy.demo"
31     post-stop-action:
32         command: "nova list"
33   sla:
34     max_rtt: 10
35     action: monitor
36
37 context:
38   name: demo
39   image: cirros-0.3.3
40   flavor: m1.tiny
41   user: cirros
42   servers:
43     goofy:
44       floating_ip: true
45   networks:
46     test:
47       cidr: '10.0.1.0/24'
48