LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord: wrong RIP port in if VIP port != RIP port

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord: wrong RIP port in if VIP port != RIP port
From: sll <simonluca.landi@xxxxxxxxx>
Date: Wed, 30 Nov 2005 10:06:31 +0100
I applied the patch and now it works like a charme... so I think you
could incorporate the patch in the next release.

Thanks for your help.

Cheers,

Simonluca Landi


>
> Can you please test this patch out to see if it helps,
> I think that it will resolve your problem.
>
> Index: ldirectord
> ===================================================================
> RCS file: /home/cvs/linux-ha/linux-ha/ldirectord/ldirectord,v
> retrieving revision 1.77.2.36
> diff -u -r1.77.2.36 ldirectord
> --- ldirectord  30 Oct 2005 05:46:04 -0000      1.77.2.36
> +++ ldirectord  30 Nov 2005 01:21:02 -0000
> @@ -2381,6 +2381,16 @@
>                 $virtual_str =~ /(.*):(.*)/;
>                 $rservice .= ":" . $2;
>                 $or=$ov->{"real"}->{$rservice};
> +               # If this doesn't exist either, use the original service.
> +               # Otherwise if masq and quescence is in use, the
> +               # real server is not local, and it has an alternate port to
> +               # the virtual server, using the mapped service will
> +               # result in a quiescent service being created on the
> +               # virtual server's port, which is not wanted.
> +               if(!defined($or)) {
> +                       $rservice = $old_rservice;
> +                       $old_rservice = undef;
> +               }
>         }
>
>          if((!defined($or) and !defined($is_quiescent)) or
>
>
>
> --
> Horms
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>


--
-=[ SLL ]=-
www.isognidilivia.com

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