Open maveleo opened 2 years ago
Looks like the source Sync is happening on the default IG only and will remain pending when configured to run on the controlplane IG Now the problem of the default IG is that it does not have any of the configurations applied to the EE defined for the controlplane IG.
@AlanCoding you mind taking a look at this and weighing in with your thoughts or debugging suggestions?
Looks like the source Sync is happening on the default IG only and will remain pending when configured to run on the controlplane IG
Yeah, on openshift all jobs and inventory updates are intended to run as container group jobs. On the controlplane, only the controlplane EE should be used.
I'm following your train of thought here. The project files appear to not be there.
In k8s the source sync is happening on a pod that does not have access to the projects location and for this reason it cannot work with a project synchronization My workaround was to persist the projects and customise the pod that kubernettes spins up to run the source sync, basically I am mounting for that pod the same location used to store the projects directory.
Considering if https://github.com/ansible/awx-operator/issues/796 is related to this issue, even though it's a different error.
@maveleo is this still an issue. Quite old AWX versions now, so was looking for an update.
We will have to plan an upgrade and see if it works now but I doubt it will unless the design has not changed. The problem I faced was by design, the pod that is spinned up to execute the update of the inventory has no visibility of the content downloaded from the project that is sourced from git.
On Wed, 18 May 2022, 19:01 Phil Griffiths, @.***> wrote:
@maveleo https://github.com/maveleo is this still an issue. Quite old AWX versions now, so was looking for an update.
— Reply to this email directly, view it on GitHub https://github.com/ansible/awx/issues/11542#issuecomment-1130329226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYVOFRWLP5J3PGHRV3TCU3VKUV77ANCNFSM5L6QHZSA . You are receiving this because you were mentioned.Message ID: @.***>
Please confirm the following
Summary
Not possible to create an inventory sourced from a git project.
AWX version
19.4.0
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
RHEL 8
Web browser
Chrome
Steps to reproduce
Create a project that points to a GIT repository with the inventory definition Sync the project Create an inventory with a source that references the above project Select the inventory file from the drop down menu Click Sync
Expected results
Inventory source sync succeed, inventory created with groups and hosts
Actual results
Inventory source sync has errors and the inventory is not created/updated
Additional information
I have noticed that the worker pod being created does not have any volume references to the projects directory. Also the custom ansible.cfg being defined for the ee_environment does not get loaded in the worker node.