Skip to content

Commit

Permalink
fence_lpar: Add "Error" in the list of on states
Browse files Browse the repository at this point in the history
When the LPAR crashes it can stay in Error state.

It's no possible to transition to 'Running' state from 'Error' but it's
possible to power off the LPAR. Then for all parctical purposes 'Error'
is an on state.

Fixes: ClusterLabs#610
  • Loading branch information
hramrach committed Feb 4, 2025
1 parent 5d9d6a9 commit 746c755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/lpar/fence_lpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
##
## Transformation to standard ON/OFF status if possible
def _normalize_status(status):
if status in ["Running", "Open Firmware", "Shutting Down", "Starting"]:
if status in ["Running", "Open Firmware", "Shutting Down", "Starting", "Error"]:
status = "on"
else:
status = "off"
Expand Down

0 comments on commit 746c755

Please sign in to comment.