-
Notifications
You must be signed in to change notification settings - Fork 20
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: fix plugins dir #22
base: master
Are you sure you want to change the base?
Conversation
https://github.com/ansible/awx/blob/devel/installer/roles/kubernetes/templates/configmap.yml.j2#L128-L207 that's how the file looks in the awx kubernetes install - that's where I copied the last version from :D |
I could never get the proot working though: #7 |
Ahh nifty! Ehm - I ended up creating a box with docker-compose and running that to look and compare at what was different - I spent a bit too long today thinking this was an upstream issue. XD Unfortunately now it can pull the inventory (just tested ec2 as well and it looks ok but I have nothing in that account to really confirm) but I have an issue displaying the hosts. Still doing a bit of log watching and click testing but the short is that going to the inventory and hitting hosts throws an error (Invalid search term entered. GET returned: -1) , going to a group and then trying the hosts gives same. BUT going to a group, then... not sure I think repeating/cycling allows you to see the hosts IN the group. podman logs awx-awx_awxweb gives me some output to start hunting though. Going to check other sources first and see if a.) they work & b.) whether the individual host issue is common |
I am not sure how to test this, just had a quick look at the tower docs for the AWX_PROOT_ENABLED flag and I've set it to true in my current env. restarting pod is OK, re-running inventory is ok, rebooting fully and re-running inventory is OK. BUT - In earlier troubleshooting I pulled some k8s params from an ansible/awx issue that I now cannot find. Kinda unhappy about them to begin with as I * think* it looks a bit excessive, but I have this added in the awx.yml for both web and task:
|
Where is it described what you should do and why? I'm not familiar of the topic, but perhaps I could help with the podman part. Are you trying to set up permanent project directory from host? Why do you require root? Any docs about the subject? |
I had a little look this morning and it appears that the reason I am getting errors viewing hosts for the VMWare inventory is due to incorrect directory permissions in the awxweb container. Specifically the /var/lib/nginx has root:root but needs nginx:root. My other thought was to set that dir as a mounted volume which should allow the perms to be changed reasonably easily |
haha - woops! OK that works but ... I don't like it much. Still confused as to why the owner of that dir gets changed to root :/. I am also surprised that I didn't see similar errors due to it (although I have not actually used this much.) |
Still working on this but trying to get the dynamic inventory plugins to work neatly.
So far this allows the vmware_vm_inventory plugin to run (have not tested others) although there is a bug viewing individual hosts.