Mailing List Archive

[lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ...
Hi All,

ipvsadm-1.26 reports error as "*Invalid operation. Possibly wrong module
version, address not unicast, ...*" for a valid request with option "-ln
-t".

*Ex*:
# ipvsadm -ln -t a.b.c.d:http
Invalid operation. Possibly wrong module version, address not unicast, ...


*Bug details*:

# ipvsadm -l
IP Virtual Server version 1.2.1 (size=131072)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP a.b.c.d:http wrr
-> w.x.y.z:http Masq 100 0 0

# ipvsadm -ln -t a.b.c.d:http
Invalid operation. Possibly wrong module version, address not unicast, ...

# which gcc
/usr/bin/gcc
# gcc --version
gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#

*RCA:*

In lipipvs.c tsvc variable was not getting initialized. Field members were
set to junk values. ipvs_nl_fill_service_attr was used to create message
using these junk values too. leading to this issue.

*Fix:*
Initializing the structure variable to 0 solves the issue.

*Diff for the fix:*

diff -urNp ipvsadm-1.26/libipvs/libipvs.c ipvsadm-1.26_lb/libipvs/libipvs.c
--- ipvsadm-1.26/libipvs/libipvs.c 2011-02-06 18:38:57.000000000 -0800
+++ ipvsadm-1.26_lb/libipvs/libipvs.c 2013-05-03 02:57:08.000000000 -0700
@@ -921,6 +921,7 @@ ipvs_get_service(__u32 fwmark, __u16 af,
struct ip_vs_get_services *get;
struct nl_msg *msg;
ipvs_service_t tsvc;
+ memset(&tsvc, 0, sizeof(ipvs_service_t));
tsvc.fwmark = fwmark;
tsvc.af = af;
tsvc.protocol= protocol;



*Note : *Works fine with gcc-4.3.2. It initializes uninitialized data
structure members. So issue is not seen here.

-------------------------------------------------

I am new to this mailing-list but wanted to contribute. If I am posting at
the wrong place, my sincere apologies. Would request to guide me to correct
link or mailing list.

Thanks and Regards,
Ankit
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
Hi All,

I got a similar issue with no final resolution.

http://archive.linuxvirtualserver.org/html/lvs-users/2010-01/msg00049.html

I can't respond to the given mail-thread as its an old one and I am
new joiner.

No one is replying as yet to my mail; so thought like updating same.




On Fri, May 3, 2013 at 4:28 PM, Dev Ankzz <ankzzdev@gmail.com> wrote:

> Hi All,
>
> ipvsadm-1.26 reports error as "*Invalid operation. Possibly wrong module
> version, address not unicast, ...*" for a valid request with option "-ln
> -t".
>
> *Ex*:
> # ipvsadm -ln -t a.b.c.d:http
> Invalid operation. Possibly wrong module version, address not unicast, ...
>
>
> *Bug details*:
>
> # ipvsadm -l
> IP Virtual Server version 1.2.1 (size=131072)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP a.b.c.d:http wrr
> -> w.x.y.z:http Masq 100 0 0
>
> # ipvsadm -ln -t a.b.c.d:http
> Invalid operation. Possibly wrong module version, address not unicast, ...
>
> # which gcc
> /usr/bin/gcc
> # gcc --version
> gcc (GCC) 4.1.1
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> #
>
> *RCA:*
>
> In lipipvs.c tsvc variable was not getting initialized. Field members were
> set to junk values. ipvs_nl_fill_service_attr was used to create message
> using these junk values too. leading to this issue.
>
> *Fix:*
> Initializing the structure variable to 0 solves the issue.
>
> *Diff for the fix:*
>
> diff -urNp ipvsadm-1.26/libipvs/libipvs.c ipvsadm-1.26_lb/libipvs/libipvs.c
> --- ipvsadm-1.26/libipvs/libipvs.c 2011-02-06 18:38:57.000000000 -0800
> +++ ipvsadm-1.26_lb/libipvs/libipvs.c 2013-05-03 02:57:08.000000000 -0700
> @@ -921,6 +921,7 @@ ipvs_get_service(__u32 fwmark, __u16 af,
> struct ip_vs_get_services *get;
> struct nl_msg *msg;
> ipvs_service_t tsvc;
> + memset(&tsvc, 0, sizeof(ipvs_service_t));
> tsvc.fwmark = fwmark;
> tsvc.af = af;
> tsvc.protocol= protocol;
>
>
>
> *Note : *Works fine with gcc-4.3.2. It initializes uninitialized data
> structure members. So issue is not seen here.
>
> -------------------------------------------------
>
> I am new to this mailing-list but wanted to contribute. If I am posting at
> the wrong place, my sincere apologies. Would request to guide me to correct
> link or mailing list.
>
> Thanks and Regards,
> Ankit
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
Dear Dev Ankzz,

I got some similar results on debian 7.0 - kernels 3.x til 3.9 - as well
and found an patch that solve it.

The reasons are an currently Impropper working IPVSadm "stable " v 1.21

I´ll report this to an seperat thread " Patch request & new ipvs 1.2x tar
tarball request "

What seems to happen : Kernel interfaces arround IPVS(adm) changed past 12
years , thus the Commands to the kernels MUST Correct.

IT´S time for an New Official PUBLIC STABLE release.
Distributions ONLY use the stable, nonstable and patches often seems
ignored.

--
Mit freundlichen Grüßen / Best Regards
Horst Venzke ; PGP NET : 1024G/082F2E6D ; http://www.remsnet.de
Legal Notice: This transmittal and/or attachments may be privileged or
confidential. It is intended solely for the addressee named above. Any
review, dissemination, or copying is strictly prohibited. If you received
this transmittal in error, please notify us immediately by reply and
immediately delete this message and all its attachments. Thank you.


Gesendet: Montag, 06. Mai 2013 um 12:27 Uhr
Von: "Dev Ankzz" <ankzzdev@gmail.com>
An: lvs-users@linuxvirtualserver.org
Betreff: Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation.
Possibly wrong module version, address not unicast, ...
Hi All,
I got a similar issue with no final resolution.
[1]http://archive.linuxvirtualserver.org/html/lvs-users/2010-01/msg00049.htm
l
I can't respond to the given mail-thread as its an old one and I am
new joiner.
No one is replying as yet to my mail; so thought like updating same.
On Fri, May 3, 2013 at 4:28 PM, Dev Ankzz <ankzzdev@gmail.com> wrote:
> Hi All,
>
> ipvsadm-1.26 reports error as "*Invalid operation. Possibly wrong module
> version, address not unicast, ...*" for a valid request with option "-ln
> -t".
>
> *Ex*:
> # ipvsadm -ln -t a.b.c.d:http
> Invalid operation. Possibly wrong module version, address not unicast, ...
>
>
> *Bug details*:
>
> # ipvsadm -l
> IP Virtual Server version 1.2.1 (size=131072)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP a.b.c.d:http wrr
> -> w.x.y.z:http Masq 100 0 0
>
> # ipvsadm -ln -t a.b.c.d:http
> Invalid operation. Possibly wrong module version, address not unicast, ...
>
> # which gcc
> /usr/bin/gcc
> # gcc --version
> gcc (GCC) 4.1.1
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
>
> #
>
> *RCA:*
>
> In lipipvs.c tsvc variable was not getting initialized. Field members were
> set to junk values. ipvs_nl_fill_service_attr was used to create message
> using these junk values too. leading to this issue.
>
> *Fix:*
> Initializing the structure variable to 0 solves the issue.
>
> *Diff for the fix:*
>
> diff -urNp ipvsadm-1.26/libipvs/libipvs.c
ipvsadm-1.26_lb/libipvs/libipvs.c
> --- ipvsadm-1.26/libipvs/libipvs.c 2011-02-06 18:38:57.000000000 -0800
> +++ ipvsadm-1.26_lb/libipvs/libipvs.c 2013-05-03 02:57:08.000000000 -0700
> @@ -921,6 +921,7 @@ ipvs_get_service(__u32 fwmark, __u16 af,
> struct ip_vs_get_services *get;
> struct nl_msg *msg;
> ipvs_service_t tsvc;
> + memset(&tsvc, 0, sizeof(ipvs_service_t));
> tsvc.fwmark = fwmark;
> tsvc.af = af;
> tsvc.protocol= protocol;
>
>
>
> *Note : *Works fine with gcc-4.3.2. It initializes uninitialized data
> structure members. So issue is not seen here.
>
> -------------------------------------------------
>
> I am new to this mailing-list but wanted to contribute. If I am posting at
> the wrong place, my sincere apologies. Would request to guide me to
correct
> link or mailing list.
>
> Thanks and Regards,
> Ankit
>
_______________________________________________
Please read the documentation before posting - it's available at:
[2]http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to [3]http://lists.graemef.net/mailman/listinfo/lvs-users

References

1. http://archive.linuxvirtualserver.org/html/lvs-users/2010-01/msg00049.html
2. http://www.linuxvirtualserver.org/
3. http://lists.graemef.net/mailman/listinfo/lvs-users
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
On Wed, May 08, 2013 at 12:54:26PM +0200, Horst Venzke-Fa Remsnet Ltd wrote:
>
> Dear Dev Ankzz,
>
> I got some similar results on debian 7.0 - kernels 3.x til 3.9 - as well
> and found an patch that solve it.
>
> The reasons are an currently Impropper working IPVSadm "stable " v 1.21
>
> I´ll report this to an seperat thread " Patch request & new ipvs 1.2x tar
> tarball request "
>
> What seems to happen : Kernel interfaces arround IPVS(adm) changed past 12
> years , thus the Commands to the kernels MUST Correct.
>
> IT´S time for an New Official PUBLIC STABLE release.
> Distributions ONLY use the stable, nonstable and patches often seems
> ignored.

I agree. I will work on resolving this ASAP.

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
Thanks.

This encourages me to contribute more towards open-source.


On Thu, May 9, 2013 at 10:08 AM, Simon Horman <horms@verge.net.au> wrote:

> On Wed, May 08, 2013 at 12:54:26PM +0200, Horst Venzke-Fa Remsnet Ltd
> wrote:
> >
> > Dear Dev Ankzz,
> >
> > I got some similar results on debian 7.0 - kernels 3.x til 3.9 - as
> well
> > and found an patch that solve it.
> >
> > The reasons are an currently Impropper working IPVSadm "stable " v
> 1.21
> >
> > I´ll report this to an seperat thread " Patch request & new ipvs
> 1.2x tar
> > tarball request "
> >
> > What seems to happen : Kernel interfaces arround IPVS(adm) changed
> past 12
> > years , thus the Commands to the kernels MUST Correct.
> >
> > IT´S time for an New Official PUBLIC STABLE release.
> > Distributions ONLY use the stable, nonstable and patches often seems
> > ignored.
>
> I agree. I will work on resolving this ASAP.
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
On Thu, May 09, 2013 at 01:38:27PM +0900, Simon Horman wrote:
> On Wed, May 08, 2013 at 12:54:26PM +0200, Horst Venzke-Fa Remsnet Ltd wrote:
> >
> > Dear Dev Ankzz,
> >
> > I got some similar results on debian 7.0 - kernels 3.x til 3.9 - as well
> > and found an patch that solve it.
> >
> > The reasons are an currently Impropper working IPVSadm "stable " v 1.21
> >
> > I´ll report this to an seperat thread " Patch request & new ipvs 1.2x tar
> > tarball request "
> >
> > What seems to happen : Kernel interfaces arround IPVS(adm) changed past 12
> > years , thus the Commands to the kernels MUST Correct.
> >
> > IT´S time for an New Official PUBLIC STABLE release.
> > Distributions ONLY use the stable, nonstable and patches often seems
> > ignored.
>
> I agree. I will work on resolving this ASAP.

Hi,

I have created a new git repository for ipvsadm.
I am using it to gather together outstanding patches
in preparation for a new release.

Would it be possible for you to test the code there and see
if the problem you were experiencing is still present?

git://git.kernel.org/pub/scm/utils/kernel/ipvsadm/ipvsadm.git

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation. Possibly wrong module version, address not unicast, ... [ In reply to ]
Hello Simon,

Great.

Will have you feedback soon.

Meanwhile , can you kindly manage to get i.e the page
http://www.linuxvirtualserver.org/software/index.html , there the software
table updated --> add GIT repo link.
Somewhere this repro shuold refered...

--
Mit freundlichen Grüßen / Best Regards
Horst Venzke ; PGP NET : 1024G/082F2E6D ; http://www.remsnet.de
Legal Notice: This transmittal and/or attachments may be privileged or
confidential. It is intended solely for the addressee named above. Any
review, dissemination, or copying is strictly prohibited. If you received
this transmittal in error, please notify us immediately by reply and
immediately delete this message and all its attachments. Thank you.


Gesendet: Mittwoch, 22. Mai 2013 um 08:27 Uhr
Von: "Simon Horman" <horms@verge.net.au>
An: "Horst Venzke-Fa Remsnet Ltd" <support@remsnet.de>,
"LinuxVirtualServer.org users mailing list."
<lvs-users@linuxvirtualserver.org>
Betreff: Re: [lvs-users] Fix for Bug in ipvsadm-1.26 : Invalid operation.
Possibly wrong module version, address not unicast, ...
On Thu, May 09, 2013 at 01:38:27PM +0900, Simon Horman wrote:
> On Wed, May 08, 2013 at 12:54:26PM +0200, Horst Venzke-Fa Remsnet Ltd
wrote:
> >
> > Dear Dev Ankzz,
> >
> > I got some similar results on debian 7.0 - kernels 3.x til 3.9 - as well
> > and found an patch that solve it.
> >
> > The reasons are an currently Impropper working IPVSadm "stable " v 1.21
> >
> > I´ll report this to an seperat thread " Patch request & new ipvs 1.2x
tar
> > tarball request "
> >
> > What seems to happen : Kernel interfaces arround IPVS(adm) changed past
12
> > years , thus the Commands to the kernels MUST Correct.
> >
> > IT´S time for an New Official PUBLIC STABLE release.
> > Distributions ONLY use the stable, nonstable and patches often seems
> > ignored.
>
> I agree. I will work on resolving this ASAP.
Hi,
I have created a new git repository for ipvsadm.
I am using it to gather together outstanding patches
in preparation for a new release.
Would it be possible for you to test the code there and see
if the problem you were experiencing is still present?
git://git.kernel.org/pub/scm/utils/kernel/ipvsadm/ipvsadm.git
_______________________________________________
Please read the documentation before posting - it's available at:
[1]http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to [2]http://lists.graemef.net/mailman/listinfo/lvs-users

References

1. http://www.linuxvirtualserver.org/
2. http://lists.graemef.net/mailman/listinfo/lvs-users
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users