Skip to content

Commit

Permalink
Update .automation submodule for Tempest CA cert support
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoddard committed Apr 15, 2024
1 parent 88f83b9 commit cd9ec7b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .automation
2 changes: 2 additions & 0 deletions doc/source/configuration/vault.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ Enable the required TLS variables in kayobe and kolla
# Whether TLS is enabled for the external API endpoints. Default is 'no'.
kolla_enable_tls_external: yes
See :ref:`tempest-cacert` for information on adding CA certificates to the trust store when running Tempest.

2. Set the following in kayobe-config/etc/kayobe/kolla.yml or if environments are being used etc/kayobe/environments/$KAYOBE_ENVIRONMENT/kolla.yml

.. code-block::
Expand Down
19 changes: 19 additions & 0 deletions doc/source/operations/tempest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,25 @@ ever contain one host. The seed is usually used as the tempest runner however
it is also common to use the Ansible control host or an infrastructure VM. The
main requirement of the host is that it can reach the OpenStack API.

.. _tempest-cacert:

Tempest CA certificate
----------------------

If your public OpenStack API uses TLS with a Certificate Authority (CA) that is
not trusted by the Python CA trust store, it may be necessary to add a CA
certificate to the trust store in the container that runs Tempest. This can be
done by defining a ``tempest_cacert`` Ansible variable to a path containing the
CA certificate. You may wish to use ``kayobe_config_path`` or
``kayobe_env_config_path`` to be agnostic to the path where kayobe-config is
mounted within the container. For example:

.. code-block:: yaml
:caption: ``etc/kayobe/tempest.yml``
# Add the Vault CA certificate to the rally container when running tempest.
tempest_cacert: "{{ kayobe_env_config_path }}/kolla/certificates/ca/vault.crt"
Running Tempest
===============

Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/tempest-cacert-33e2ae1cf0ba88cf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Supports adding CA certificates to the Tempest container trust store.

0 comments on commit cd9ec7b

Please sign in to comment.