I am testing a simple heartbeat/ldirector LVS cluster, right now just for http on port 80. Everything seems to be running, except that the virtual IP 172.16.100.106 is not listening on the public director lvc4 (172.16.100.104). The director node can access the real servers, the virtual IP is bound to the public interface, but it is not responding on port 80. iptables is open on port 80. The order is such that the virtual IP address comes up first, then ldirectord.

I've included some configuration and run time information below. tethereal shows that the initial SYN packet bouces off the director with a RST. I figure this must be simple, but several hours of googling and testing different changes have not resolved it. If anyone has an idea what might be happening I would certainly appreciate it. Thanks,

   -- Michael

===================================================
# cat ha.cf

mcast public  224.172.16.100 694 1 0
mcast private 224.172.16.101 694 1 0
node lvc1.fishnet.us
node lvc2.fishnet.us
node lvc3.fishnet.us
node lvc4.fishnet.us
coredumps on
crm on
use_logd yes
respawn root /usr/lib/heartbeat/stonithd

===================================================
# cat ldirectord.cf
checktimeout = 5
negotiatetimeout = 5
checkinterval = 5
checkcount = 2
autoreload = yes

virtual = 172.16.100.106:80
        real = 172.16.100.101:80 gate 5
        real = 172.16.100.102:80 gate 5
        service = http
        protocol = tcp
        persistent=600
        scheduler=rr
        checktype=negotiate

===================================================
# ifconfig

public    Link encap:Ethernet  HWaddr 00:A0:CC:3B:72:53
          inet addr:172.16.100.104  Bcast:172.16.100.255 Mask:255.255.255.0
          inet6 addr: fe80::2a0:ccff:fe3b:7253/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:470162 errors:2 dropped:0 overruns:0 frame:0
          TX packets:176606 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:84370102 (80.4 MiB)  TX bytes:25561999 (24.3 MiB)

public:0  Link encap:Ethernet  HWaddr 00:A0:CC:3B:72:53
          inet addr:172.16.100.106  Bcast:172.16.100.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

===================================================
# crm_mon -1 -r

Resource Group: group_lvs
 ip_106  (heartbeat::ocf:IPaddr):     Started lvc4.fishnet.us
 lvs_106 (heartbeat::ocf:ldirectord): Started lvc4.fishnet.us

===================================================
# netstat -atn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address
tcp        0      0 0.0.0.0:11111               0.0.0.0:*
tcp        0      0 0.0.0.0:111                 0.0.0.0:*
tcp        0      0 0.0.0.0:16851               0.0.0.0:*
tcp        0      0 0.0.0.0:5560                0.0.0.0:*
tcp        0      0 127.0.0.1:25                0.0.0.0:*
tcp        0      0 0.0.0.0:666                 0.0.0.0:*
tcp        0      0 127.0.0.1:60348             127.0.0.1:5560
tcp        0      0 172.16.100.104:60733        172.16.100.109:3260
tcp        0      0 127.0.0.1:5560              127.0.0.1:60348
tcp        0      0 172.16.100.104:58335        172.16.100.107:22
tcp        0      0 :::22                       :::*

===================================================
tethereal -n -i any host 172.16.100.106

 27.880464 172.16.100.103 -> 172.16.100.106 TCP 1822 > 80 [SYN] Seq=0 Win=5840 
Len=0 MSS=1460 TSV=35852490 TSER=0 WS=3

 27.880601 172.16.100.106 -> 172.16.100.103 ICMP Destination unreachable (Port 
unreachable)
 27.880612 172.16.100.106 -> 172.16.100.103 ICMP Destination unreachable (Port 
unreachable)

===================================================
# cib.xml

   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" 
value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
           <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" 
value="true"/>
           <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" 
value="1202605512"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="f2a8d1b1-0514-444b-a6f0-244036d27d80" uname="lvc3.fishnet.us" 
type="normal"/>
       <node id="a616e3d6-5b5f-45f7-b09a-97766e7ffd0d" uname="lvc2.fishnet.us" 
type="normal"/>
       <node id="2ea010dd-5ac7-4f87-a408-6c3b067181fa" uname="lvc1.fishnet.us" 
type="normal"/>
       <node id="73847c14-18c1-49ec-a26f-9ef33514d43c" uname="lvc4.fishnet.us" 
type="normal"/>
     </nodes>
     <resources>
       <group id="group_lvs">
         <meta_attributes id="group_lvs_meta_attrs">
           <attributes>
             <nvpair id="group_lvs_metaattr_target_role" name="target_role" 
value="started"/>
           </attributes>
         </meta_attributes>
         <primitive id="ip_106" class="ocf" type="IPaddr" provider="heartbeat">
           <instance_attributes id="ip_106_instance_attrs">
             <attributes>
               <nvpair id="18022136-b3fe-40fd-b3db-78ffe7bbb94b" name="ip" 
value="172.16.100.106"/>
             </attributes>
           </instance_attributes>
           <meta_attributes id="ip_106_meta_attrs">
             <attributes>
               <nvpair id="ip_106_metaattr_target_role" name="target_role" 
value="started"/>
             </attributes>
           </meta_attributes>
         </primitive>
         <primitive id="lvs_106" class="ocf" type="ldirectord" 
provider="heartbeat">
           <instance_attributes id="lvs_106_instance_attrs">
             <attributes>
               <nvpair id="0c12c9bf-9be9-43b1-bc48-184eca7c2332" name="configfile" 
value="/etc/ha.d/ldirectord.cf"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="location_lvs" rsc="group_lvs">
         <rule id="prefered_location_lvs" score="100">
           <expression attribute="#uname" id="5193dbcb-712b-47bd-8e19-1067cb5fb9d7" 
operation="eq" value="lvc4.fishnet.us"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to