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

Inventory Variables Not Updating #14391

Closed
5 of 11 tasks
scottlarnach opened this issue Aug 29, 2023 · 2 comments
Closed
5 of 11 tasks

Inventory Variables Not Updating #14391

scottlarnach opened this issue Aug 29, 2023 · 2 comments

Comments

@scottlarnach
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

We define a number of variables in our hosts files and in AWX they are displayed in the Variables section of the Details tab, under Resources > Inventories. We were facing strange issues running jobs in AWX, which worked in the CLI, and discovered these variables aren't updating after a commit and project/inventory sync.

Under the inventory details, if I manually click Edit, remove the Variables, Save and then re-sync, only then do the variables update with the latest revision.

AWX version

22.3.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

2.12.0

Operating system

Ubuntu 22.04.2

Web browser

No response

Steps to reproduce

Create hosts file, define hosts and define vars for the hosts.

Sync project in AWX and view Variables under Resources > Inventories, select inventory > Details tab

Update/Add/Remove variables in hosts file and sync project again, view Variables again - they will not be updated.

Click Edit and manually remove Variables, re-sync project and updated variables will now be used in AWX.

Expected results

When variables in hosts file are updated, AWX should update these after a project/inventory sync.

Actual results

When variables in hosts files are updated, AWX does not update these after a project/inventory sync, the Variables only update if the field is empty in AWX.

Additional information

No response

@djyasin
Copy link
Member

djyasin commented Aug 30, 2023

@scottlarnach we would like to gather a bit more information from you. Could you please provide us with screenshots of the behavior you are experiencing and some more information about the steps you are taking to produce this behavior?

Thank you for your time!

@scottlarnach
Copy link
Author

@djyasin thanks for getting back to me, I went to get the screenshots and now bizarrely can't replicate the issue. Very strange, as I sat with my colleague watching it happen before!

I'll close for now and raise again if it reappears in the future. Thanks

@scottlarnach scottlarnach closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants