3.2.4 is broken for docker (at least on Travis)
See original GitHub issueIssue Type
- Bug report
Molecule and Ansible details
Ansible 3.0 with Molecule 3.2.4
Ansible and Molecule installation method:
pip3 install molecule[lint,docker]
Detail any linters or test runners used:
Desired Behavior
Travis CI job that worked yesterday with 3.2.3 should work.
Actual Behaviour
As of this morning all CI jobs with molecule are failing on Travis. The breakage happened when 3.2.4 appeared. Reverting to 3.2.3 fixes it. I’m still debugging but it’s hard to iterate usefully on Travis 😦
INFO Sanity checks: 'docker'
ERROR! couldn't resolve module/action 'docker_container'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/travis/virtualenv/python3.8.3/lib/python3.8/site-packages/molecule_docker/playbooks/destroy.yml': line 8, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Destroy molecule instance(s)
^ here
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Common Build Problems - Travis CI Docs
Common Build Problems. My tests broke but were working yesterday; My build script is killed without any error; My build fails unexpectedly; Segmentation...
Read more >Top 20 Dockerfile best practices for security - Sysdig
#1 Avoid unnecessary privileges. These tips follow the principle of least privilege so your service or application only has access to the ...
Read more >Cache docker images on Travis CI - Stack Overflow
As the Docker registry is backed by Cloudfront, Travis is already pulling compressed images from local, or at least close Amazon infrastructure.
Read more >Using Travis CI to test Docker builds - Benjamin Cane
In last months article we discussed “Dockerizing” this blog. What I left out from that article was how I also used Docker Hub's...
Read more >3.5 Docker recipes - CRG Bioinformatics core facility
The last line of installation should be Successfully built …: then you are good to go. Check with docker images that you see...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is not a bug, please use discussions in the future instead of the issue tracker. Installing ansible itself is outside the scope of molecule cli.
So I’ve discovered the problem. Ansible was installed in the system python, molecule was being installed in user space.
This used to work in 3.2.3, and stopped working in 3.2.4. Workaround is:
I fail to understand why molecule will not run from a user-space installation, and why this behavior change was pushed out in a patchfix release?