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

1590 flag to control execution of the chmod/chown on backup data file #1602

Conversation

romankuzmik
Copy link
Contributor

SUMMARY

Depends on a storage driver configured for Backup PVC it might not be possible to change file mode or ownership on the backup file produced. This change introduces new flag that can turn off "chmod/chown".
If we run db-management pod as root, it does not matter that PVC volume mount would allow root group ownership.
Without pod's securityContext/fsGroup specified it would normally be nobody:nobody, instead of root:root. This "chown :root" might fail with some k8s storage drivers.

ISSUE TYPE
  • Bug
ADDITIONAL INFORMATION

See Issue 1590

@chrismeyersfsu
Copy link
Member

@romankuzmik I looked into if there is/was a need for the underlying chmod + chown and I can not find one. I say just change your PR to just delete the chmod + chown task.

https://github.com/ansible/awx-operator/pull/1602/files#diff-e953e7a3d1f04931f56d660f00c5bf9aab9e7f88ab3ece25dc6f9367537ad6f6R78

TheRealHaoLiu added a commit to TheRealHaoLiu/awx-operator that referenced this pull request Dec 13, 2023
@TheRealHaoLiu
Copy link
Member

Put up a PR for removing the chmod/chown altogether #1667

@rooftopcellist
Copy link
Member

@romankuzmik Thank you for the PR, merging these changes in a separate PR here to get it in:

rooftopcellist pushed a commit that referenced this pull request Dec 13, 2023
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.

4 participants