Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.20 #14410 +/- ##
=========================================
Coverage 16.41% 16.41%
- Complexity 13657 13663 +6
=========================================
Files 5669 5669
Lines 501628 501633 +5
Branches 60942 60943 +1
=========================================
+ Hits 82336 82366 +30
+ Misses 410064 410041 -23
+ Partials 9228 9226 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| } | ||
| anyPoolHasHeartBeat = anyPoolHasHeartBeat || poolHasHeartBeat; | ||
| } | ||
| return anyPoolHasHeartBeat; |
There was a problem hiding this comment.
should an empty pool list count as a dead host? the comment above says we return true when we cant tell, and the fence path already bails out when there are no pools
There was a problem hiding this comment.
Yes - with an empty pool list host would be marked Down. This is existing behaviour and unchanged by this PR, which only fixes the result being taken from the last pool.
Damans227
left a comment
There was a problem hiding this comment.
thanks @Pearl1594, fix looks right. LGTM



Description
KVMHACheckerdecides whether a host's storage heartbeat is alive across all of its HA-enabled primary storage pools. Withkvm.ha.fence.on.storage.heartbeat.failure=false(the default), the loop overwrote its result on every iteration, so only the last pool in the list decided the outcome:With a single pool, or with the setting
true, behaviour is unchanged. The change only affects hosts with multiple HA pools and the setting atfalse. Now, with setting as false, KVMHAChecker reports the host as dead only when every pool has no heartbeat.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?