aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: e02d7428dfe8880ef7bc8db2241383760b946688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# Functest

Network virtualization has dramatically modified our architectures which asks
for more automation and powerful testing tools like Functest, a collection of
state-of-the-art virtual infrastructure test suites, including automatic VNF
testing (cf.
[[1]](https://www.linuxfoundation.org/press-release/2019/05/opnfv-hunter-delivers-test-tools-ci-cd-framework-to-enable-common-nfvi-for-verifying-vnfs/)).

In context of OPNFV, Functest verifies any kind of OpenStack and Kubernetes
deployments including production environments. It conforms to upstream rules
and integrates smoothly lots of the test cases available in the opensource
market. It includes about 3000+ functional tests and 3 hours upstream API and
dataplane benchmarks. It’s completed by Virtual Network Function deployments
and testing (vIMS, vRouter and vEPC) to ensure that the platforms meet Network
Functions Virtualization requirements. Raspberry PI is also supported to verify
datacenters as the lowest cost (50 euros hardware and software included).

| Functest releases | OpenStack releases |
|-------------------|--------------------|
| Hunter	          | Rocky              |
| Iruya             | Stein              |
| Jerma	            | Train              |
| Kali              | Ussuri             |
| **Leguer**        | **Victoria**       |
| Master    	      | next Wallaby       |

## Prepare your environment

cat env
```
DEPLOY_SCENARIO=XXX  # if not os-nosdn-nofeature-noha scenario
NAMESERVER=XXX  # if not 8.8.8.8
EXTERNAL_NETWORK=XXX  # if not first network with router:external=True
DASHBOARD_URL=XXX  # else tempest_horizon will be skipped
NEW_USER_ROLE=XXX  # if not member
SDN_CONTROLLER_IP=XXX  # if odl scenario
VOLUME_DEVICE_NAME=XXX  # if not vdb
FLAVOR_EXTRA_SPECS=hw:mem_page_size:large  # if fdio scenarios
```

cat openstack.creds
```
export OS_AUTH_URL=XXX
export OS_USER_DOMAIN_NAME=XXX
export OS_PROJECT_DOMAIN_NAME=XXX
export OS_USERNAME=XXX
export OS_PROJECT_NAME=XXX
export OS_PASSWORD=XXX
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=XXX
```

mkdir -p images && wget -q -O- https://git.opnfv.org/functest/plain/functest/ci/download_images.sh?h=stable/leguer | bash -s -- images && ls -1 images/*
```
images/cirros-0.4.0-aarch64-disk.img
images/cirros-0.4.0-x86_64-disk.img
images/cloudify-docker-manager-community-19.01.24.tar
images/Fedora-Cloud-Base-30-1.2.x86_64.qcow2
images/shaker-image-1.3.0+stretch.qcow2
images/ubuntu-14.04-server-cloudimg-amd64-disk1.img
images/ubuntu-14.04-server-cloudimg-arm64-uefi1.img
images/ubuntu-16.04-server-cloudimg-amd64-disk1.img
images/vyos-1.1.8-amd64.qcow2
```

### Run healthcheck suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-healthcheck:leguer
```

```
+--------------------------+------------------+---------------------+------------------+----------------+
|        TEST CASE         |     PROJECT      |         TIER        |     DURATION     |     RESULT     |
+--------------------------+------------------+---------------------+------------------+----------------+
|     connection_check     |     functest     |     healthcheck     |      00:02       |      PASS      |
|      tenantnetwork1      |     functest     |     healthcheck     |      00:04       |      PASS      |
|      tenantnetwork2      |     functest     |     healthcheck     |      00:06       |      PASS      |
|         vmready1         |     functest     |     healthcheck     |      00:05       |      PASS      |
|         vmready2         |     functest     |     healthcheck     |      00:06       |      PASS      |
|        singlevm1         |     functest     |     healthcheck     |      00:31       |      PASS      |
|        singlevm2         |     functest     |     healthcheck     |      00:35       |      PASS      |
|        vping_ssh         |     functest     |     healthcheck     |      00:47       |      PASS      |
|      vping_userdata      |     functest     |     healthcheck     |      00:42       |      PASS      |
|       cinder_test        |     functest     |     healthcheck     |      01:09       |      PASS      |
|      tempest_smoke       |     functest     |     healthcheck     |      04:50       |      PASS      |
|     tempest_horizon      |     functest     |     healthcheck     |      01:00       |      PASS      |
|           odl            |     functest     |     healthcheck     |      00:00       |      SKIP      |
+--------------------------+------------------+---------------------+------------------+----------------+
```

## Run smoke suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-smoke:leguer
```

```
+---------------------------+------------------+---------------+------------------+----------------+
|         TEST CASE         |     PROJECT      |      TIER     |     DURATION     |     RESULT     |
+---------------------------+------------------+---------------+------------------+----------------+
|      tempest_neutron      |     functest     |     smoke     |      11:58       |      PASS      |
|       tempest_cinder      |     functest     |     smoke     |      02:13       |      PASS      |
|      tempest_keystone     |     functest     |     smoke     |      01:18       |      PASS      |
|        tempest_heat       |     functest     |     smoke     |      23:24       |      PASS      |
|     tempest_telemetry     |     functest     |     smoke     |      01:54       |      PASS      |
|        rally_sanity       |     functest     |     smoke     |      20:29       |      PASS      |
|      refstack_compute     |     functest     |     smoke     |      05:16       |      PASS      |
|      refstack_object      |     functest     |     smoke     |      01:59       |      PASS      |
|     refstack_platform     |     functest     |     smoke     |      06:42       |      PASS      |
|        tempest_full       |     functest     |     smoke     |      31:30       |      PASS      |
|      tempest_scenario     |     functest     |     smoke     |      09:57       |      PASS      |
|        tempest_slow       |     functest     |     smoke     |      57:15       |      PASS      |
|       patrole_admin       |     functest     |     smoke     |      22:15       |      PASS      |
|       patrole_member      |     functest     |     smoke     |      23:58       |      PASS      |
|       patrole_reader      |     functest     |     smoke     |      22:15       |      PASS      |
|      tempest_barbican     |     functest     |     smoke     |      03:37       |      PASS      |
|      tempest_octavia      |     functest     |     smoke     |      00:00       |      SKIP      |
|       tempest_cyborg      |     functest     |     smoke     |      00:00       |      SKIP      |
+---------------------------+------------------+---------------+------------------+----------------+
```

## Run smoke CNTT suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-smoke-cntt:leguer
```

```
+-------------------------------+------------------+---------------+------------------+----------------+
|           TEST CASE           |     PROJECT      |      TIER     |     DURATION     |     RESULT     |
+-------------------------------+------------------+---------------+------------------+----------------+
|      tempest_neutron_cntt     |     functest     |     smoke     |      10:03       |      PASS      |
|      tempest_cinder_cntt      |     functest     |     smoke     |      02:10       |      PASS      |
|     tempest_keystone_cntt     |     functest     |     smoke     |      01:17       |      PASS      |
|       tempest_heat_cntt       |     functest     |     smoke     |      22:44       |      PASS      |
|       rally_sanity_cntt       |     functest     |     smoke     |      17:37       |      PASS      |
|       tempest_full_cntt       |     functest     |     smoke     |      29:48       |      PASS      |
|     tempest_scenario_cntt     |     functest     |     smoke     |      09:59       |      PASS      |
|       tempest_slow_cntt       |     functest     |     smoke     |      41:57       |      PASS      |
+-------------------------------+------------------+---------------+------------------+----------------+
```

## Run benchmarking suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-benchmarking:leguer
```

```
+--------------------+------------------+----------------------+------------------+----------------+
|     TEST CASE      |     PROJECT      |         TIER         |     DURATION     |     RESULT     |
+--------------------+------------------+----------------------+------------------+----------------+
|     rally_full     |     functest     |     benchmarking     |      104:28      |      PASS      |
|     rally_jobs     |     functest     |     benchmarking     |      30:00       |      PASS      |
|        vmtp        |     functest     |     benchmarking     |      23:43       |      PASS      |
|       shaker       |     functest     |     benchmarking     |      28:49       |      PASS      |
+--------------------+------------------+----------------------+------------------+----------------+
```

## Run benchmarking CNTT suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-benchmarking-cntt:leguer
```

```
+-------------------------+------------------+----------------------+------------------+----------------+
|        TEST CASE        |     PROJECT      |         TIER         |     DURATION     |     RESULT     |
+-------------------------+------------------+----------------------+------------------+----------------+
|     rally_full_cntt     |     functest     |     benchmarking     |      90:27       |      PASS      |
|     rally_jobs_cntt     |     functest     |     benchmarking     |      22:58       |      PASS      |
|           vmtp          |     functest     |     benchmarking     |      23:43       |      PASS      |
|          shaker         |     functest     |     benchmarking     |      28:49       |      PASS      |
+-------------------------+------------------+----------------------+------------------+----------------+
```

## Run vnf suite

```bash
sudo docker run --env-file env \
    -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
    -v $(pwd)/images:/home/opnfv/functest/images \
    opnfv/functest-vnf:leguer
```

```
+----------------------+------------------+--------------+------------------+----------------+
|      TEST CASE       |     PROJECT      |     TIER     |     DURATION     |     RESULT     |
+----------------------+------------------+--------------+------------------+----------------+
|       cloudify       |     functest     |     vnf      |      04:23       |      PASS      |
|     cloudify_ims     |     functest     |     vnf      |      24:42       |      PASS      |
|       heat_ims       |     functest     |     vnf      |      30:33       |      PASS      |
|     vyos_vrouter     |     functest     |     vnf      |      17:31       |      PASS      |
|       juju_epc       |     functest     |     vnf      |      37:21       |      PASS      |
+----------------------+------------------+--------------+------------------+----------------+
```