aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2020-03-16 16:18:42 +0000
committerMark Goddard <mark@stackhpc.com>2020-04-20 16:18:31 +0000
commit284f492861835a9616eb53a65a9648e415388cc9 (patch)
tree1092afccc428b6e8580014eb78eeeee44a31481e /tests
parentf4e20a1f16b3c2d2adb1d516df80950e197a374d (diff)
downloadkolla-ansible-284f492861835a9616eb53a65a9648e415388cc9.tar.gz
kolla-ansible-284f492861835a9616eb53a65a9648e415388cc9.zip
Remove support for Python 2 on the host
Drops support for creating Python 2 virtualenvs in bootstrap-servers, and looking for a python2 interpreter in the kolla-ansible script. Also forces the use of Python 3 as the remote interpreter in CI on Debian and Ubuntu hosts, since they typically symlink the unversioned interpreter to python2.7. Change-Id: Id0e977de381e7faafed738674a140ba36184727e Partially-Implements: blueprint drop-py2-support
Diffstat (limited to 'tests')
-rw-r--r--tests/templates/globals-default.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2
index b95efdb3f..c28a5a357 100644
--- a/tests/templates/globals-default.j2
+++ b/tests/templates/globals-default.j2
@@ -1,4 +1,10 @@
---
+{% if ansible_os_family == 'Debian' %}
+# Force the use of python3 on Debian and Ubuntu remote hosts. These distros
+# typically have an unversioned Python interpreter which links to python2.7.
+ansible_python_interpreter: /usr/bin/python3
+{% endif %}
+
kolla_base_distro: "{{ base_distro }}"
kolla_install_type: "{{ install_type }}"
network_interface: "{{ api_interface_name }}"