[docs] Add vEPC test case preparation steps
[yardstick.git] / docs / testing / user / userguide / opnfv_yardstick_tc074.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International
2 .. License.
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Huawei Technologies Co.,Ltd and others.
5
6 *************************************
7 Yardstick Test Case Description TC074
8 *************************************
9
10 .. _Storperf: https://wiki.opnfv.org/display/storperf/Storperf
11
12 +-----------------------------------------------------------------------------+
13 |Storperf                                                                     |
14 |                                                                             |
15 +--------------+--------------------------------------------------------------+
16 |test case id  | OPNFV_YARDSTICK_TC074_Storperf                               |
17 |              |                                                              |
18 +--------------+--------------------------------------------------------------+
19 |metric        | Storage performance                                          |
20 |              |                                                              |
21 +--------------+--------------------------------------------------------------+
22 |test purpose  | To evaluate and report on the Cinder volume performance.     |
23 |              |                                                              |
24 |              | This testcase integrates with OPNFV StorPerf to measure      |
25 |              | block performance of the underlying Cinder drivers.  Many    |
26 |              | options are supported, and even the root disk (Glance        |
27 |              | ephemeral storage can be profiled.                           |
28 |              |                                                              |
29 |              | The fundamental concept of the test case is to first fill    |
30 |              | the volumes with random data to ensure reported metrics      |
31 |              | are indicative of continued usage and not skewed by          |
32 |              | transitional performance while the underlying storage        |
33 |              | driver allocates blocks.                                     |
34 |              | The metrics for filling the volumes with random data         |
35 |              | are not reported in the final results.  The test also        |
36 |              | ensures the volumes are performing at a consistent level     |
37 |              | of performance by measuring metrics every minute, and        |
38 |              | comparing the trend of the metrics over the run.  By         |
39 |              | evaluating the min and max values, as well as the slope of   |
40 |              | the trend, it can make the determination that the metrics    |
41 |              | are stable, and not fluctuating beyond industry standard     |
42 |              | norms.                                                       |
43 |              |                                                              |
44 +--------------+--------------------------------------------------------------+
45 |configuration | file: opnfv_yardstick_tc074.yaml                             |
46 |              |                                                              |
47 |              | * agent_count: 1 - the number of VMs to be created           |
48 |              | * agent_image: "Ubuntu-14.04" - image used for creating VMs  |
49 |              | * public_network: "ext-net" - name of public network         |
50 |              | * volume_size: 2 - cinder volume size                        |
51 |              | * block_sizes: "4096" - data block size                      |
52 |              | * queue_depths: "4" - the number of simultaneous I/Os        |
53 |              |   to perform at all times                                    |
54 |              | * StorPerf_ip: "192.168.200.2"                               |
55 |              | * query_interval: 10 - state query interval                  |
56 |              | * timeout: 600 - maximum allowed job time                    |
57 |              |                                                              |
58 +--------------+--------------------------------------------------------------+
59 |test tool     | Storperf_                                                    |
60 |              |                                                              |
61 |              | StorPerf is a tool to measure block and object storage       |
62 |              | performance in an NFVI.                                      |
63 |              |                                                              |
64 |              | StorPerf is delivered as a Docker container from             |
65 |              | https://hub.docker.com/r/opnfv/storperf-master/tags/.        |
66 |              |                                                              |
67 |              | The underlying tool used is FIO, and StorPerf supports       |
68 |              | any FIO option in order to tailor the test to the exact      |
69 |              | workload needed.                                             |
70 |              |                                                              |
71 +--------------+--------------------------------------------------------------+
72 |references    | Storperf_                                                    |
73 |              |                                                              |
74 |              | ETSI-NFV-TST001                                              |
75 |              |                                                              |
76 +--------------+--------------------------------------------------------------+
77 |applicability | Test can be configured with different:                       |
78 |              |                                                              |
79 |              | * agent_count                                                |
80 |              | * volume_size                                                |
81 |              | * block_sizes                                                |
82 |              | * queue_depths                                               |
83 |              | * query_interval                                             |
84 |              | * timeout                                                    |
85 |              | * target=[device or path]                                    |
86 |              |   The path to either an attached storage device              |
87 |              |   (/dev/vdb, etc) or a directory path  (/opt/storperf) that  |
88 |              |   will be used to execute the performance test. In the case  |
89 |              |   of a device, the entire device will be used. If not        |
90 |              |   specified, the current directory will be used.             |
91 |              | * workload=[workload module]                                 |
92 |              |   If not specified, the default is to run all workloads. The |
93 |              |   workload types are:                                        |
94 |              |      - rs: 100% Read, sequential data                        |
95 |              |      - ws: 100% Write, sequential data                       |
96 |              |      - rr: 100% Read, random access                          |
97 |              |      - wr: 100% Write, random access                         |
98 |              |      - rw: 70% Read / 30% write, random access               |
99 |              |   measurements.                                              |
100 |              | * workloads={json maps}                                      |
101 |              |   This parameter supercedes the workload and calls the V2.0  |
102 |              |   API in StorPerf. It allows for greater control of the      |
103 |              |   parameters to be passed to FIO.  For example, running a    |
104 |              |   random read/write with a mix of 90% read and 10% write     |
105 |              |   would be expressed as follows:                             |
106 |              |   {"9010randrw": {"rw":"randrw","rwmixread": "90"}}          |
107 |              |   Note: This must be passed in as a string, so don't forget  |
108 |              |   to escape or otherwise properly deal with the quotes.      |
109 |              |                                                              |
110 |              | * report= [job_id]                                           |
111 |              |   Query the status of the supplied job_id and report on      |
112 |              |   metrics. If a workload is supplied, will report on only    |
113 |              |   that subset.                                               |
114 |              | * availability_zone: Specify the availability zone which     |
115 |              |   the stack will use to create instances.                    |
116 |              | * volume_type:                                               |
117 |              |   Cinder volumes can have different types, for example       |
118 |              |   encrypted vs. not encrypted.                               |
119 |              |   To be able to profile the difference between the two.      |
120 |              | * subnet_CIDR: Specify subnet CIDR of private network        |
121 |              | * stack_name: Specify the name of the stack that will be     |
122 |              |   created, the default: "StorperfAgentGroup"                 |
123 |              | * volume_count: Specify the number of volumes per            |
124 |              |   virtual machines                                           |
125 |              |                                                              |
126 |              |   There are default values for each above-mentioned option.  |
127 |              |                                                              |
128 +--------------+--------------------------------------------------------------+
129 |pre-test      | If you do not have an Ubuntu 14.04 image in Glance, you will |
130 |conditions    | need to add one.                                             |
131 |              |                                                              |
132 |              | Storperf is required to be installed in the environment.     |
133 |              | There are two possible methods for Storperf installation:    |
134 |              |     Run container on Jump Host                               |
135 |              |     Run container in a VM                                    |
136 |              |                                                              |
137 |              | Running StorPerf on Jump Host                                |
138 |              | Requirements:                                                |
139 |              |     - Docker must be installed                               |
140 |              |     - Jump Host must have access to the OpenStack Controller |
141 |              |       API                                                    |
142 |              |     - Jump Host must have internet connectivity for          |
143 |              |       downloading docker image                               |
144 |              |     - Enough floating IPs must be available to match your    |
145 |              |       agent count                                            |
146 |              |                                                              |
147 |              | Running StorPerf in a VM                                     |
148 |              | Requirements:                                                |
149 |              |     - VM has docker installed                                |
150 |              |     - VM has OpenStack Controller credentials and can        |
151 |              |       communicate with the Controller API                    |
152 |              |     - VM has internet connectivity for downloading the       |
153 |              |       docker image                                           |
154 |              |     - Enough floating IPs must be available to match your    |
155 |              |       agent count                                            |
156 |              |                                                              |
157 |              | No POD specific requirements have been identified.           |
158 |              |                                                              |
159 +--------------+--------------------------------------------------------------+
160 |test sequence | description and expected result                              |
161 |              |                                                              |
162 +--------------+--------------------------------------------------------------+
163 |step 1        | Yardstick calls StorPerf to create the heat stack with the   |
164 |              | number of VMs and size of Cinder volumes specified.  The     |
165 |              | VMs will be on their own private subnet, and take floating   |
166 |              | IP addresses from the specified public network.              |
167 |              |                                                              |
168 +--------------+--------------------------------------------------------------+
169 |step 2        | Yardstick calls StorPerf to fill all the volumes with        |
170 |              | random data.                                                 |
171 |              |                                                              |
172 +--------------+--------------------------------------------------------------+
173 |step 3        | Yardstick calls StorPerf to perform the series of tests      |
174 |              | specified by the workload, queue depths and block sizes.     |
175 |              |                                                              |
176 +--------------+--------------------------------------------------------------+
177 |step 4        | Yardstick calls StorPerf to delete the stack it created.     |
178 |              |                                                              |
179 +--------------+--------------------------------------------------------------+
180 |test verdict  | None. Storage performance results are fetched and stored.    |
181 |              |                                                              |
182 +--------------+--------------------------------------------------------------+