LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Broken ldirectord reload

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, Horms <horms@xxxxxxxxxxxx>
Subject: Re: Broken ldirectord reload
From: "Tomas Hoger" <tomas.hoger@xxxxxxxxx>
Date: Thu, 22 Mar 2007 10:39:09 +0100
Hi Horms!

On 3/19/07, Horms <horms@xxxxxxxxxxxx> wrote:
I've been puzzling over this. And while I can't reproduce the problem
here, I do think your fix is correct. I'll get it into the next version.

Have you also tried to stop it after reload?  It is one way that
always produces error message for me.

Another simple config that can be used for testing:

# cat /tmp/ldir.conf
checktimeout=5
checkinterval=10
autoreload=no
quiescent=yes

virtual=127.0.0.1:125
      real=127.0.0.2:125 gate
      real=127.0.0.3:125 gate
      service=smtp
      scheduler=wlc
      protocol=tcp
      checktype=negotiate

# ldirectord /tmp/ldir.conf start

Log messages:

[Thu Mar 22 10:28:57 2007|ldir.conf|9327] Invoking ldirectord invoked
as: /usr/sbin/ldirectord /tmp/ldir.conf start
[Thu Mar 22 10:28:57 2007|ldir.conf|9327] Starting Linux Director
v1.186 as daemon
[Thu Mar 22 10:28:57 2007|ldir.conf|9329] Changed virtual server: 127.0.0.1:125
[Thu Mar 22 10:28:57 2007|ldir.conf|9329] Quiescent real server:
127.0.0.2:125 (127.0.0.1:125) (Weight set to 0)
[Thu Mar 22 10:28:57 2007|ldir.conf|9329] Quiescent real server:
127.0.0.3:125 (127.0.0.1:125) (Weight set to 0)

# ldirectord /tmp/ldir.conf reload

[Thu Mar 22 10:29:10 2007|ldir.conf|9336] Invoking ldirectord invoked
as: /usr/sbin/ldirectord /tmp/ldir.conf reload
[Thu Mar 22 10:29:10 2007|ldir.conf|9329] Reloading Linux Director
Daemon config on signal

# ldirectord /tmp/ldir.conf stop

[Thu Mar 22 10:29:17 2007|ldir.conf|9337] Invoking ldirectord invoked
as: /usr/sbin/ldirectord /tmp/ldir.conf stop
[Thu Mar 22 10:29:17 2007|ldir.conf|9329] system(/sbin/ipvsadm -D
127.0.0.1:125) failed: Interrupted system call
[Thu Mar 22 10:29:17 2007|ldir.conf|9329] Purged virtual server
(stop): 127.0.0.1:125
[Thu Mar 22 10:29:17 2007|ldir.conf|9329] Linux Director Daemon
terminated on signal: TERM


Can you reproduce the problem with config and procedure above?

th.

<Prev in Thread] Current Thread [Next in Thread>