Merge "Replace nova attach volume to server with shade client."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc083.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 # Sample benchmark task config file
11 # measure network latency and throughput using netperf
12 # There are two sample scenarios: bulk test and request/response test
13 # In bulk test, UDP_STREAM and TCP_STREAM can be used
14 # send_msg_size and recv_msg_size are options of bulk test
15 # In req/rsp test, TCP_RR TCP_CRR UDP_RR can be used
16 # req_rsp_size is option of req/rsp test
17
18 schema: "yardstick:task:0.1"
19
20 description: >
21     Yardstick TC083 config file;
22     Measure network latency and throughput using netperf.
23
24 {% set provider = provider or none %}
25 {% set physical_network = physical_network or 'physnet1' %}
26 {% set segmentation_id = segmentation_id or none %}
27
28 scenarios:
29 -
30   type: Netperf
31   options:
32     testname: 'UDP_STREAM'
33     send_msg_size: 1024
34     duration: 20
35
36   host: Chang'e.demo
37   target: Houyi.demo
38
39   runner:
40     type: Iteration
41     iterations: 1
42     interval: 1
43   sla:
44     mean_latency: 100
45     action: monitor
46 -
47   type: Netperf
48   options:
49     testname: 'TCP_RR'
50     req_rsp_size: '32,1024'
51
52   host: Chang'e.demo
53   target: Houyi.demo
54
55   runner:
56     type: Duration
57     duration: 20
58     interval: 1
59   sla:
60     mean_latency: 300
61     action: monitor
62
63 context:
64   name: demo
65   image: yardstick-image
66   flavor: yardstick-flavor
67   user: ubuntu
68
69   placement_groups:
70     pgrp1:
71       policy: "availability"
72
73   servers:
74     Chang'e:
75       floating_ip: true
76       placement: "pgrp1"
77     Houyi:
78       floating_ip: true
79       placement: "pgrp1"
80
81   networks:
82     test:
83       cidr: '10.0.1.0/24'
84       {% if provider == "vlan" %}
85       provider: {{provider}}
86       physical_network: {{physical_network}}
87         {% if segmentation_id %}
88       segmentation_id: {{segmentation_id}}
89         {% endif %}
90       {% endif %}