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

prerun creates a recursive .cache folder with the role and .cache folder #1504

Closed
VireshDoshi opened this issue Apr 1, 2021 · 3 comments
Closed
Labels

Comments

@VireshDoshi
Copy link

Issue Type

  • Bug report

Molecule and Ansible details

ansible 2.10.7
  config file = /Users/vdoshi/consulting/repos/RHEL7-CIS/ansible.cfg
  configured module search path = ['/Users/vdoshi/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/vdoshi/consulting/repos/RHEL7-CIS/venvp39/lib/python3.9/site-packages/ansible
  executable location = /Users/vdoshi/consulting/repos/RHEL7-CIS/venvp39/bin/ansible
  python version = 3.9.2 (default, Mar 26 2021, 23:22:38) [Clang 12.0.0 (clang-1200.0.32.29)]
molecule 3.3.0 using python 3.9 
    ansible:2.10.7
    delegated:3.3.0 from molecule
    docker:0.2.4 from molecule_docker

Molecule installation method (one of):

molecule is installed using pip3 inside the virtualenv

Ansible installation method (one of):

Ansible is installed inside a virtualenv

Detail any linters or test runners used:

Desired Behavior

When running molecule, I am expecting the .cache directory to only include the role once which i assume is happing during the molecule prerun. ( i don't know how you disbable this?)

Actual Behaviour

running molecule converge
.cache directory contains a recursive folder with .cache-> .cache -> .cache e.t.c

@tadeboro
Copy link
Contributor

tadeboro commented Apr 1, 2021

Thank you, @VireshDoshi, for the issue. Molecule and ansible-lint share the code that is responsible for creating the .cache directory. I will transfer this issue from molecule to ansible-lint repo so that we can properly solve it.

@tadeboro tadeboro transferred this issue from ansible/molecule Apr 1, 2021
@ssbarnea
Copy link
Member

ssbarnea commented Apr 1, 2021

Can you please mention the steps needed to reproduce this bug: clone this repo, run this command,... ?

This seems like a bug we want to fix quickly but we need to reproduce it first.

@ssbarnea ssbarnea added the bug label Apr 1, 2021
@ssbarnea
Copy link
Member

Closing in favour of #1566 which describes the real problem better. The recursive symlinks by itself is not a problem, but pip bug is. I will try to address it asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants