You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test suite is executed in an existing OpenStack environment. You can create and manage this environment yourself or use the [hacking CI scripts][hacking-ci-scripts] to provision an environment with DevStack similar to the one used for continuous integration.
108
+
109
+
#### Requirements
106
110
107
111
The file [`test/e2e/data/e2e_conf.yaml`](https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/main/test/e2e/data/e2e_conf.yaml) and the test templates under [`test/e2e/data/infrastructure-openstack`](https://github.com/kubernetes-sigs/cluster-api-provider-openstack/tree/main/test/e2e/data/infrastructure-openstack) reference several OpenStack resources which must exist before running the test:
108
112
@@ -155,8 +159,38 @@ The file [`test/e2e/data/e2e_conf.yaml`](https://github.com/kubernetes-sigs/clus
155
159
region_name: RegionOne
156
160
```
157
161
158
-
You can also use [Hacking CI scripts](https://cluster-api-openstack.sigs.k8s.io/development/ci.html#devstack) to automatically create OpenStack environment.
162
+
#### Create E2E test environment
163
+
164
+
You can easily create a test environment similar to the one used during continuous integration on OpenStack, AWS or GCE with the [hacking CI scripts][hacking-ci-scripts].
165
+
166
+
The entry point for the creation of the DevStack environment is the [create_devstack.sh][hack-ci-create-devstack] script, which executes specific scripts to create infrastructure on different clouds:
167
+
168
+
- AWS: [aws-project.sh][hack-ci-aws-project]
169
+
- GCE: [gce-project.sh][hack-ci-gce-project]
170
+
- OpenStack: [openstack.sh][hack-ci-openstack]
171
+
172
+
You can switch between these cloud providers, by setting the `RESOURCE_TYPE` environment variable to `aws-project`, `gce-project` or `openstack` respectively.
173
+
174
+
##### OpenStack
175
+
176
+
Configure the following environment variables for OpenStack:
159
177
178
+
```bash
179
+
export RESOURCE_TYPE="openstack"
180
+
export OS_CLOUD=<your cloud>
181
+
export OPENSTACK_FLAVOR_controller=<flavor with >= 16 cores, 64GB RAM and 50GB storage>
182
+
export OPENSTACK_FLAVOR_worker=<flavor with >= 8 cores, 32GB RAM and 50GB storage>
183
+
export OPENSTACK_PUBLIC_NETWORK=<name of the external network>
0 commit comments