-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Ansible devel (2.8) broken #1727
Comments
I'll give this a try. Not sure to succeed but announcing anyways ;-) |
Reproduced locally (see the full output) with
with the following diff on
|
The corresponding testinfra issue is pytest-dev/pytest-testinfra#401 |
Until we fix: * ansible#1727 Signed-off-by: Luke Murphy <[email protected]>
Until we fix: * ansible#1727 Signed-off-by: Luke Murphy <[email protected]>
Thanks for investigating @singuliere. I've submitted #1733 to stop us getting failing builds on master during the cron runs that test against |
@lwm this is indeed the wise thing to do :-) I proposed a pull request to testinfra but it is not trivial and I suspect it will be some time before this is fixed. |
Basically |
@webknjaz there is no way to implement the |
Well, I just relayed what I heard from our internal slack. Didn't look into it personally. |
I think a number of tools have struggled with this choice (API vs. CLI), including this one! See https://molecule.readthedocs.io/en/latest/faq.html#have-you-thought-about-using-ansible-s-python-api-instead-of-playbooks. I am watching ansible-runner closely (I even tried a little experiment myself and the API is coming along fine IMHO! |
PR out for a fix in testinfra -> pytest-dev/pytest-testinfra#404 |
Further developments in pytest-dev/pytest-testinfra#401 👍 Luckily for us, it seems testinfra may be going in the direction of using ansible-runner! |
Ref: #1983 |
OK people, we can move ahead with fixing this now. See pytest-dev/pytest-testinfra#401. |
OK, we can close this off with #2034. |
Molecule `2.20.1` installs on Python2.7 now. Using `--pre` is resulting in Ansible 2.8-devel, and Molecule currently doesn't work well with Ansible 2.8-devel. See ansible/molecule#1727
Specify the version of Ansible installed on TravisCI since there currently seems to be compatibility issues with Ansible 2.8. Related to ansible/molecule#1727 Signed-off-by: Jason Rogena <[email protected]>
I got around this by adding testinfra to travis.yml which installed testinfra 3.0+
|
…molecule 2.20.1 has requirement testinfra==1.19.0, but you'll have testinfra 3.0.4 which is incompatible.` thats simply wrong - with that, Molecule runs with Testinfra 3.x and Ansible 2.8 again like a charm - until the fix ansible/molecule#1727 gets released
Thanks @wildone - installing testinfra right before molecule ( |
…/ release available
Using molecule's docker image here, and we need to add the following line to the dockerfile to make it work with ansible 2.8 and testinfra 3.x:
|
Thanks @abeluck, we have to make a new release soon ... |
This works around an issue with ansible and molecule that breaks our CI. This issue was recently fixed upstream, but is not yet available in the packages used during testing.
This works around an issue with ansible and molecule that breaks our CI. This issue was recently fixed upstream, but is not yet available in the packages used during testing.
To avoid the tests from failing when running testinfra, install the testinfra PIP package before molecule. Related to ansible/molecule#1727 Signed-off-by: Jason Rogena <[email protected]>
This works around an issue with ansible and molecule that breaks our CI. This issue was recently fixed upstream, but is not yet available in the packages used during testing. Signed-off-by: Shirly Radco <[email protected]>
This works around an issue with ansible and molecule that breaks our CI. This issue was recently fixed upstream, but is not yet available in the packages used during testing. Signed-off-by: Shirly Radco <[email protected]>
Updated upstream source commit. Commit details follow: Project: https://github.com/linux-system-roles/logging Branch: master Commit: 02dca4b04308c8ab626ecf8e43b6507d85ce63f8 Author: Shirly Radco Date: Tue, 18 Jun 2019 21:50:36 +0300 Workaround for ansible/molecule#1727 This works around an issue with ansible and molecule that breaks our CI. This issue was recently fixed upstream, but is not yet available in the packages used during testing. Signed-off-by: Shirly Radco <[email protected]> x-md5: 90e83f234da3d088d484638aeb90038a Change-Id: If59b6bb0e80cebbaad7de6b379c28bbd606604ae
Apart
I also needed to bump cerberus (to v1.3.1) to avoid some schema errors. |
To avoid the tests from failing when running testinfra, install Ansible 2.7 instead of 2.8 in the .travis.yml file. Related to ansible/molecule#1727 Signed-off-by: Jason Rogena <[email protected]>
To avoid the tests from failing when running testinfra, install Ansible 2.7 instead of 2.8 in the .travis.yml file. Related to ansible/molecule#1727 Signed-off-by: Jason Rogena <[email protected]>
* Fix yamlint warning * Replace categories by galaxy tags Fixing: E702: Use 'galaxy_tags' rather than 'categories' FIxing: E701: Role info should contain description * Fix shell set pipefail lines * Fix for molecule inconsistency ansible/molecule#1727 * Fix molecule version * Add flake8 installation * Travis CI moved to python 3.6 Pythton 2.7 will be deprecated at 01.01.2010 * FIx ansible deprecation warning * fix octal file mode checks (to work in both ansible v2.7.x and v2.8.x) * update to latest molecule 2.22rc3 (that fixes flake8 and cerberus dependencies) * update to recent molecule 2.22 stable version
Issue Type
Since 7e92ff823e2bf97ee33c1b7ff87bb8acecb5ae77, molecule doesn't work with ansible devel version.
Error is:
Issue was reported by @maxamillion on #ansible-molecule channel:
The text was updated successfully, but these errors were encountered: