Merge "Adapt getting the image architecture to mcp"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc006.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 TC006 config file;
14     Measure volume storage IOPS, throughput and latency using fio with job file.
15
16 {% set directory = directory or "/FIO_Test" %}
17 {% set volume_size = volume_size or 200 %}
18 {% set provider = provider or none %}
19 {% set physical_network = physical_network or 'physnet1' %}
20 {% set segmentation_id = segmentation_id or none %}
21
22 schema: "yardstick:task:0.1"
23
24 scenarios:
25 -
26   type: Fio
27   options:
28     job_file: "job_file.ini"
29     directory: {{ directory }}
30
31   host: fio.yardstick-TC006
32
33   runner:
34     type: Iteration
35     iterations: 1
36     interval: 1
37
38   sla:
39     read_bw: 6000
40     read_iops: 1500
41     read_lat: 500.1
42     write_bw: 6000
43     write_iops: 1500
44     write_lat: 500.1
45     action: monitor
46
47 context:
48   name: yardstick-TC006
49   image: yardstick-image
50   flavor: yardstick-flavor
51   user: ubuntu
52   servers:
53     fio:
54       floating_ip: true
55       volume:
56         name: test-volume
57         size: {{volume_size}}
58       volume_mountpoint: /dev/vdb
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 %}