LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] ipvsadm not showing all server nodes

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] ipvsadm not showing all server nodes
From: Jacoby Hickerson <hickersonjl@xxxxxxxxx>
Date: Tue, 23 Aug 2011 16:09:14 -0700
Using ipvsadm from the ipvsadm-1.26-1.src.rpm update, all servers no
longer appear in the output list.  Below is how I've reproduced it and
in addition a proposed patch.

[root@endor ~]# uname -a
Linux endor 2.6.40-4.fc15.i686.PAE #1 SMP Fri Jul 29 18:47:58 UTC 2011
i686 i686 i386 GNU/Linux

Add service and two nodes:
[root@endor ~]# /sbin/ipvsadm -A -f 100 -s rr
[root@endor ~]# /sbin/ipvsadm -a -f 100 -r 172.17.0.1 -w100
[root@endor ~]# /sbin/ipvsadm -a -f 100 -r 172.17.0.2 -w100

Results after 1.26-1 update:
[root@endor ~]# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  100 rr
  -> 172.17.0.1:0                 Route   100    0          0

Expected results (after patch):
[root@endor ~]# ./ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  100 rr
  -> 172.17.0.1:0                 Route   100    0          0
  -> 172.17.0.2:0                 Route   100    0          0

In addition the persistent engine was not added to the netlink policy,
the below patch also added that.

diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
--- ipvsadm-1.26.vanilla/libipvs/ip_vs.h        2011-02-06 18:38:57.000000000 
-0800
+++ ipvsadm-1.26/libipvs/ip_vs.h        2011-08-23 15:03:59.000000000 -0700
@@ -413,7 +413,7 @@
        __IPVS_CMD_ATTR_MAX,
 };

-#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
+#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)

 /*
  * Attributes used to describe a service
diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
--- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c      2008-09-18
08:57:37.000000000 -0700
+++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c      2011-08-23 14:45:34.000000000 
-0700
@@ -26,6 +26,8 @@
        [IPVS_SVC_ATTR_TIMEOUT]         = { .type = NLA_U32 },
        [IPVS_SVC_ATTR_NETMASK]         = { .type = NLA_U32 },
        [IPVS_SVC_ATTR_STATS]           = { .type = NLA_NESTED },
+       [IPVS_SVC_ATTR_PE_NAME]         = { .type = NLA_STRING,
+                                           .maxlen = IP_VS_PENAME_MAXLEN},
 };

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

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

<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] ipvsadm not showing all server nodes, Jacoby Hickerson <=