Skip to content

Commit

Permalink
Catch case where all the faulty computes are dumping
Browse files Browse the repository at this point in the history
In case all the stale_computes are kdumping we want to make sure
the check_kdump function returns an empty list, otherwise they may
be evacuated without waiting the dump to be collected.

Co-authored-by: Antonio Romito <[email protected]>
  • Loading branch information
lmiccini and antonioromito committed Oct 4, 2024
1 parent 384baa6 commit 6ad2262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/instanceha/bin/instanceha.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ def _check_kdump(stale_services):

if broken_computes:
stale_services = [service for service in stale_services if service.host in broken_computes]
else:
stale_services = []

return stale_services

Expand Down

0 comments on commit 6ad2262

Please sign in to comment.