Mailing List Archive

ipvsadm -p option changed?
I upgraded my box from 2.2.14/0.9.12 to the latest versions --
2.2.18/1.0.2.

I found typing in a rule with a -p option clears/messes up the ipvsadm table.

For example:

ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc

would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
-L) dumps "unexpected input data".

This only occurs when -p is included.

-Suresh
Re: ipvsadm -p option changed? [ In reply to ]
On Fri, Dec 29, 2000 at 11:47:50AM -0800, Suresh Rajagopalan wrote:
> I upgraded my box from 2.2.14/0.9.12 to the latest versions --
> 2.2.18/1.0.2.
>
> I found typing in a rule with a -p option clears/messes up the ipvsadm table.
>
> For example:
>
> ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc
>
> would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
> -L) dumps "unexpected input data".
>
> This only occurs when -p is included.

I'm looking into this but just as a quick check, did you upgrade
ipvsadm too? To check run:

ipvsadm -h | head -1

--
Horms
Re: ipvsadm -p option changed? [ In reply to ]
I did upgrade ipvsadm as well, my output is:

ipvsadm v1.12 2000/11/02 (compiled with popt and IPVS v1.0.0)

-Suresh


On Fri, 29 Dec 2000, Horms wrote:

> On Fri, Dec 29, 2000 at 11:47:50AM -0800, Suresh Rajagopalan wrote:
> > I upgraded my box from 2.2.14/0.9.12 to the latest versions --
> > 2.2.18/1.0.2.
> >
> > I found typing in a rule with a -p option clears/messes up the ipvsadm table.
> >
> > For example:
> >
> > ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc
> >
> > would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
> > -L) dumps "unexpected input data".
> >
> > This only occurs when -p is included.
>
> I'm looking into this but just as a quick check, did you upgrade
> ipvsadm too? To check run:
>
> ipvsadm -h | head -1
>
> --
> Horms
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>
Re: ipvsadm -p option changed? [ In reply to ]
On Fri, Dec 29, 2000 at 02:12:53PM -0800, Suresh Rajagopalan wrote:

Thanks

I've found the bug, I'll post a patch to the list shortly.


> I did upgrade ipvsadm as well, my output is:
>
> ipvsadm v1.12 2000/11/02 (compiled with popt and IPVS v1.0.0)
>
> -Suresh
>
>
> On Fri, 29 Dec 2000, Horms wrote:
>
> > On Fri, Dec 29, 2000 at 11:47:50AM -0800, Suresh Rajagopalan wrote:
> > > I upgraded my box from 2.2.14/0.9.12 to the latest versions --
> > > 2.2.18/1.0.2.
> > >
> > > I found typing in a rule with a -p option clears/messes up the ipvsadm table.
> > >
> > > For example:
> > >
> > > ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc
> > >
> > > would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
> > > -L) dumps "unexpected input data".
> > >
> > > This only occurs when -p is included.
> >
> > I'm looking into this but just as a quick check, did you upgrade
> > ipvsadm too? To check run:
> >
> > ipvsadm -h | head -1
> >
> > --
> > Horms

--
Horms
Re: ipvsadm -p option changed? [ In reply to ]
> > On Fri, Dec 29, 2000 at 11:47:50AM -0800, Suresh Rajagopalan wrote:
> > > I upgraded my box from 2.2.14/0.9.12 to the latest versions --
> > > 2.2.18/1.0.2.
> > >
> > > I found typing in a rule with a -p option clears/messes up the ipvsadm table.
> > >
> > > For example:
> > >
> > > ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc
> > >
> > > would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
> > > -L) dumps "unexpected input data".
> > >
> > > This only occurs when -p is included.

Thanks for the heads up on this. There is a minor bug in ipvsadm that
causes it to fail when _reading_ information on services with the
persistant flag set. Note that setting the services should work fine,
as will the LVS setup itself. You just can't read the entries using
ipvsadm -L.

Attached are two patches. The first is a patch to ipvsadm that fixes the
probelem. The second is a cosmetic patch to the LVS kernel code.
You should be fine if you just patch ipvsadm, recompile (and install it).


As an aside I am also looking in to an issue with compiling the ipvsadm
RPM with the supplied .spec file on Redhat 6.2 systems.

--
Horms
Re: ipvsadm -p option changed? [ In reply to ]
Hi,

It's a terrible bug introduced in ipvsadm-1.13, I'm sorry for this.

Thanks for the fix. Will provide a new version of ipvsadm soon.

Wensong


On Fri, 29 Dec 2000, Horms wrote:

> > > On Fri, Dec 29, 2000 at 11:47:50AM -0800, Suresh Rajagopalan wrote:
> > > > I upgraded my box from 2.2.14/0.9.12 to the latest versions --
> > > > 2.2.18/1.0.2.
> > > >
> > > > I found typing in a rule with a -p option clears/messes up the ipvsadm table.
> > > >
> > > > For example:
> > > >
> > > > ipvsadm -A -t 1.2.3.4:443 -p 900 -s wlc
> > > >
> > > > would then screw up the ipvsadm table. A ipvsadm -S (or ipvsadm
> > > > -L) dumps "unexpected input data".
> > > >
> > > > This only occurs when -p is included.
>
> Thanks for the heads up on this. There is a minor bug in ipvsadm that
> causes it to fail when _reading_ information on services with the
> persistant flag set. Note that setting the services should work fine,
> as will the LVS setup itself. You just can't read the entries using
> ipvsadm -L.
>
> Attached are two patches. The first is a patch to ipvsadm that fixes the
> probelem. The second is a cosmetic patch to the LVS kernel code.
> You should be fine if you just patch ipvsadm, recompile (and install it).
>
>
> As an aside I am also looking in to an issue with compiling the ipvsadm
> RPM with the supplied .spec file on Redhat 6.2 systems.
>
> --
> Horms
>