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

FIx permissions /var/lib/awx/projects when projects_persistence is true. #1654

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

paytroff
Copy link

@paytroff paytroff commented Dec 1, 2023

SUMMARY

When 'projects_persistence' is false, permissions /var/lib/awx/projects are 777 with root:root.
When 'projects_persistence' is true, permissions /var/lib/awx/projects are 775 with root:1000.
But the problem is : group id 1000 does not exist in ansible/awx container, so user 'awx' cannot write into /var/lib/awx/projects directory when you sync project in AWX UI.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
ADDITIONAL INFORMATION
Before:
chgrp 1000 /var/lib/awx/projects
After:
chgrp 0 /var/lib/awx/projects

@TheRealHaoLiu
Copy link
Member

can you provide more detail on how you tested your PR

@paytroff
Copy link
Author

paytroff commented Dec 6, 2023

I have rebuilt docker image awx-operator, create an awx instance (with new image operator) with projects_persistence = true, then see which permisions on folder /var/lib/awx/projects were set in awx-task and awx-web pod.
Then in AWX UI, launch a project synchronisation, result was ok.

Do you need more details ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants