[Trivial] Clarify conditions under which power recovery is attempted

Be more precise when describing the conditions for automatic
recovery from power failures ('maintenance type' is a term
we use nowhere else).

Change-Id: Iaf14c0fc73f8c97b9d8669485011966a650c21a8
This commit is contained in:
Arne Wiebalck 2021-11-04 17:57:59 +01:00
parent 4bb7e53738
commit 323344e07c
1 changed files with 4 additions and 3 deletions

View File

@ -1512,9 +1512,10 @@ class ConductorManager(base_manager.BaseConductorManager):
conditions are met: conditions are met:
1) Node is mapped to this conductor. 1) Node is mapped to this conductor.
2) Node is in maintenance with maintenance type of power failure. 2) Node is in maintenance.
3) Node is not reserved. 3) Node's fault field is set to 'power failure'.
4) Node is not in the ENROLL state. 4) Node is not reserved.
5) Node is not in the ENROLL state.
""" """
def handle_recovery(task, actual_power_state): def handle_recovery(task, actual_power_state):
"""Handle recovery when power sync is succeeded.""" """Handle recovery when power sync is succeeded."""