File: oci.conf.5

package info (click to toggle)
slurm-wlm-contrib 24.11.5-4
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 50,600 kB
  • sloc: ansic: 529,598; exp: 64,795; python: 17,051; sh: 9,411; javascript: 6,528; makefile: 4,030; perl: 3,762; pascal: 131
file content (298 lines) | stat: -rw-r--r-- 6,974 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
.TH "oci.conf" "5" "Slurm Configuration File" "February 2024" "Slurm Configuration File"

.SH "NAME"
oci.conf \- Slurm configuration file for containers.

.SH "DESCRIPTION"
Slurm supports calling OCI compliant runtimes. \fBoci.conf\fP is an ASCII
file which defines parameters used by OCI runtime interface.
The file will always be located in the same directory as the \fBslurm.conf\fR.

.LP
Parameter names are case insensitive.
Any text following a "#" in the configuration file is treated
as a comment through the end of that line.
Changes to the configuration file take effect upon restart of Slurm daemons.

.SH "PARAMETERS"
.LP
The following oci.conf parameters are defined to control the behavior
of the \fB\-\-container\fR argument of \fBsalloc\fR, \fBsrun\fR, and \fBsbatch\fR

.TP
\fBContainerPath\fR
Override path pattern for placement of the generated OCI Container bundle
directory. See the section \fBOCI Pattern\fR for details on pattern
replacement.
.sp
Default is unique directory generated in \fBSlurmdSpoolDir\fR.
.IP

.TP
\fBCreateEnvFile=(null|newline|disabled)\fR
Create environment file for container. File will have one environment variable
per line if value is "newline". File will have each environment
variable terminated by a NUL (aka '\\0') if value is "null". If value
is "disabled", then the environment file will not be created.

Value of "true" is treated as "null" for backwards compatibility.
Value of "false" is treated as "disabled" for backwards compatibility.

Note: When CreateEnvFile=newline, any environment variables with a newline will
be dropped before writing to the environment file.
.sp
Default is "disabled".
.IP

.TP
\fBDebugFlags\fR
Override debug flags during container operations. See \fBdebugflags\fR in
\fBslurm.conf\fR.
.sp
Default: (disabled)
.IP

.TP
\fBDisableCleanup\fR
Disable removal of the generated files handed to OCI runtime.
.sp
Default: false
.IP

.TP
\fBDisableHooks\fR
Comma separated list of hook types to disable.
.sp
Default: allow all hooks.
.IP

.TP
\fBEnvExclude\fR
Extended regular expression to filter environment before. This allows for
excluding variables to avoid unwanted environment variables inside of
containers.
.sp
Example: \fBEnvExclude\fR="^(SLURM_CONF|SLURM_CONF_SERVER)="
.sp
Default does not exclude any environment variables.
.IP

.TP
\fBMountSpoolDir\fR
Override pattern for path inside of container to mount \fBContainerPath\fR. See
the section \fBOCI Pattern\fR for details on pattern replacement.
.sp
Default: /var/run/slurm/
.IP

.TP
\fBRunTimeEnvExclude\fR
Extended regular expression to filter environment before calling any
\fBRunTime*\fR commands. This allows for excluding variables to avoid unwanted
inheritance inside of the OCI runtimes.
.sp
Example: \fBRunTimeEnvExclude\fR="^(SLURM_CONF|SLURM_CONF_SERVER)="
.sp
Default is not exclude any environment variables.
.IP

.TP
\fBFileDebug\fR
Override default file logging level during container operations. See
\fBSlurmdDebug\fR in \fBslurm.conf\fR.
.sp
Default: (disabled)
.IP

.TP
\fBIgnoreFileConfigJson=(true|false)\fR
Ignore the existence of config.json in OCI bundle path and disable loading
config.json if it is present.
.sp
Default is false.
.IP

.TP
\fBRunTimeCreate\fR
Pattern for OCI runtime create operation. See the section \fBOCI Pattern\fR
for details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBRunTimeDelete\fR
Pattern for OCI runtime delete operation. See the section \fBOCI Pattern\fR
for details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBRunTimeKill\fR
Pattern for OCI runtime kill operation. See the section \fBOCI Pattern\fR
for details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBRunTimeQuery\fR
Pattern for OCI runtime query operation (also known as state). See the section
\fBOCI Pattern\fR for details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBRunTimeRun\fR
Pattern for OCI runtime run operation. This is not provided in the OCI runtime
specification (<=v1.0) but is provided by multiple OCI runtimes to simplify
execution of containers. If provided, it will be used in the place of create
and start operations. It avoids the need to poll state of the container
resulting in less monitoring overhead. See the section \fBOCI Pattern\fR for
details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBRunTimeStart\fR
Pattern for OCI runtime start operation. See the section \fBOCI Pattern\fR
for details on pattern replacement.
.sp
Default: (disabled)
.IP

.TP
\fBSrunPath\fR
Absolute path to srun executable.
.sp
Default: (search PATH)
.IP

.TP
\fBSrunArgs\fR
Additional arguments to pass to srun. Add one \fBSrunArgs\fR entry per
argument.
.sp
Default: (disabled)
.IP

.TP
\fBStdIODebug\fR
Override default STDIO logging level during container operations. See
\fBSlurmdDebug\fR in \fBslurm.conf\fR.
.sp
Default: (disabled)
.IP

.TP
\fBSyslogDebug\fR
Override default syslog logging level during container operations. See
\fBSlurmdSyslogDebug\fR in \fBslurm.conf\fR.
.sp
Default: (disabled)
.IP

.SH "NOTES"
.LP
OCI container support is disabled if oci.conf does not exist. If disabled, any
user passing \fB\-\-container\fR will be doing so in a purely advisor manner.

.SH "OCI Pattern"

All of the OCI patterns will replace the following characters:
.LP
\fBReplacements\fR:

.TP
\fB%%\fR
Replace as "%".
.IP

.TP
\fB%@\fR
Replace as the command and arguments. Each argument will be
enclosed with single quotes and escaped.
.IP

.TP
\fB%b\fR
Replace as OCI Bundle Path.
.IP

.TP
\fB%e\fR
Replace as path to file containing environment if
\fBCreateEnvFile=true\fR.
.IP

.TP
\fB%j\fR
Replace as numeric job id.
.IP

.TP
\fB%m\fR
Replace as spool directory of container as patterned by \fBContainerPath\fR. If
\fBContainerPath\fR is not configured or \fBContainerPath\fR contains \fB%m\fR,
then replace with \fBSlurmdSpoolDir\fR from \fBslurm.conf\fR(5).
.IP

.TP
\fB%n\fR
Replace as nodename.
.IP

.TP
\fB%p\fR
Replace as PID of first processes forked off. Only for use in \fBRunTimeKill\fR
or \fBRunTimeDelete\fR.
.IP

.TP
\fB%r\fR
Replace as original path to rootfs.
.IP

.TP
\fB%s\fR
Replace as numeric step id.
.IP

.TP
\fB%t\fR
Replace as numeric step task id.
.IP

.TP
\fB%u\fR
Replace as user name.
.IP

.TP
\fB%U\fR
Replace as numeric user id.
.IP

.SH "COPYING"
Copyright (C) 2021 SchedMD LLC.

.LP
This file is part of Slurm, a resource management program.
For details, see <https://slurm.schedmd.com/>.
.LP
Slurm is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
.LP
Slurm is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

.SH "SEE ALSO"
.LP
\fBslurm.conf\fR(5)