fix HA logic bug

Description

25.04 PR: https://github.com/truenas/middleware/pull/14820

This fixes a bug in our HA logic whereby we're mistakenly ignoring interfaces that are marked critical for failover (treating them as non-critical for failover).

The explanation is simple and I'm surprised we're only now seeing this issue. I check to see if the left operand is `in` the right operand. This means left operand strings with a value of `ens4` will evaluate to true if the right side of the operand is of string `ens4d1`.

The solution is to make sure the left and right operands are equivalent.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk October 31, 2024 at 12:55 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk October 31, 2024 at 12:54 PM

Bug Clerk October 31, 2024 at 12:20 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk October 31, 2024 at 12:19 PM

Bug Clerk October 31, 2024 at 9:17 AM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Katalon Platform

Created October 30, 2024 at 7:37 PM
Updated November 5, 2024 at 9:06 PM
Resolved October 31, 2024 at 12:55 PM