LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] ldirectord not removing rs

To: Sebastian Vieira <sebvieira@xxxxxxxxx>
Subject: Re: [lvs-users] ldirectord not removing rs
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 5 Jul 2007 13:36:29 +0900
[ Repost as the list didn't like the attacments in the previous one ]

On Fri, Jun 01, 2007 at 12:29:40PM +0200, Sebastian Vieira wrote:
> Hi,
> 
> I was running ldirectord 1.77.2.51 and decided to upgrade to the latest
> version 1.186-ha-2.0.9. Now ldirectord doesn't remove a real-server anymore.
> To illustrate:
> 
> ldirectord.cf has one virtual section with one rs. The whole thing is
> already running:
> 
> ## example 1 ##
> - i add a realserver line in ldirectord.cf:       real=192.168.14.20:23 masq
> 1 # description
> - ldirectord sees that the cf is changed
> - ldirectord adds the rs
> - ldirectord sends an email
> 
> so far so good
> 
> - i remove the realserver line from ldirectord.cf
> - ldirectord sees that the cf is changed
> - and does nothing  (no email is being sent either)
> - i have to manually remove the realserver with ipvsadm
> 
> ldirectord keeps running, and if i would add another rs, or change the
> weight of an existing rs, all works as intended.
> 
> I have tried to first set the weight to 0, and then remove it, with the same
> result.
> 
> kind regards,

Hi,

I finally found some time to look into this problem.
Yes, it does look like it is somewhat broken.

I have made two patches which I believe solve this problem,
I will send them as "[PATCH] [LDIRECTORD] Fix logic bug in _status_down"
and "[PATCH] [LDIECTORD] Remove stale entries on reload" in two follow-up
emails.


-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/



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