Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2011 11:36:30 GMT
From:      Frank Brendel <frank.brendel@eurolog.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156547: relayd exits when disabling and enabling hosts
Message-ID:  <201104211136.p3LBaU9c030238@red.freebsd.org>
Resent-Message-ID: <201104211140.p3LBe6ev045786@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156547
>Category:       ports
>Synopsis:       relayd exits when disabling and enabling hosts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 21 11:40:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Frank Brendel
>Release:        FreeBSD 8.2
>Organization:
>Environment:
FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When I enable a host relayd exits.
The error message is:
fatal: pfe_dispatch_imsg: desynchronized

This happens only if I disable a host during long running checks.
>How-To-Repeat:
relayd.conf:
---snip---
host1="10.0.0.1"
host2="10.0.0.2"
host_ext="10.0.1.1"
interval 30
timeout 15000
table <host_table> { $host1 $host2 }
relay relay1 {
        listen on $host_ext port ssh
        forward to <host_table> port ssh check script "/tmp/chk_test.sh"
} 
relay relay2 {
        listen on $host_ext port smtp
        forward to <host_table> port smtp check script "/tmp/chk_test.sh"
} 
---snap---

/tmp/chk_test.sh:
---snip---
#!/usr/local/bin/bash
while true; do
  echo "PID: $$ - HOST: $1 - DATE:" $(date) >>/tmp/chk_test.txt
  sleep 5
  exit 1
done
---snap---

Run 'relayctl host disable 2' during a check cycle.
Now relayctl shows that the host 2 is disabled.
If you enable this host relayd exits on the next check of this host.

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104211136.p3LBaU9c030238>