Bug #15223
closed
Killing states on downed gateways breaks when ``Skip rules when gateway is down`` is enabled
Added by Marcos M 10 months ago.
Updated 10 months ago.
Plus Target Version:
24.03
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
in System > Advanced > Miscellaneous
- Set
State Killing on Gateway Failure
to Kill states for all gateways which are down
- Status changed from New to Waiting on Merge
- Assignee set to Marcos M
- Target version set to 2.8.0
- Plus Target Version set to 24.03
- Status changed from Waiting on Merge to Feedback
- % Done changed from 0 to 100
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
The patch only applies to 24.03 since it's dependent on other changes in dev snapshots.
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.
- Status changed from Feedback to Resolved
I am closing this case as resolved.
Also available in: Atom
PDF