This repository was archived by the owner on Jul 7, 2020. It is now read-only.
Commit 1263c3c
deploy: add volume mounts for /sys/class and /sys/module
gluster-block (or rather tcmu-runner) uses /sys/class/uio to create new
/dev/uioN devices. For this, it needs write access to /sys/class. The
actual /sys/class/uio only exists after the kernel modules are loaded,
which can happen during starting of the services in the glusterfs-server
container. Therefor it is not possible to bind-mount /sys/class/uio
only.
In addition to /sys/class/uio, tcmu-runner toggles kernel parameters
through writing to /sys/module/target_core_user/parameters/* files. This
path is also only available once the target_core_user kernel module is
loaded, which can be done during runtime. /sys/module is the only path
that is guaranteed to be available when the container starts.
See-also: https://bugzilla.redhat.com/1653571
Signed-off-by: Niels de Vos <ndevos@redhat.com>1 parent 20f39c4 commit 1263c3c
File tree
2 files changed
+20
-0
lines changed- deploy
- kube-templates
- ocp-templates
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
0 commit comments