-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document running of tempest via different ways.
- Loading branch information
1 parent
c2ffef7
commit 88206d9
Showing
10 changed files
with
359 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Contribute to the test-operator | ||
|
||
We accept changes proposed as pull requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
User Guide | ||
========== | ||
|
||
This guide is a starting point for configuring and running the `test-operator`. | ||
|
||
Installation | ||
------------ | ||
|
||
.. code-block:: bash | ||
make install | ||
Execution | ||
--------- | ||
Execute the following command to run the operator. Note, that after running the | ||
following command you will need to switch to another terminal unless you run it | ||
in the background. | ||
|
||
.. code-block:: bash | ||
make run | ||
.. note:: | ||
You can run this step together with the installation at once by running: ``make install run`` | ||
|
||
Then apply a tempest resource definition, e.g. the default one: | ||
|
||
.. literalinclude:: ../../config/samples/test_v1beta1_tempest.yaml | ||
:language: yaml | ||
|
||
.. code-block:: bash | ||
oc apply -f config/samples/test_v1beta1_tempest.yaml | ||
After that, verify that a pod was created with: | ||
|
||
.. code-block:: bash | ||
oc get pods | grep tempest | ||
You should see a pod with a name like `tempest-tests-xxxxx`. | ||
|
||
To see the console output of the execution run the following: | ||
|
||
.. code-block:: bash | ||
oc logs <name of the pod> | ||
Custom Tempest Configuration | ||
---------------------------- | ||
This is TBA. | ||
|
||
Getting logs | ||
------------ | ||
This is TBA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Test Images | ||
=========== | ||
|
||
The `test-operator` uses images that are built and defined in | ||
`TCIB (The Container Image Build) <https://github.com/openstack-k8s-operators/tcib>`_. | ||
The built images are published to `quay.io <https://quay.io/>`_. | ||
|
||
To find all tempest images, go to | ||
`podified-master-centos9 organization <https://quay.io/organization/podified-master-centos9>`_ | ||
and filter for *tempest* results. | ||
|
||
Currently, there are the following tempest images: | ||
|
||
* `openstack-tempest <https://quay.io/podified-antelope-centos9/openstack-tempest>`_ | ||
* `openstack-tempest-extras <https://quay.io/podified-antelope-centos9/openstack-tempest-extras>`_ | ||
|
||
`test-operator` run, for now, only the following test images: | ||
|
||
* openstack-tempest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
.. documentation master file | ||
============= | ||
test-operator | ||
============= | ||
=============================== | ||
Documentation for test-operator | ||
=============================== | ||
|
||
Welcome to the documentation for test-operator. This documentation is designed | ||
to help you get up and running with our project as quickly and smoothly as | ||
possible. | ||
|
||
Overview | ||
======== | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Overview | ||
|
||
readme.md | ||
|
||
Configuration Guide | ||
=================== | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: For Contributors | ||
|
||
contributing.md | ||
images.rst | ||
guide.rst | ||
|
||
Debugging | ||
========= | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Indices and tables | ||
================== | ||
tempest_pod.rst | ||
tempest_podman.rst | ||
|
||
* :ref:`genindex` | ||
* :ref:`search` | ||
For Contributors | ||
================ | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
contributing.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: my-tempest-data | ||
data: | ||
include.txt: | | ||
tempest.api.identity.v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: tempest-home | ||
spec: | ||
resources: | ||
requests: | ||
storage: 10G | ||
accessModes: | ||
- ReadWriteMany | ||
- ReadWriteOnce | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: tempest-worker | ||
spec: | ||
securityContext: | ||
fsGroup: 42480 | ||
volumes: | ||
- name: tempest-workdir | ||
persistentVolumeClaim: | ||
claimName: tempest-home | ||
- name: cloud-passwd | ||
secret: | ||
secretName: openstack-config-secret | ||
- name: clouds-config | ||
configMap: | ||
name: openstack-config | ||
- name: tempest-config | ||
configMap: | ||
name: my-tempest-data | ||
- name: pre-install | ||
emptyDir: {} | ||
containers: | ||
- name: tempest-container | ||
image: quay.io/podified-antelope-centos9/openstack-tempest:current-podified | ||
# Uncomment the following line to make the container sleep - that overrides | ||
# any run commands defined in the tempest image - that will allow you to | ||
# ssh to the container, install e.g. tempest plugins, change the tempest | ||
# configuration and run tempest yourself. | ||
# command: ["/usr/bin/dumb-init", "sleep", "infinity"] | ||
restartPolicy: Never | ||
volumeMounts: | ||
- mountPath: "/var/lib/tempest/external_files/" | ||
name: tempest-workdir | ||
- mountPath: "/etc/openstack" | ||
name: pre-install | ||
- mountPath: "/etc/openstack/clouds.yaml" | ||
name: clouds-config | ||
subPath: clouds.yaml | ||
- mountPath: "/var/lib/tempest/external_files/include.txt" | ||
name: tempest-config | ||
subPath: include.txt | ||
- mountPath: "/etc/openstack/secure.yaml" | ||
name: cloud-passwd | ||
subPath: secure.yaml | ||
env: | ||
- name: OS_CLOUD | ||
valueFrom: | ||
configMapKeyRef: | ||
name: openstack-config | ||
key: OS_CLOUD |
Oops, something went wrong.