Skip to content

Commit 1dd7183

Browse files
authored
Merge pull request #478 from garlick/rfc44_undrain_overwrite
rfc44: add undrain overwrite key
2 parents dc45e35 + ca9d789 commit 1dd7183

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

spec_44.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,34 @@ The event context SHALL contain the following keys:
276276
277277
(*string*, OPTIONAL) A message describing why the undrain action was taken.
278278
279+
.. data:: overwrite
280+
:noindex:
281+
282+
(*integer*, OPTIONAL) Select how this event is applied if the nodes are
283+
already undrained. The value SHALL be one of:
284+
285+
0
286+
Update nothing. Use this value if the nodes are known to be drained.
287+
288+
1
289+
Update the reason but not the timestamp.
290+
291+
2
292+
Update the reason and the timestamp.
293+
294+
If this key is not present, it should be treated the same as if it
295+
were present with a value of 0.
296+
279297
.. code:: json
280298
281299
{
282300
"timestamp": 1734395501.1793933,
283301
"name": "undrain",
284302
"context": {
285303
"idset": "0",
286-
"nodelist": "picl0"
304+
"nodelist": "picl0",
305+
"reason": "node was rebooted",
306+
"ovewrite": 0
287307
}
288308
}
289309

0 commit comments

Comments
 (0)