[Debian-ha-maintainers] Problem with ldirectord bug?
Miguel Ángel Martín Serrano
miguel.martin at cica.es
Tue Jun 3 11:14:03 UTC 2014
Hi all.
I'm having a problem with ldirectord that I can not solve, I comment my
situation:
I have two nodes with pace maker and corosync and configure somes resources:
root at rasca:/home/mamartin# crm status
============
Last updated: Tue Jun 3 12:58:30 2014
Last change: Tue Jun 3 12:23:47 2014 via cibadmin on rasca
Stack: openais
Current DC: pica - partition with quorum
Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff
2 Nodes configured, 2 expected votes
7 Resources configured.
============
Online: [ rasca pica ]
Resource Group: IPV_LVS
IPV_4 (ocf::heartbeat:IPaddr2): Started rasca
IPV_6 (ocf::heartbeat:IPv6addr): Started rasca
lvs (ocf::heartbeat:ldirectord): Started rasca
Clone Set: clon_IPV_lo [IPV_lo]
Started: [ pica ]
Stopped: [ IPV_lo:1 ]
root at rasca:/home/mamartin# crm configure show
node pica \
attributes standby="off"
node rasca \
attributes standby="off"
primitive IPV-lo_4 ocf:heartbeat:IPaddr \
params ip="150.214.8.180" cidr_netmask="32" nic="lo" \
op monitor interval="5s"
primitive IPV-lo_6 ocf:heartbeat:IPv6addrLO \
params ipv6addr="2a00:9ac0:c1ca:31::180" cidr_netmask="64" \
op monitor interval="5s"
primitive IPV_4 ocf:heartbeat:IPaddr2 \
params ip="150.214.8.180" nic="eth0" cidr_netmask="25"
lvs_support="true" \
op monitor interval="5s"
primitive IPV_6 ocf:heartbeat:IPv6addr \
params ipv6addr="2a00:9ac0:c1ca:31::180" nic="eth0" cidr_netmask="64" \
op monitor interval="5s"
primitive lvs ocf:heartbeat:ldirectord \
params configfile="/etc/ldirectord.cf" \
op monitor interval="20" timeout="10" \
meta target-role="Started"
group IPV_LVS IPV_4 IPV_6 lvs
group IPV_lo IPV-lo_6 IPV-lo_4
clone clon_IPV_lo IPV_lo \
meta interleave="true" target-role="Started"
location cli-prefer-IPV_LVS IPV_LVS \
rule $id="cli-prefer-rule-IPV_LVS" inf: #uname eq rasca
colocation LVS_no_IPV_lo -inf: clon_IPV_lo IPV_LVS
property $id="cib-bootstrap-options" \
dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1401264327"
rsc_defaults $id="rsc-options" \
resource-stickiness="1000"
The problem is in the ipvsadm only show a one real IP, when i configured
two now, show the ldirector.cf:
root at rasca:/home/mamartin# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP ldap-maqueta.cica.es:ldap wrr
-> pica.cica.es:ldap Route 4 0 0
TCP [2a00:9ac0:c1ca:31::180]:ldap wrr
-> [2a00:9ac0:c1ca:31::187]:ldap Route 4 0 0
root at rasca:/home/mamartin# cat /etc/ldirectord.cf
checktimeout=10
checkinterval=2
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
#ipv4
virtual=150.214.8.180:389
real=150.214.8.186:389 gate 4
real=150.214.8.187:389 gate 4
scheduler=wrr
protocol=tcp
checktype=on
#ipv6
virtual6=[2a00:9ac0:c1ca:31::180]:389
real6=[2a00:9ac0:c1ca:31::186]:389 gate 4
real6=[2a00:9ac0:c1ca:31::187]:389 gate 4
scheduler=wrr
protocol=tcp
checkport=389
checktype=on
and in the logs I see nothing clear:
root at rasca:/home/mamartin# ldirectord -d /etc/ldirectord.cf start
DEBUG2: Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.186:389 -g -w 0)
Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.186:389 -g -w 0)
DEBUG2: Quiescent real server: 150.214.8.186:389 (150.214.8.180:389)
(Weight set to 0)
Quiescent real server: 150.214.8.186:389 (150.214.8.180:389) (Weight set
to 0)
DEBUG2: Disabled real server=on:tcp:150.214.8.186:389:::4:gate:\/:
(virtual=tcp:150.214.8.180:389)
DEBUG2: Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.187:389 -g -w 0)
Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.187:389 -g -w 0)
DEBUG2: Quiescent real server: 150.214.8.187:389 (150.214.8.180:389)
(Weight set to 0)
Quiescent real server: 150.214.8.187:389 (150.214.8.180:389) (Weight set
to 0)
DEBUG2: Disabled real server=on:tcp:150.214.8.187:389:::4:gate:\/:
(virtual=tcp:150.214.8.180:389)
DEBUG2: Checking on: Real servers are added without any checks
DEBUG2: Resetting soft failure count: 150.214.8.187:389
(tcp:150.214.8.180:389)
Resetting soft failure count: 150.214.8.187:389 (tcp:150.214.8.180:389)
DEBUG2: Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.187:389 -g -w 4)
Running system(/sbin/ipvsadm -a -t 150.214.8.180:389 -r
150.214.8.187:389 -g -w 4)
Destination already exists
root at rasca:/home/mamartin# cat /var/log/ldirectord.log
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Quiescent real server:
150.214.8.186:389 (150.214.8.180:389) (Weight set to 0)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Quiescent real server:
150.214.8.187:389 (150.214.8.180:389) (Weight set to 0)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Resetting soft failure
count: 150.214.8.187:389 (tcp:150.214.8.180:389)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] system(/sbin/ipvsadm -a
-t 150.214.8.180:389 -r 150.214.8.187:389 -g -w 4) failed:
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Added real server:
150.214.8.187:389 (150.214.8.180:389) (Weight set to 4)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Resetting soft failure
count: 150.214.8.186:389 (tcp:150.214.8.180:389)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Restored real server:
150.214.8.186:389 (150.214.8.180:389) (Weight set to 4)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Resetting soft failure
count: [2a00:9ac0:c1ca:31::187]:389 (tcp:[2a00:9ac0:c1ca:31::180]:389)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] system(/sbin/ipvsadm -a
-t [2a00:9ac0:c1ca:31::180]:389 -r [2a00:9ac0:c1ca:31::187]:389 -g -w 4)
failed:
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Added real server:
[2a00:9ac0:c1ca:31::187]:389 ([2a00:9ac0:c1ca:31::180]:389) (Weight set
to 4)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Resetting soft failure
count: [2a00:9ac0:c1ca:31::186]:389 (tcp:[2a00:9ac0:c1ca:31::180]:389)
[Tue Jun 3 09:39:29 2014|ldirectord.cf|19266] Restored real server:
[2a00:9ac0:c1ca:31::186]:389 ([2a00:9ac0:c1ca:31::180]:389) (Weight set
to 4)
do not know if this is a bug or a configuration error, can anyone help?
Regards.
--
Miguel Ángel Martín Serrano
Departamento de Seguridad Informática (nis at cica.es)
Centro Informático Científico de Andalucía (CICA)
Avda. Reina Mercedes s/n - 41012 - Sevilla (Spain)
Tfno.: +34 955 056 600 / FAX: +34 955 056 650
Consejería de Economía, Innovación, Ciencia y Empleo
Junta de Andalucía
More information about the Debian-ha-maintainers
mailing list