Merge "[Trivial] Clarify conditions under which power recovery is attempted"

This commit is contained in:
Zuul 2021-11-15 18:52:28 +00:00 committed by Gerrit Code Review
commit c590db6d53
1 changed files with 4 additions and 3 deletions

View File

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