Skip to content
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

ansible-test sanity failing with "No module named 'jinja2'" #68530

Closed
geerlingguy opened this issue Mar 28, 2020 · 1 comment · Fixed by #68531
Closed

ansible-test sanity failing with "No module named 'jinja2'" #68530

geerlingguy opened this issue Mar 28, 2020 · 1 comment · Fixed by #68531
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. traceback This issue/PR includes a traceback.

Comments

@geerlingguy
Copy link
Contributor

geerlingguy commented Mar 28, 2020

SUMMARY

In the Kubernetes collection's CI tests, the sanity check, which uses ansible-test sanity --docker -v --color --python 3.6, started failing with the following error:

ERROR: Command "importer.py" returned exit status 1.
>>> Standard Error
Traceback (most recent call last):
  File "/root/ansible/ansible_collections/community/kubernetes/tests/output/.tmp/sanity/import/minimal-py36/bin/importer.py", line 447, in <module>
    main()
  File "/root/ansible/ansible_collections/community/kubernetes/tests/output/.tmp/sanity/import/minimal-py36/bin/importer.py", line 51, in main
    from ansible.utils.collection_loader import AnsibleCollectionLoader
  File "/root/ansible/lib/ansible/utils/collection_loader.py", line 15, in <module>
    from ansible import constants as C
  File "/root/ansible/lib/ansible/constants.py", line 12, in <module>
    from jinja2 import Template
ModuleNotFoundError: No module named 'jinja2'

Nothing in the collection has changed in the past week, and no runs failed until this morning's CI run, so it seems something committed to ansible/ansible devel has caused this failure.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ansible-test

ANSIBLE VERSION

devel (as of this morning)

CONFIGURATION

N/A - defaults

OS / ENVIRONMENT

Linux

STEPS TO REPRODUCE
  1. Clone kubernetes collection repo
  2. Install Ansible @ devel
  3. Run ansible-test sanity --docker -v --color --python 3.6
EXPECTED RESULTS

Tests should pass, as they have for the past few weeks.

ACTUAL RESULTS

Test fail, with the message in this issue's summary.

@ansibot
Copy link
Contributor

ansibot commented Mar 28, 2020

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. traceback This issue/PR includes a traceback. labels Mar 28, 2020
odyssey4me added a commit to ansible-collections/community.libvirt that referenced this issue Mar 28, 2020
Also use ansible from the temp-2.10-devel branch to work around
issues caused by some changes in the devel branch. See [a] for
more details.

[a] ansible/ansible#68530
odyssey4me added a commit to ansible-collections/community.libvirt that referenced this issue Mar 28, 2020
Also use ansible from the temp-2.10-devel branch to work around
issues caused by some changes in the devel branch. See [a] for
more details.

[a] ansible/ansible#68530
odyssey4me added a commit to ansible-collections/community.rabbitmq that referenced this issue Mar 28, 2020
Also use ansible from the temp-2.10-devel branch to work around
issues caused by some changes in the devel branch. See [a] for
more details.

[a] ansible/ansible#68530
@mattclay mattclay removed the needs_triage Needs a first human triage before being processed. label Mar 28, 2020
@mattclay mattclay added this to To do in Testing Collections via automation Mar 28, 2020
@mattclay mattclay moved this from To do to Done in Testing Collections Apr 15, 2020
@ansible ansible locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. traceback This issue/PR includes a traceback.
Projects
Development

Successfully merging a pull request may close this issue.

3 participants