Bug 229547

Summary: CARP preempt didn't work
Product: Base System Reporter: Nicolas <nicolas>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: Closed Overcome By Events    
Severity: Affects Some People    
Priority: ---    
Version: 11.2-RELEASE   
Hardware: Any   
OS: Any   

Description Nicolas 2018-07-05 18:39:31 UTC
Issue:

When using net.inet.carp.preempt: 1, it's expected router1 move back to MASTER state when it's back online and router2 move to BACKUP state when router1 is back online with MASTER state.


router1

CARP settings: advbase 1 advskew 0

# sysctl -a | grep carp
device	carp
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 240
net.inet.carp.log: 1
net.inet.carp.preempt: 1
net.inet.carp.allow: 1
net.pfsync.carp_demotion_factor: 240
# 

---

router2

CARP settings: advbase 1 advskew 100

# sysctl -a | grep carp
device	carp
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 240
net.inet.carp.log: 1
net.inet.carp.preempt: 0
net.inet.carp.allow: 1
net.pfsync.carp_demotion_factor: 240
# 

---


How reproduce issue:

Shutdown router1, router2 move from BACKUP state to MASTER state.

Start router1

When router1 is back, router1 have BACKUP state and router2 keep MASTER state.
Comment 1 Gleb Smirnoff freebsd_committer freebsd_triage 2024-03-19 18:04:11 UTC
FreeBSD 11.2 reached its End of Life October 31, 2019 and FreeBSD 11 branch
reached EoL September 30, 2021. Closing bug as obsolete.
 
To submitter: if you still exprience the problem on a modern FreeBSD
release, please submit a new bug.