commit e861aebb2d956374b84ed35814efa4770bf88fdb Author: Pierre Riteau Date: Fri Oct 16 12:43:52 2020 +0200 CI: Fix kayobe-tox-molecule job When molecule runs, it installs ansible>2.8, which is now version 2.10.1. This now also installs the ansible-base package, currently at version 2.10.2. Then it installs the version of ansible required by kayobe, i.e. ansible>=2.5.0,<2.8.0 (currently 2.7.18). We end up with a tox molecule venv containing: ansible==2.7.18 ansible-base==2.10.2 This causes the following issue (hidden by default because of no_log): AttributeError: 'ActionModule' object has no attribute 'get_shell_option' This commit adds requirements.txt to the molecule tox deps, which ensures the correct version of ansible gets installed first. Change-Id: I7ef890a2ae6fd67f53e1b8bca244a1c0d44fea53 (cherry picked from commit c58555498836066002dc33620018e9bd1e2eeb6a) diff --git a/tox.ini b/tox.ini index 0519802..700b7d2 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,7 @@ commands = basepython = python2 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} + -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/doc/requirements.txt whitelist_externals =