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

[WIP] run Ansible sanity tests against AWX collection #5004

Closed
wants to merge 1 commit into from

Conversation

AlanCoding
Copy link
Member

Connect #4892

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

@AlanCoding
Copy link
Member Author

Well I was able to get this to run with having root privileges, but we don't have that for these tests. Basically we have to have a python3 Ansible virtual environment (a real one, not the hacked one I have used before).

I also suspect that the distributed version of Ansible from the rpm we have in the container just doesn't have the ansible_test package installed. It has the CLI entry point. That leaves me kind of stuck on this error:

Traceback (most recent call last):
  File "/usr/bin/ansible-test", line 28, in <module>
    main()
  File "/usr/bin/ansible-test", line 22, in main
    from ansible_test._internal.cli import main as cli_main
ImportError: No module named ansible_test._internal.cli

This can be remedied by re-installing from git+https://github.com/ansible/ansible.git. That's also not really okay to do, because we're sharing this image with other uses that want to the version of Ansible that would be used in production. So we have to have a different container image for theses tests, or just abandon hope of running them in CI. I could still be wrong about this point.

With a different install of Ansible, I can run the target as it is. Doing that and fixing the errors will turn into the current near-term plan.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@AlanCoding AlanCoding closed this Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant