Actions
Bug #15223
closedKilling states on downed gateways breaks when ``Skip rules when gateway is down`` is enabled
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
24.03
Release Notes:
Default
Affected Version:
2.7.2
Affected Architecture:
Description
If the following options are set, states remain on offline gateways which prevents connections from failing over.
- Check
Skip rules when gateway is down
inSystem > Advanced > Miscellaneous
- Set
State Killing on Gateway Failure
toKill states for all gateways which are down
Updated by Marcos M 10 months ago
- Status changed from Waiting on Merge to Feedback
- % Done changed from 0 to 100
Applied in ba90ace48a47086b8db5423f369f1857cf8df34c.
Updated by Danilo Zrenjanin 10 months ago
I was able to replicate the initial behavior as explained here.
After applying the patch, the PHP error below appears in the GUI upon gateway failover. Please check.
* PHP ERROR: Type: 1, File: /etc/inc/filter.inc, Line: 296, Message: Uncaught Error: Call to undefined function get_gateways() in /etc/inc/filter.inc:296 Stack trace: #0 /etc/inc/filter.inc(719): filter_delete_states_for_down_gateways() #1 /etc/rc.filter_configure_sync(32): filter_configure_sync() #2 {main} thrown @ 2024-02-01 14:55:32
Updated by Danilo Zrenjanin 10 months ago
I couldn't replicate the issue on the:
24.03-DEVELOPMENT (amd64) built on Thu Feb 1 6:00:00 UTC 2024 FreeBSD 15.0-CURRENT
I checked Skip rules when gateway is down in System > Advanced > Miscellaneous, and set State Killing on Gateway Failure to Kill states for all gateways which are down.
When the tier1 gateway went down, the state was seamlessly transferred to the tier2 gateway.
Updated by Danilo Zrenjanin 10 months ago
- Status changed from Feedback to Resolved
I am closing this case as resolved.
Actions