Merge "ci in huawei-pod1 do not run test case after tc074"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc038.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson 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 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC038 config file;
14     Measure network throughput and packet loss using pktgen;
15     Different amounts of flows are tested with, from 2 up to 1001000;
16     All tests are run 10 times each. First 10 times with the least
17     amount of ports, then 10 times with the next amount of ports,
18     and so on until all packet sizes have been run with;
19     During the measurements system load and network latency are
20     recorded/measured using ping and mpstat, respectively;
21
22 scenarios:
23 -
24   type: CPUload
25   run_in_background: true
26
27   options:
28     interval: 1
29
30   host: demeter.yardstick-TC038
31 -
32   type: CPUload
33   run_in_background: true
34
35   options:
36     interval: 1
37
38   host: poseidon.yardstick-TC038
39 -
40   type: Ping
41   run_in_background: true
42
43   options:
44     packetsize: 100
45
46   host: demeter.yardstick-TC038
47   target: poseidon.yardstick-TC038
48
49   sla:
50     max_rtt: 10
51     action: monitor
52 {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %}
53 -
54   type: Pktgen
55   options:
56     packetsize: 64
57     number_of_ports: {{num_ports}}
58     duration: 20
59
60   host: demeter.yardstick-TC038
61   target: poseidon.yardstick-TC038
62
63   runner:
64     type: Iteration
65     iterations: 10
66     interval: 1
67
68   sla:
69     max_ppm: 1000
70     action: monitor
71 {% endfor %}
72
73 context:
74   name: yardstick-TC038
75   image: yardstick-image
76   flavor: yardstick-flavor
77   user: ubuntu
78
79   placement_groups:
80     pgrp1:
81       policy: "availability"
82
83   servers:
84     demeter:
85       floating_ip: true
86       placement: "pgrp1"
87     poseidon:
88       floating_ip: true
89       placement: "pgrp1"
90
91   networks:
92     test:
93       cidr: '10.0.1.0/24'