ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
136 stars 156 forks source link

image build failed due to theforeman.foreman collection 3.5.0 #132

Closed TheRealHaoLiu closed 1 year ago

TheRealHaoLiu commented 2 years ago

https://github.com/ansible/awx-ee/actions/runs/2926389137

#16 [builder 5/6] RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt
#16 sha256:93e9345578f60c3ec40fc48c10c7889c9e1f04f977f02498b36bd1e22546a981
#16 0.396 Expected requirements file not present at: /usr/share/ansible/collections/ansible_collections/theforeman/requirements.txt
#16 0.397 FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ansible/collections/ansible_collections/theforeman/foreman/../requirements.txt'
#16 ERROR: executor failed running [/bin/sh -c ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt]: exit code: 1
------
 > [builder 5/6] RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt:
------
executor failed running [/bin/sh -c ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt]: exit code: 1
thedoubl3j commented 2 years ago

this is an issue with the collection that location of the requirements file or the EE.yml file they have. I suspect the issue lies here https://github.com/theforeman/foreman-ansible-modules/blob/develop/meta/execution-environment.yml with the relative paths to the files. I can open a PR with them to get the fix

eirisdg commented 2 years ago

This is related to https://github.com/theforeman/foreman-ansible-modules/issues/1465

A way to fix is temporary set theforeman.foreman to 3.4.0 in _build/requirements.yml

relrod commented 1 year ago

This seems to have been fixed a while back in https://github.com/theforeman/foreman-ansible-modules/pull/1471 - can this be closed now?

thedoubl3j commented 1 year ago

I think it can be @relrod given the foreman issue has been closed.