tc063: make node parameter can be pass
[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 provider = provider or none %}
18 {% set physical_network = physical_network or 'physnet1' %}
19 {% set segmentation_id = segmentation_id or none %}
20
21 schema: "yardstick:task:0.1"
22
23 scenarios:
24 -
25   type: Fio
26   options:
27     job_file: "job_file.ini"
28     directory: {{ directory }}
29
30   host: fio.yardstick-TC006
31
32   runner:
33     type: Iteration
34     iterations: 1
35     interval: 1
36
37   sla:
38     read_bw: 6000
39     read_iops: 1500
40     read_lat: 500.1
41     write_bw: 6000
42     write_iops: 1500
43     write_lat: 500.1
44     action: monitor
45
46 context:
47   name: yardstick-TC006
48   image: yardstick-image
49   flavor: yardstick-flavor
50   user: ubuntu
51   servers:
52     fio:
53       floating_ip: true
54       volume:
55         name: test-volume
56         size: 200
57       volume_mountpoint: /dev/vdb
58
59   networks:
60     test:
61       cidr: '10.0.1.0/24'
62       {% if provider == "vlan" %}
63       provider: {{provider}}
64       physical_network: {{physical_network}}
65         {% if segmentation_id %}
66       segmentation_id: {{segmentation_id}}
67         {% endif %}
68       {% endif %}