question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.2.4 is broken for docker (at least on Travis)

See original GitHub issue

Issue 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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ssbarneacommented, Mar 23, 2021

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.

0reactions
jorhettcommented, Mar 29, 2021

So I’ve discovered the problem. Ansible was installed in the system python, molecule was being installed in user space.

sudo pip3 install ansible
pip3 install molecule[lint,docker]

This used to work in 3.2.3, and stopped working in 3.2.4. Workaround is:

sudo pip3 install ansible
sudo pip3 install molecule[lint,docker]

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found