Merge "Replace nova attach volume to server with shade client."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc005.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 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC005 config file;
14     Measure Storage IOPS, throughput and latency using fio.
15
16 {% set provider = provider or none %}
17 {% set physical_network = physical_network or 'physnet1' %}
18 {% set segmentation_id = segmentation_id or none %}
19
20 scenarios:
21 {% for rw in ['read', 'write', 'randwrite', 'randread', 'rw'] %}
22   {% for bs in ['4k', '64k', '1024k'] %}
23 -
24   type: Fio
25   options:
26     filename: /home/ubuntu/data.raw
27     bs: {{bs}}
28     rw: {{rw}}
29     ramp_time: 10
30     duration: 20
31
32   host: fio.yardstick-TC005
33
34   runner:
35     type: Iteration
36     iterations: 1
37     interval: 1
38
39   sla:
40     read_bw: 400
41     read_iops: 100
42     read_lat: 20000
43     write_bw: 400
44     write_iops: 100
45     write_lat: 20000
46     action: monitor
47   {% endfor %}
48 {% endfor %}
49
50 context:
51   name: yardstick-TC005
52   image: yardstick-image
53   flavor: yardstick-flavor
54   user: ubuntu
55
56   servers:
57     fio:
58       floating_ip: true
59
60   networks:
61     test:
62       cidr: '10.0.1.0/24'
63       {% if provider == "vlan" %}
64       provider: {{provider}}
65       physical_network: {{physical_network}}
66         {% if segmentation_id %}
67       segmentation_id: {{segmentation_id}}
68         {% endif %}
69       {% endif %}