[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #FVT-875334]: LDM source IP used when connecting to remote server



Robert,

Very odd. The ps(1) output indicates that all the child processes of the LDM 
server should be using IP address 128.117.110.43.

I've looked at the code, and the bind() function did use that IP address.

Would you please send me the output of the command "netstat --inet -t -a -n"

> Here you go. With more than you asked for.
> 
> 
> address@hidden ~]$ ps -ef | grep ldmd
> ldmÂÂÂÂÂ 26767ÂÂÂÂ 1Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:00:00 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 26772 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:00:15 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 26774 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:00:02 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 26775 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:00:00 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 28418 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:06:57 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 28419 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:06:52 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 28420 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:06:37 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 28421 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:06:18 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 28422 26767Â 0 Jun24 ?ÂÂÂÂÂÂÂ 00:06:37 ldmd -I 
> 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldmÂÂÂÂÂ 45012 43944Â 0 14:41 pts/2ÂÂÂ 00:00:00 grep ldmd
> 
> address@hidden ~]$ ldmadmin config
> hostname:ÂÂÂÂÂÂÂÂÂÂÂÂÂ ldm.comet.ucar.edu
> os:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ Linux
> release:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 2.6.32-754.15.3.el6.x86_64
> ldmhome:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ /usr/local/ldm
> LDM version:ÂÂÂÂÂÂÂÂÂÂ 6.12.14
> PATH:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
> /usr/local/ldm/ldm-6.12.14/bin:/usr/local/ldm/decoders:/usr/local/ldm/util:/usr/local/ldm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
> LDM conf file:ÂÂÂÂÂÂÂÂ /usr/local/ldm/etc/ldmd.conf
> pqact(1) conf file:ÂÂÂ /usr/local/ldm/etc/pqact.conf
> scour(1) conf file:ÂÂÂ /usr/local/ldm/etc/scour.conf
> product queue:ÂÂÂÂÂÂÂÂ /var/log/ldm/queues/ldm.pq
> queue size:ÂÂÂÂÂÂÂÂÂÂÂ 500M bytes
> queue slots:ÂÂÂÂÂÂÂÂÂÂ default
> reconciliation mode:ÂÂ do nothing
> pqsurf(1) path:ÂÂÂÂÂÂÂ /var/log/ldm/queues/pqsurf.pq
> pqsurf(1) size:ÂÂÂÂÂÂÂ 2M
> IP address:ÂÂÂÂÂÂÂÂÂÂÂ 128.117.110.43
> port:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 388
> PID file:ÂÂÂÂÂÂÂÂÂÂÂÂÂ /usr/local/ldm/ldmd.pid
> Lock file:ÂÂÂÂÂÂÂÂÂÂÂÂ /usr/local/ldm/.ldmadmin.lck
> maximum clients:ÂÂÂÂÂÂ 256
> maximum latency:ÂÂÂÂÂÂ 3600
> time offset:ÂÂÂÂÂÂÂÂÂÂ 3600
> log file:ÂÂÂÂÂÂÂÂÂÂÂÂÂ /usr/local/ldm/log/ldmd.log
> numlogs:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 7
> log_rotate:ÂÂÂÂÂÂÂÂÂÂÂ 1
> netstat:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ /bin/netstat -A inet -t -n
> top:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ /usr/bin/top -b -n 1
> metrics file:ÂÂÂÂÂÂÂÂÂ /usr/local/ldm/log/metrics.txt
> metrics files:ÂÂÂÂÂÂÂÂ /usr/local/ldm/log/metrics.txt*
> num_metrics:ÂÂÂÂÂÂÂÂÂÂ 4
> check time:ÂÂÂÂÂÂÂÂÂÂÂ 1
> delete info files:ÂÂÂÂ 0
> ntpdate(1):ÂÂÂÂÂÂÂÂÂÂÂ /usr/sbin/ntpdate
> ntpdate(1) timeout:ÂÂÂ 5
> time servers:ÂÂÂÂÂÂÂÂÂ 128.117.110.251 128.117.110.253
> timeserver.unidata.ucar.edu
> time-offset limit:ÂÂÂÂ 10
> 
> -------------------
> FYI, why I have multiple IPs. Â I'm running ldmd in a HA configuration.Â
> Using Pacemaker/Corosync with crm (cluster management shell) instead of
> native pcs. I had to modify /etc/init.d/ldmd to add status for heartbeat
> checks. This is attached if you want to see what I had to do to get
> pacemaker going.
> 
> 
> address@hidden ~]# crm status
> 
> Last updated: Wed Jun 26 14:44:17 2019
> Last change: Mon Jun 24 13:34:08 2019
> Stack: classic openais (with plugin)
> Current DC: punk - partition with quorum
> Version: 1.1.11-97629de
> 2 Nodes configured, 2 expected votes
> 6 Resources configured
> 
> 
> Online: [ daft punk ]
> 
> ÂResource Group: Comet
> ÂÂÂÂ vip01ÂÂÂ (ocf::heartbeat:IPaddr2):ÂÂÂ Started daft
> ÂÂÂÂ http_cometÂÂÂ (ocf::heartbeat:apache):ÂÂÂ Started daft
> ÂResource Group: FDTB
> ÂÂÂÂ vip02ÂÂÂ (ocf::heartbeat:IPaddr2):ÂÂÂ Started punk
> ÂÂÂÂ http_fdtbÂÂÂ (ocf::heartbeat:apache):ÂÂÂ Started punk
> ÂResource Group: LDM
> ÂÂÂÂ vip06ÂÂÂ (ocf::heartbeat:IPaddr2):ÂÂÂ Started punk
> ÂÂÂÂ ldmdÂÂÂ (lsb:ldmd):ÂÂÂ Started punk
> 
> 
> My HA configuration
> 
> address@hidden ~]# cat /tmp/crm.out
> 
> node daft
> node punk
> primitive http_comet apache \
> ÂÂÂ params httpd="/usr/local/apache/bin/httpd"
> configfile="/usr/local/apache/conf/httpd-vip01.conf"
> statusurl="http://vip01.comet.ucar.edu/index.html"; \
> ÂÂÂ op monitor interval=20s \
> ÂÂÂ op start interval=0 timeout=60s \
> ÂÂÂ op stop interval=0 timeout=60s
> primitive http_fdtb apache \
> ÂÂÂ params httpd="/usr/local/apache/bin/httpd"
> configfile="/usr/local/apache/conf/httpd-vip02.conf"
> statusurl="http://vip02.comet.ucar.edu/index.html"; \
> ÂÂÂ op monitor interval=20s \
> ÂÂÂ op start interval=0 timeout=60s \
> ÂÂÂ op stop interval=0 timeout=60s
> *primitive ldmd lsb:ldmd \*
> *ÂÂÂ op monitor interval=20s \*
> *ÂÂÂ op start interval=0 timeout=60s \*
> *ÂÂÂ op stop interval=0 timeout=60s*
> primitive vip01 IPaddr2 \
> ÂÂÂ params ip=128.117.110.221 nic=em1 \
> ÂÂÂ op monitor interval=5s
> primitive vip02 IPaddr2 \
> ÂÂÂ params ip=128.117.110.222 nic=em1 \
> ÂÂÂ op monitor interval=5s
> *primitive vip06 IPaddr2 \*
> *ÂÂÂ params ip=128.117.110.43 nic=em1 \*
> *ÂÂÂ op monitor interval=5s*
> group Comet vip01 http_comet \
> ÂÂÂ meta target-role=Started
> group FDTB vip02 http_fdtb \
> ÂÂÂ meta target-role=Started
> group LDM vip06 ldmd \
> ÂÂÂ meta target-role=Started
> location PreferedNodeComet Comet 100: daft
> location PreferedNodeFDTB FDTB 100: punk
> *location PreferedNodeLDM LDM 100: punk*
> order vip01-before-http inf: vip01:start http_comet:start
> order vip02-before-http inf: vip02:start http_fdtb:start
> *order vip06-before-ldmd inf: vip06:start ldmd:start*
> property cib-bootstrap-options: \
> ÂÂÂ dc-version=1.1.11-97629de \
> ÂÂÂ cluster-infrastructure="classic openais (with plugin)" \
> ÂÂÂ expected-quorum-votes=2 \
> ÂÂÂ stonith-enabled=false \
> ÂÂÂ no-quorum-policy=ignore \
> ÂÂÂ last-lrm-refresh=1561395956

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: FVT-875334
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.



NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.