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

Version ansible-lint 6.8.6 using ansible 2.13.5 broke #2673

Closed
maxamillion opened this issue Nov 11, 2022 · 4 comments
Closed

Version ansible-lint 6.8.6 using ansible 2.13.5 broke #2673

maxamillion opened this issue Nov 11, 2022 · 4 comments
Assignees
Labels

Comments

@maxamillion
Copy link

Summary
$(ansible)  ansible-lint --version
ansible-lint 6.8.6 using ansible 2.13.5

$(ansible)  ansible-lint
WARNING  Retrying execution failure 250 of: ansible-galaxy collection install -v --force -p /home/admiller/.cache/ansible-compat/42cc84/collections .
ERROR    Command returned 250 code:
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'osbuild.composer:0.0.1' to '/home/admiller/.cache/ansible-compat/42cc84/collections/ansible_collections/osbuild/composer'
to see the full traceback, use -vvv

ERROR! Unexpected Exception, this is probably a bug: [Errno 2] No such file or directory: 'MANIFEST.json'

WARNING  Retrying execution failure 250 of: ansible-galaxy collection install -v --force -p /home/admiller/.cache/ansible-compat/42cc84/collections .
ERROR    Command returned 250 code:
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'osbuild.composer:0.0.1' to '/home/admiller/.cache/ansible-compat/42cc84/collections/ansible_collections/osbuild/composer'
to see the full traceback, use -vvv

ERROR! Unexpected Exception, this is probably a bug: [Errno 2] No such file or directory: 'osbuild_setup_server.yml'

WARNING  Retrying execution failure 250 of: ansible-galaxy collection install -v --force -p /home/admiller/.cache/ansible-compat/42cc84/collections .
ERROR    Command returned 250 code:
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'osbuild.composer:0.0.1' to '/home/admiller/.cache/ansible-compat/42cc84/collections/ansible_collections/osbuild/composer'
to see the full traceback, use -vvv

ERROR! Unexpected Exception, this is probably a bug: [Errno 2] No such file or directory: 'vars'

Command returned 250 code:
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'osbuild.composer:0.0.1' to '/home/admiller/.cache/ansible-compat/42cc84/collections/ansible_collections/osbuild/composer'
to see the full traceback, use -vvv

ERROR! Unexpected Exception, this is probably a bug: [Errno 2] No such file or directory: 'MANIFEST.json'

However, ansible-lint 6.8.4 works just fine:

$(ansible)  ansible-lint --version
ansible-lint 6.8.4 using ansible 2.13.5
A new release of ansible-lint is available: 6.8.4 → 6.8.6 Upgrade by running: pip install --upgrade ansible-lint

$(ansible)  ansible-lint
WARNING  Listing 61 violation(s) that are fatal
yaml[indentation]: Wrong indentation: expected 2 but found 0
galaxy.yml:20

yaml[comments]: Missing starting space in comment
galaxy.yml:30

yaml[comments]: Missing starting space in comment
galaxy.yml:31

.... OUTPUT OMITTED FOR BREVITY .....
Issue Type
  • Bug Report
Ansible and Ansible Lint details
ansible --version

ansible-lint --version
  • ansible installation method: one of source, pip, OS package
  • ansible-lint installation method: one of source, pip, OS package
OS / ENVIRONMENT

Fedora 36
Python 3.10.7

STEPS TO REPRODUCE

When running ansible-lint version 6.8.6, do the following:

mkdir -p ~/ansible_collections/osbuild/
cd ~/ansible_collections/osbuild/
git clone https://github.com/ansible-collections/osbuild.composer composer
cd composer
ansible-lint
Desired Behavior

ansible-lint to work :)

Actual Behavior

listed above

@maxamillion maxamillion added bug new Triage required labels Nov 11, 2022
@ssbarnea ssbarnea self-assigned this Nov 11, 2022
@gygitlab
Copy link

I'm also seeing this. It's like the process is trying to install the galaxy collection of the repository itself.

Offline mode seems to workaround for now.

@ssbarnea
Copy link
Member

@maxamillion Based on some tests, this error might come from Python itself but I proposed ansible/ansible#79409 to make the rmdir bit more resilient to such errors.

@ssbarnea ssbarnea removed the new Triage required label Nov 18, 2022
ssbarnea added a commit to ssbarnea/ansible-lint that referenced this issue Nov 18, 2022
ssbarnea added a commit that referenced this issue Nov 19, 2022
@ssbarnea
Copy link
Member

Please let me know if you can reproduce the problem using the newer 6.9.0 release.

@SirUli
Copy link
Contributor

SirUli commented Nov 24, 2022

@ssbarnea since i faced the same in #2651 i can at least report that this is fixed for me with v6.9.0. Thanks for your help on this!

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

4 participants