Commit 9299c99
fix: Fix ACL SAVE when using ACL from PVC (#1645)
Redis always rewrites ACLs (and redis.conf, RDB, AOF) via the same pattern: write a temp file alongside the target, fsync, then rename(2) over the original.
Because user.acl is mounted via subPath, Kubernetes turns that single file into its own bind mount.
Bind mounts behave like a mini mount point, and Linux forbids rename(2) on a mount target—exactly what Redis tries to do during ACL SAVE (it writes tempfile + rename).
The kernel therefore returns EBUSY, which surfaces as “Resource busy”.
The PR is fixing this behavior, by mounting the PVC as directory under the /data/redis.
Signed-off-by: Damian Seredyn <s-DSeredyn@aras.com>
Co-authored-by: Damian Seredyn <s-DSeredyn@aras.com>1 parent 76d40b0 commit 9299c99
File tree
16 files changed
+147
-36
lines changed- api/common/v1beta2
- charts/redis-operator/crds
- config/crd/bases
- docs/content/en/docs/CRD Reference/API Reference
- example/v1beta2/acl-pvc
- internal
- agent/bootstrap
- redis
- sentinel
- k8sutils
- tests/e2e-chainsaw/v1beta2/acl-pvc
- redis-cluster
- redis-replication
- redis-standalone
16 files changed
+147
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
5544 | 5545 | | |
5545 | 5546 | | |
5546 | 5547 | | |
5547 | | - | |
| 5548 | + | |
| 5549 | + | |
5548 | 5550 | | |
5549 | 5551 | | |
5550 | 5552 | | |
| |||
13393 | 13395 | | |
13394 | 13396 | | |
13395 | 13397 | | |
13396 | | - | |
| 13398 | + | |
| 13399 | + | |
13397 | 13400 | | |
13398 | 13401 | | |
13399 | 13402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments