Merge "Added NSB descriptors for vCMTS testcase"
[yardstick.git] / samples / ping_bottlenecks.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd 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
12 schema: "yardstick:task:0.1"
13 description: >
14     bottlenecks stress test config file;
15     measure VMs latency using ping;
16 run_in_parallel: true
17 {% set stack_num = stack_num or 1 %}
18 {% set image_name = image_name or "yardstick-image" %}
19 {% set cpu_num = cpu_num or 1 %}
20 {% set ram_num = ram_num or 512 %}
21 {% set disk_num = disk_num or 7 %}
22 {% set dpdk_enabled = dpdk_enabled or False %}
23
24 scenarios:
25 {% for num in range(stack_num) %}
26 -
27   type: Ping
28   options:
29     packetsize: 100
30   host: demo2.demo{{num}}
31   target: demo1.demo{{num}}
32   runner:
33     type: Duration
34     duration: 60
35     interval: 1
36   sla:
37     max_rtt: 10
38 {% endfor %}
39
40 contexts:
41 {% for num in range(stack_num) %}
42 -
43   name: demo{{num}}
44   image: {{image_name}}
45   flavor:
46     vcpus: {{cpu_num}}
47     ram: {{ram_num}}
48     disk: {{disk_num}}
49     {% if dpdk_enabled %}
50     extra_specs:
51       hw:mem_page_size: "large"
52     {% endif %}
53   user: ubuntu
54   security_group:
55     rules:
56       - remote_ip_prefix: "0.0.0.0/0"
57         protocol: "tcp"
58         port_range_min: 1
59         port_range_max: 65535
60       - remote_ip_prefix: "0.0.0.0/0"
61         protocol: "udp"
62         port_range_min: 1
63         port_range_max: 65535
64       - remote_ip_prefix: "0.0.0.0/0"
65         protocol: "icmp"
66
67   placement_groups:
68     pgrp1:
69       policy: "availability"
70
71   servers:
72     demo2:
73       floating_ip: true
74       placement: "pgrp1"
75     demo1:
76       placement: "pgrp1"
77
78   networks:
79     test:
80       cidr: '10.0.1.0/24'
81 {% endfor %}