Skip to content

Conversation

@cbandy
Copy link
Member

@cbandy cbandy commented Apr 29, 2025

The group-write permission is important for persistent file systems in environments where different containers are assigned different UIDs over time. Some network file systems, however, reject attempts to set POSIX directory permissions.

This change adds those details and permission handling to the existing function.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • Bug fix

What is the current behavior (link to any open issues here)?

Repository host pods enter a CrashLoopBackOff when creating pgBackRest directories on CIFS mounts.

What is the new behavior (if this is a feature change)?

Pod startup continues despite CIFS mounts reporting Operation not permitted when creating pgBackRest directories.

Other Information:

Issue: PGO-2417
Fixes #4156

The group-write permission is important for persistent file systems in
environments where different containers are assigned different UIDs
over time. Some network file systems, however, reject attempts to set
POSIX directory permissions. CIFS and NFS are notable in this regard.

Issue: PGO-2417
@cbandy cbandy requested a review from andrewlecuyer April 29, 2025 23:27
@cbandy cbandy linked an issue Apr 29, 2025 that may be closed by this pull request
@andrewlecuyer andrewlecuyer merged commit 70a0682 into CrunchyData:main May 7, 2025
19 checks passed
@cbandy cbandy deleted the cifs-permissions branch May 19, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CIFS Backup Repo not working since Update 5.8.0

2 participants