Merge "Bugfix: yardstick always report 'PASS' to DB"
[yardstick.git] / samples / container_ping_vm.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 ---
11 # Sample benchmark task config file
12 # measure network latency using ping in container
13
14 schema: "yardstick:task:0.1"
15
16 scenarios:
17 -
18   type: Ping
19   options:
20     packetsize: 200
21
22   host: host-k8s
23   target: target.openstack
24
25   runner:
26     type: Duration
27     duration: 60
28     interval: 1
29
30   sla:
31     max_rtt: 10
32     action: monitor
33
34 contexts:
35 -
36   type: Kubernetes
37   name: k8s
38
39   servers:
40     host:
41       image: openretriever/yardstick
42       command: /bin/bash
43       args: ['-c', 'chmod 700 ~/.ssh; chmod 600 ~/.ssh/*; service ssh restart;while true ; do sleep 10000; done']
44 -
45   type: Heat
46   name: openstack
47   image: cirros-0.3.5
48   flavor: yardstick-flavor
49   user: cirros
50
51   servers:
52     target:
53       floating_ip: true
54
55   networks:
56     test:
57       cidr: '10.0.1.0/24'