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.

Collection resources not autodetected in v3.5.x

See original GitHub issue

Issue Type

Custom resources installed from a collection during the molecule run are not detected anymore in 3.5.x; the same setup works in v3.4.x

Collection is successfully installed:

Downloading https://gitea.rknet.org/ansible/xoxys.general/releases/download/v2.1.1/xoxys-general-2.1.1.tar.gz to ~/.ansible/tmp/ansible-local-286064kpbiuuus/tmpt5xycanp/xoxys-general-2.1.1-oak5owje
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'xoxys.general:2.1.1' to '~/.cache/molecule/xoxys.iptables/default/collections/ansible_collections/xoxys/general'
xoxys.general:2.1.1 was installed successfully
INFO     Dependency completed successfully.

Example error:

TASK [xoxys.iptables : include_tasks] ******************************************
fatal: [centos7-iptables]: FAILED! => {"reason": "couldn't resolve module/action 'iptables_raw'. This often indicates a misspelling, missing collection, or incorrect module path.

Downgrading to v3.4.x works

Molecule and Ansible details

ansible [core 2.11.3] 
  config file = None
  configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = ~/.local/pipx/venvs/ansible/lib64/python3.9/site-packages/ansible
  ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
  executable location = ~/.local/bin/ansible
  python version = 3.9.7 (default, Aug 30 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)]
  jinja version = 3.0.1
  libyaml = True
molecule 3.5.1 using python 3.9 
    ansible:2.11.3
    delegated:3.5.1 from molecule

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • pip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
klj613commented, Sep 22, 2021

I think I’m getting the same/similar error.

Haven’t verified it but I think its to do with this line being removed: https://github.com/ansible-community/molecule/pull/3190/files#diff-32abfdacc4eeea878460d3bf0ae452ab074ca485bab0b0a01b3bb07775ac002dL460

3reactions
mafalbcommented, Dec 10, 2021

It’s fixed in source, but it is still not in any released version. Me kindly asking when this will be in a release?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid template errors - Azure Resource Manager
Describes how to resolve invalid template errors when deploying Bicep files or Azure Resource Manager templates (ARM templates).
Read more >
Debt Collection Rule FAQs
The questions and answers below pertain to compliance with the Debt Collection Rule. This is a Compliance Aid issued by the Consumer Financial...
Read more >
Debt Collection & Debt Collection Scams - State of Michigan
This list is non-exhaustive and if you believe you are being or have been harassed by a debt collector, file a complaint with...
Read more >
Specimen Collection - Norovirus - CDC
Norovirus can sometimes be detected in stool specimens that are collected later ... Serum specimens are not recommended for routine laboratory diagnosis of ......
Read more >
17. Web MVC framework - Spring
This is not a specific feature of Spring MVC itself, but rather of the ... is detected and automatically used to initialize any...
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