On 28/09/2009 04:28, Steven Surdock wrote:
Hmmm... I just upgraded a pair from 4.4 to 4.5 and I think I am having
the same problem you are seeing. Interestingly, I had a problem with
the upgrade a couple days ago and left ifstated running. It
transitioned, but not when I expected.
FORCE FAILOVER
Sep 25 13:56:31 fw2 /bsd: carp1: state transition: MASTER -> BACKUP
Sep 25 13:56:31 fw2 /bsd: carp0: state transition: MASTER -> BACKUP
Sep 25 13:56:31 fw2 /bsd: carp10: state transition: MASTER -> BACKUP
Sep 25 13:56:31 fw2 /bsd: carp11: state transition: MASTER -> BACKUP
Sep 25 13:56:31 fw2 /bsd: carp12: state transition: MASTER -> BACKUP
Sep 25 13:56:33 fw2 /bsd: carp5: state transition: MASTER -> BACKUP
Sep 25 13:56:33 fw2 /bsd: carp4: state transition: MASTER -> BACKUP
Sep 25 13:56:49 fw2 /bsd: carp2: state transition: MASTER -> BACKUP
Sep 25 13:56:51 fw2 /bsd: carp6: state transition: MASTER -> BACKUP
Sep 25 13:56:53 fw2 /bsd: carp8: state transition: MASTER -> BACKUP
Sep 25 13:56:53 fw2 /bsd: carp7: state transition: MASTER -> BACKUP
Sep 25 13:56:53 fw2 /bsd: carp9: state transition: MASTER -> BACKUP
...
NO IDEA WHAT CAUSED THIS (LOCAL LAN)
Sep 26 14:18:32 fw2 /bsd: carp2: state transition: BACKUP -> MASTER
Sep 26 14:19:03 fw2 /bsd: carp2: state transition: MASTER -> BACKUP
Sep 27 11:39:55 fw2 /bsd: carp2: state transition: BACKUP -> MASTER
Sep 27 11:40:27 fw2 /bsd: carp2: state transition: MASTER -> BACKUP
...
HERE IS IFSTATED DETECTING THE FAILOVER, WHICH SHOULD HAVE HAPPENED ON
SEP 25, BUT DIDN'T
Sep 26 14:19:03 fw2 ifstated[16189]: changing state to normal
Sep 26 14:19:03 fw2 ifstated[16189]: running date|mail -s 'FW2 is now
the backup firewall' root
---/etc/ifstated.conf---
primary = "carp0.link.up&& carp10.link.up&& carp11.link.up"
backup = "carp0.link.down&& carp10.link.down&& carp11.link.down"
state auto {
init {
run "sleep 30"
}
if $primary
set-state failover
if $backup
set-state normal
}
state failover {
init {
run "date|mail -s 'FW2 is now the primary firewall'
root"
}
if $backup
set-state normal
}
state normal {
init {
run "date|mail -s 'FW2 is now the backup firewall' root"
}
if $primary
set-state failover
}
-Steve S.
I feel happy not to be the only one experiencing this behavior, although
this might be a config error on both sides ;)