zuul/tests/fixtures
Ian Wienand 93d1d3be17 Support nodes setting 'auto' python-path
The nodepool "python-path" config variable makes it's way through from
the node arguments and ends up as the "ansible_python_interpreter"
variable for the inventory when running the job.

Notably, Python 3 only distributions require this to be set to
/usr/bin/python3 to avoid what can often be confusing red-herring
errors (e.g. things like dnf packages incorrectly appearing to be
missing on Fedora, for example [1]).

Upstream is aware of this often confusing behaviour and has made an
"ansible_python_interpreter" value of "auto" to, essentially, "do the
right thing" [2] and choose the right python for the target
environment.  This is available in Ansible >=2.8 and will become
default in 2.12.

This allows, and defaults to, an interpreter value of "auto" when
running with Ansible >=2.8.  On the supported prior Ansible releases,
"auto" will be translated into "/usr/bin/python2" to maintain
backwards compatability.  Of course a node explicity setting
"python-path" already will override this.

Nodepool is updated to set this by default with
I02a1a618c8806b150049e91b644ec3c0cb826ba4.

I think this is much more user friendly as it puts the work of
figuring out what platform has what interpreter into Ansible.  It
alleviates the need for admins to know anything at all about
"python-path" for node configurations unless they are actually doing
something out of the ordinary like using a virtualenv.  At the moment,
if you put a modern Python-3 only distro into nodepool, Zuul always
does the wrong thing by selecting /usr/bin/python2; you are left to
debug the failures and need to know to go and manually update the
python-path to Python 3.

Documentation is updated.  Detailed discussion is moved into the
executor section; the README is simplified a bit to avoid confusion.

A release note is added.

A test-case is added.  Note that it is also self-testing in that jobs
using Ansible 2.8 use the updated value
(c.f. I7cdcfc760975871f7fa9949da1015d7cec92ee67)

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1696404
[2] https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html

Change-Id: I2b3bc6d4f873b7d653cfaccd1598464583c561e7
2019-09-19 10:28:53 +10:00
..
bwrap-mounts Add missing localhost delegation checks to some modules 2018-03-22 20:42:01 +01:00
cgroup Add cgroup support to ram sensor 2018-12-18 22:25:27 +01:00
config Support nodes setting 'auto' python-path 2019-09-19 10:28:53 +10:00
gearman Add ssl support to gearman / gearman_server 2017-06-14 10:10:45 -04:00
gerrit Update references for opendev 2019-04-24 12:59:17 +00:00
layouts Merge "Support squash merge in Github" 2019-07-31 17:20:42 +00:00
tenants Re-enable test_delayed_repo_init 2017-08-14 23:37:56 -07:00
app_key Extend github testing using app auth 2018-05-24 00:15:32 +00:00
clonemap.yaml cloner to easily clone dependent repositories 2014-07-29 09:03:59 +00:00
fake_git.sh Add comment explaining gitpython requirement 2017-10-10 11:15:06 -07:00
git_fetch_error.sh Merger: retry network operations 2018-01-31 13:20:36 -08:00
layout-cloner.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-connections-multiple-voters.yaml Add in extra connections tests 2015-12-06 14:48:32 +11:00
layout-disable-at.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-live-reconfiguration-functions.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-merge-queues.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-requirement-vote.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-smtp.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-success-pattern.yaml Add extra test for bad url patterns 2016-04-23 10:40:12 +10:00
layout.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
private.pem Add per-repo public and private keys 2017-03-29 12:43:41 -07:00
public.pem Serve public keys through webapp 2017-03-29 12:44:43 -07:00
ssh.pem Create per-project ssh keys 2018-09-04 15:42:41 -07:00
ssh.pub Serve project SSH keys and document 2018-09-04 15:42:43 -07:00
test_id_rsa Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
test_id_rsa.pub Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
zuul-admin-web-no-override.conf Web: plug the authorization engine 2019-07-30 15:32:31 +00:00
zuul-admin-web.conf web: add tenant and project scoped, JWT-protected actions 2019-07-10 12:11:14 +02:00
zuul-connections-cgit.conf Make the git web url a template 2017-10-25 17:11:46 -07:00
zuul-connections-gerrit-and-github.conf Report config errors as line comments 2018-07-27 19:18:04 -07:00
zuul-connections-gitweb.conf Make the git web url a template 2017-10-25 17:11:46 -07:00
zuul-connections-merger.conf Move status_url from webapp to web section 2018-01-29 14:16:28 +01:00
zuul-connections-multiple-gerrits.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-connections-same-gerrit.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-crd-pagure.conf Pagure driver - https://pagure.io/pagure/ 2019-06-17 14:18:19 -07:00
zuul-default-ansible-version.conf Fix ignored default ansible version 2019-03-22 18:46:59 +01:00
zuul-disk-accounting.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-executor-hostname.conf Change domain in test fixture to example.com 2017-10-19 17:28:44 +00:00
zuul-gerrit-github.conf Add cross-source tests 2018-01-16 09:37:59 -08:00
zuul-gerrit-web.conf Report to gerrit over HTTP 2018-07-26 16:43:07 -07:00
zuul-git-driver.conf Git driver 2017-12-15 14:32:40 +01:00
zuul-github-driver.conf Extend github testing using app auth 2018-05-24 00:15:32 +00:00
zuul-mqtt-driver.conf mqtt: add basic reporter 2018-05-02 07:20:46 +00:00
zuul-pagure-driver.conf Pagure driver - https://pagure.io/pagure/ 2019-06-17 14:18:19 -07:00
zuul-push-reqs.conf Move status_url from webapp to web section 2018-01-29 14:16:28 +01:00
zuul-sql-driver-bad.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-sql-driver-prefix.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-sql-driver.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-winrm.conf Add config parameters for WinRM timeouts 2018-11-22 18:32:15 +01:00
zuul.conf Add option to report build page 2019-08-08 09:46:53 -07:00