aboutsummaryrefslogtreecommitdiff
path: root/tests/templates
diff options
context:
space:
mode:
authorMichal Arbet <michal.arbet@ultimum.io>2025-04-11 00:00:12 +0200
committerMichal Arbet <michal.arbet@ultimum.io>2025-05-14 16:46:07 +0200
commit41267c041dbe5f1516ed854107fd1ad046cf111c (patch)
tree07977628fe9ebcb07c27504aeb185f1ebe3ad258 /tests/templates
parent35f75a5c0cb71ce32d8739b7c1d90c0a8ebd7902 (diff)
downloadkolla-ansible-41267c041dbe5f1516ed854107fd1ad046cf111c.tar.gz
kolla-ansible-41267c041dbe5f1516ed854107fd1ad046cf111c.zip
[CI] Fix bootstrap testing
This patch adjusts the CI in such a way that we can finally test the correctness of bootstrap-servers. - It correctly installs the virtualenv at the beginning - It sets ansible_python_interpreter to this virtualenv - It runs bootstrap-servers between upgrades - It moves package installation from the CI playbook to ansible-collections-kolla To summarize: this patch aligns behavior and tests the code within the boundaries it should be tested in - that is, inside a virtualenv. This naturally also tests the correctness of ansible-collection-kolla, which installs packages and other dependencies (now not mixed with OS py interpreter). This is important, especially due to a bug in older versions of Docker and requests, which required running bootstrap-servers. Proof of this is that the rocky9-octavia job is finally working, with no more issues with package cryptography (which was read from OS python environment by ansible). TL;DR: From now on, it runs correctly inside a virtualenv, and the OS interpreter no longer interferes. Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/946983 Change-Id: Ifea75c2e14ffececbe271bee1549e92bded90d48
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/globals-default.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2
index 9a8b3b709..08b882b45 100644
--- a/tests/templates/globals-default.j2
+++ b/tests/templates/globals-default.j2
@@ -1,5 +1,6 @@
---
-ansible_python_interpreter: /usr/bin/python3
+virtualenv: "{{ kolla_runtime_venv_path }}"
+ansible_python_interpreter: "{{ kolla_runtime_venv_path }}/bin/python"
kolla_base_distro: "{{ base_distro }}"
network_interface: "{{ api_interface_name }}"