Follow up to available node protection

Turns [deploy]allow_deleting_available_nodes to a mutable option,
so that it can be changed without service restart.

Change-Id: Ia6d51994441ec7367bc2eba76c47d5f3c425a837
Story: 2005060
Task: 29604
This commit is contained in:
Kaifeng Wang 2019-03-13 09:44:21 +08:00
parent edb5a60331
commit 7e9ff1d6bf
2 changed files with 2 additions and 1 deletions

View File

@ -201,6 +201,7 @@ opts = [
'"conductor_group" field set on the node.')),
cfg.BoolOpt('allow_deleting_available_nodes',
default=True,
mutable=True,
help=_('Allow deleting nodes which are in state '
'\'available\'. Defaults to True.')),
]

View File

@ -9,4 +9,4 @@ features:
bring nodes into this state). For backwards compatibility reasons, the
default value for this option is True. The other states in which nodes
can be deleted from ironic ('manageable', 'enroll', and 'adoptfail')
remain unchanged.
remain unchanged. This option can be changed without service restart.