Open per-lind opened 9 months ago
is the collection version in the awx execution environment match the one you are running locally? (just to rule out versioning issues)
Checked and both are running version 1.3.0 of google.cloud (that is the version in awx-ee and I guess that is what is used for the inventory sync?)
I have the same problem here. Inventory doesn't work when using folders. But it works when using projects.
Something very strange is that it works on some folders...
I thought it was a permissions problem on my service account, but eventually I eliminated that hypothesis. With the gcloud
commands and the same permissions, the service account can definitely list all tested folders, all projects in folders and all compute instances in projects.
Please confirm the following
security@ansible.com
instead.)Bug Summary
Using the folders variable to the inventory plugin does not work.
AWX version
23.7.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
core 2.15.9 (AWX EE Latest)
Operating system
No response
Web browser
No response
Steps to reproduce
Create a gcp inventory source. Set source variables to
Expected results
All machines from projects in folder added to inventory.
Actual results
Additional information
Using the same config but filtering on projects works.
Using the same config from local machine with ansible and the same service account works.
ansible-inventory --graph -i gcp.yml
Can it be that some GCP variable is set in the background that impacts this?