Run tempest tests#
The OpenStack Integration Test Suite (Tempest), is a set of integration tests to be run against a live OpenStack environment. This section instructs you on how to verify the workability of your OpenStack deployment using Tempest.
To verify an OpenStack deployment using Tempest:
- Add
tempest
tospec:features:services
inOpenStackDeployment
custom resource. - Wait until Tempest is ready. The Tempest tests are launched by the
openstack-tempest-run-tests
job. To keep track of the tests execution, run:kubectl -n openstack logs -l application=tempest,component=run-tests
- Get the Tempest results. The Tempest results can be stored in a
pvc-tempest
PersistentVolumeClaim (PVC). To get them from a PVC, use:# Run pod and mount pvc to it cat <<EOF | kubectl apply -f - apiVersion: v1 kind: Pod metadata: name: tempest-test-results-pod namespace: openstack spec: nodeSelector: openstack-control-plane: enabled volumes: - name: tempest-pvc-storage persistentVolumeClaim: claimName: pvc-tempest containers: - name: tempest-pvc-container image: ubuntu command: ['sh', '-c', 'sleep infinity'] volumeMounts: - mountPath: "/var/lib/tempest/data" name: tempest-pvc-storage EOF
To rerun tempest:
- Remove
tempest
from the list of enabled services. - Wait until Tempest jobs are removed.
- Add
tempest
back to the list of the enabled services.