Repository navigation
test(e2e): run the RustFS object store under OpenShift's restricted SCC - #10949
Merged
Merged
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
mnencia
force-pushed
the
dev/rustfs-openshift-scc
branch
from
June 19, 2026 08:40
7a24ad3 to
03dd7fe
Compare
mnencia
force-pushed
the
dev/rustfs-openshift-scc
branch
4 times, most recently
from
June 19, 2026 09:03
dc6e205 to
628ff97
Compare
fcanovai
approved these changes
Jun 19, 2026
Member
Author
|
/test d=main l=kind ft=backup-restore |
Contributor
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/27816780807 |
The RustFS test object store hardcoded a pod fsGroup of 10001. OpenShift's restricted SCC assigns the pod an arbitrary UID and rejects an out-of-range fsGroup, so the deployment was never admitted and the e2e BeforeSuite hung until the job timed out. Drop the fixed fsGroup so the SCC can assign a compliant UID. On OpenShift the SCC then makes the volumes group-writable through the assigned fsGroup; on kind and the cloud providers, where the PVC is owned by root and no fsGroup is applied, an init container creates the working subdirectories and makes them writable so the non-root RustFS user can use them. The projected TLS certificate now uses the default mode so it can be read under any assigned UID. Assisted-by: Claude Signed-off-by: Marco Nenciarini <[email protected]>
The RustFS object store now uses a busybox init container to prepare its data and log directories, but the image was absent from the helper image catalog. Add it so it is pulled and loaded into the test cluster alongside the other fixture images, rather than fetched from the registry when the pod starts. Signed-off-by: Armando Ruocco <[email protected]>
The projected TLS volume relies on Kubernetes' default 0644 file mode so the non-root RustFS server can read the certificate and key under any UID, which matters now that the pod no longer sets an fsGroup. Add a comment so the mode is not later tightened to a value that would make the files unreadable on clusters that do not assign an fsGroup. Signed-off-by: Armando Ruocco <[email protected]>
mnencia
force-pushed
the
dev/rustfs-openshift-scc
branch
from
June 19, 2026 09:56
ef1f60a to
214da47
Compare
armru
approved these changes
Jun 19, 2026
cnpg-bot
pushed a commit
that referenced
this pull request
Jun 19, 2026
…CC (#10949) The RustFS test object store introduced in #10865 hardcoded a pod `fsGroup` of 10001. OpenShift's restricted SCC assigns the pod an arbitrary UID and rejects an out-of-range `fsGroup`, so no pod was ever admitted, the e2e `SynchronizedBeforeSuite` hung waiting for the object store to become ready, and every OpenShift job ran to the 180-minute timeout with no specs executed. This only surfaces under a restricted SCC, which the community kind-based CI does not exercise. Drop the fixed `fsGroup` so the SCC can assign a compliant UID. On OpenShift the SCC then makes the volumes group-writable through the assigned `fsGroup`. On kind and the cloud providers, where the PVC is root-owned and no `fsGroup` is applied, an init container creates the working subdirectories and makes them writable, so the non-root RustFS user can use them whatever UID it runs as. The projected TLS certificate drops its explicit `0600` mode and uses the default `0644`, so it stays readable when no `fsGroup` is present. This is a test-harness change only; it does not touch the operator or any production manifest. Validated on a live OpenShift 4.21 cluster (the pod is rejected before, runs 1/1 with TLS ready after), against a simulated cloud CSI volume (`root:root 0755`, where an fsGroup-only fix CrashLoops the server with a permission-denied on the data dir), and on a plain kind cluster. Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit 7c92694)
cnpg-bot
pushed a commit
that referenced
this pull request
Jun 19, 2026
…CC (#10949) The RustFS test object store introduced in #10865 hardcoded a pod `fsGroup` of 10001. OpenShift's restricted SCC assigns the pod an arbitrary UID and rejects an out-of-range `fsGroup`, so no pod was ever admitted, the e2e `SynchronizedBeforeSuite` hung waiting for the object store to become ready, and every OpenShift job ran to the 180-minute timeout with no specs executed. This only surfaces under a restricted SCC, which the community kind-based CI does not exercise. Drop the fixed `fsGroup` so the SCC can assign a compliant UID. On OpenShift the SCC then makes the volumes group-writable through the assigned `fsGroup`. On kind and the cloud providers, where the PVC is root-owned and no `fsGroup` is applied, an init container creates the working subdirectories and makes them writable, so the non-root RustFS user can use them whatever UID it runs as. The projected TLS certificate drops its explicit `0600` mode and uses the default `0644`, so it stays readable when no `fsGroup` is present. This is a test-harness change only; it does not touch the operator or any production manifest. Validated on a live OpenShift 4.21 cluster (the pod is rejected before, runs 1/1 with TLS ready after), against a simulated cloud CSI volume (`root:root 0755`, where an fsGroup-only fix CrashLoops the server with a permission-denied on the data dir), and on a plain kind cluster. Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit 7c92694)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RustFS test object store introduced in #10865 hardcoded a pod
fsGroupof 10001. OpenShift's restricted SCC assigns the pod an arbitrary UID and rejects an out-of-rangefsGroup, so no pod was ever admitted, the e2eSynchronizedBeforeSuitehung waiting for the object store to become ready, and every OpenShift job ran to the 180-minute timeout with no specs executed. This only surfaces under a restricted SCC, which the community kind-based CI does not exercise.Drop the fixed
fsGroupso the SCC can assign a compliant UID. On OpenShift the SCC then makes the volumes group-writable through the assignedfsGroup. On kind and the cloud providers, where the PVC is root-owned and nofsGroupis applied, an init container creates the working subdirectories and makes them writable, so the non-root RustFS user can use them whatever UID it runs as. The projected TLS certificate drops its explicit0600mode and uses the default0644, so it stays readable when nofsGroupis present.This is a test-harness change only; it does not touch the operator or any production manifest.
Validated on a live OpenShift 4.21 cluster (the pod is rejected before, runs 1/1 with TLS ready after), against a simulated cloud CSI volume (
root:root 0755, where an fsGroup-only fix CrashLoops the server with a permission-denied on the data dir), and on a plain kind cluster.