Project

General

Profile

Actions

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.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Gateways
Target version:
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 in System > Advanced > Miscellaneous
  • Set State Killing on Gateway Failure to Kill states for all gateways which are down
Actions #1

Updated by Marcos M 10 months ago

  • 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
Actions #2

Updated by Marcos M 10 months ago

  • Status changed from Waiting on Merge to Feedback
  • % Done changed from 0 to 100
Actions #3

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
Actions #4

Updated by Marcos M 10 months ago

The patch only applies to 24.03 since it's dependent on other changes in dev snapshots.

Actions #5

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.

Actions #6

Updated by Danilo Zrenjanin 10 months ago

  • Status changed from Feedback to Resolved

I am closing this case as resolved.

Actions

Also available in: Atom PDF