[Pacemaker] apache problems when moving an Ipaddr2 resource

Luis Daniel Lucio Quiroz luis.daniel.lucio at gmail.com
Mon Mar 18 02:02:29 UTC 2013


Helo David

I'm pretty sure they have same config, cause I did a copy

Apache starts. Let me explain you.

cheetah: 142.0.144.91
jaguar: 142.0.144.92
cluster ip: 142.0.144.93

root at cheetah # telnet 142.0.144.93 80   OK
root at jaguar # telnet 142.0.144.93 80   OK

but

root at externalmachine # telnet 142.0.144.93 80 FAILS.  It only happens
when Apache resource is on jaguar.
I did a tcpdump and i got too many checksum failures in tcp capture
when Apache is running on jaguar.

root at externalmachine # ping 142.0.144.93  WORKS (no matters who holds
cluster IP)


I was thinking it could be the switch, but since PING works okay, i
doubt it is its fault.

Others resources suche as openvpn, freeswitch works okay, they only
that it is failling it is apache.  I'm running apache-2.4.4-1.mga3

here it is my useful output

ttpd  -V
AH00548: NameVirtualHost has no effect and will be removed in the next
release /etc/httpd/conf/sites.d/01_vbilling.conf:1
Server version: Apache/2.4.4 (Unix)
Server built:   Feb 26 2013 12:12:08
Server's Module Magic Number: 20120211:11
Server loaded:  APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"



crm status
Last updated: Sun Mar 17 22:01:35 2013
Last change: Sun Mar 17 20:54:59 2013 via cibadmin on cheetah
Stack: corosync
Current DC: jaguar (4211976384) - partition with quorum
Version: 1.1.8-4.mga3-394e906
2 Nodes configured, unknown expected votes
6 Resources configured.


Online: [ cheetah jaguar ]

 Internet38     (ocf::heartbeat:IPaddr2):       Started jaguar
 HostedPBX      (ocf::heartbeat:IPaddr2):       Started cheetah
 Wholesale      (ocf::heartbeat:IPaddr2):       Started cheetah
 WEB    (ocf::heartbeat:apache):        Started cheetah
 TransparentCache       (ocf::heartbeat:Squid): Started jaguar
 phones-openvpn (ocf::heartbeat:anything):      Started cheetah


node $id="4211976384" jaguar
node $id="4228753600" cheetah
primitive HostedPBX ocf:heartbeat:IPaddr2 \
        params ip="142.0.144.93" nic="eth0.144" netmask="29" \
        op monitor interval="10s"
primitive Internet38 ocf:heartbeat:IPaddr2 \
        params ip="192.168.13.253" nic="eth0" netmask="24" \
        op monitor interval="10s"
primitive TransparentCache ocf:heartbeat:Squid \
        params squid_conf="/etc/squid/squid.conf"
squid_exe="/usr/sbin/squid" squid_pidfile="/run/squid.pid"
squid_port="3130" \
        op monitor interval="1min"
primitive WEB ocf:heartbeat:apache \
        params configfile="/etc/httpd/conf/httpd.conf"
statusurl="http://localhost/server-status" \
        op monitor interval="1min"
primitive Wholesale ocf:heartbeat:IPaddr2 \
        params ip="142.0.144.94" nic="eth0.144" cidr_netmask="29" \
        op monitor interval="10s"
primitive phones-openvpn ocf:heartbeat:anything \
        params binfile="/usr/sbin/openvpn" cmdline_options="--writepid
/run/openvpn/phones.pid --config /etc/openvpn/phones.conf --cd
/etc/openvpn --daemon" pidfile="/run/openvpn/phones.pid" \
        op start interval="0" timeout="20" \
        op stop interval="0" timeout="30" \
        op monitor interval="20"
location cli-prefer-HostedPBX HostedPBX \
        rule $id="cli-prefer-rule-HostedPBX" inf: #uname eq cheetah
location cli-prefer-Internet38 Internet38 \
        rule $id="cli-prefer-rule-Internet38" inf: #uname eq jaguar
colocation HostedPBX-Wholesale-WEB-sameplace inf: WEB Wholesale HostedPBX
colocation HostedPBX-Wholesale-sameplace inf: Wholesale HostedPBX
colocation Internet38-TransparentCache-sameplace inf: TransparentCache
Internet38
colocation phones-openvpn-HostedPBX-sameplace inf: phones-openvpn HostedPBX
order TransparentCache-after-IP38 inf: Internet38 TransparentCache
order WEB-after-IP inf: Wholesale HostedPBX WEB
order phones-openvpn-after-IP inf: HostedPBX phones-openvpn
property $id="cib-bootstrap-options" \
        dc-version="1.1.8-4.mga3-394e906" \
        cluster-infrastructure="corosync" \
       stonith-enabled="false"

I hope you can figureout something


2013/3/17 David Coulson <david at davidcoulson.net>:
> What is the specific error you get from Apache? Does it not start, or does it just not work properly?
>
> How are you ensuring your two nodes have the same apache configuration?
>
> David
>
> On Mar 17, 2013, at 8:13 PM, Luis Daniel Lucio Quiroz wrote:
>
>> strange,
>>
>> i have 2 hosts in a cluster
>>
>> cluster IP, moves fine, apache resource also
>>
>> but when they move, to host2, apache doesnt answer and i get too much
>> checksum errors.
>>
>> ping works okay.
>>
>> Im not sure what it is, any comment?
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list