Browse Source

[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
changes/33/816733/1
Arne Wiebalck 3 months ago
parent
commit
323344e07c
  1. 7
      ironic/conductor/manager.py

7
ironic/conductor/manager.py

@ -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."""

Loading…
Cancel
Save