Skip to content

Commit 282050a

Browse files
committed
[#3655] Updated ha-maintenance-notify doc
1 parent 65d6b15 commit 282050a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

doc/sphinx/arm/hooks-ha.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,10 +2280,15 @@ previous state. See the :ref:`ha-maintenance` section for details.
22802280
"service": [ "dhcp4" ],
22812281
"arguments": {
22822282
"cancel": false,
2283+
"state": "ready",
22832284
"server-name": "server2"
22842285
}
22852286
}
22862287

2288+
The ``state`` argument informs the recipient about the state of this server. The
2289+
recipient can instantly resume the operation of the state machine without sending
2290+
a heartbeat to check the partner's state.
2291+
22872292
The optional ``server-name`` parameter specifies the name of one of the partners in
22882293
the HA relationship that this command pertains to. This parameter can be omitted if the
22892294
server receiving this command has only one HA relationship in its configuration.

src/share/api/ha-maintenance-notify.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010
"cmd-comment": [
1111
"This command includes a boolean argument which, if false, indicates",
1212
"that the server should transition to the in-maintenance state.",
13-
"If the argument is set to true it instructs the server to revert from",
14-
"the in-maintenance state to its previous state.",
13+
"If the cancel argument is set to true it instructs the server to revert from",
14+
"the in-maintenance state to its previous state. The state argument informs",
15+
"the recipient about the state of this server.",
1516
"This command is not meant to be used by the administrator. It is",
1617
"merely used for internal communication between the HA partners."
1718
],
1819
"cmd-syntax": [
1920
"{",
2021
" \"command\": \"ha-maintenance-notify\",",
2122
" \"arguments\": {",
22-
" \"cancel\": true",
23+
" \"cancel\": true,",
24+
" \"state\": \"ready\"",
2325
" }",
2426
"}"
2527
],

0 commit comments

Comments
 (0)