Uncommented the debug file line in /usr/lib64/stonith/plugins/external/ibmrsa-telnet
This then gave me [EMAIL PROTECTED] hb]# cat /var/log/stonith-debug.log 2008-12-02 11:23:51,964: ibmrsa-telnet: ========== Start ============= 2008-12-02 11:23:51,964: ibmrsa-telnet: cmd: getconfignames 2008-12-02 11:23:51,964: ibmrsa-telnet: STDOUT: nodename 2008-12-02 11:23:51,964: ibmrsa-telnet: STDOUT: ip_address 2008-12-02 11:23:51,964: ibmrsa-telnet: STDOUT: username 2008-12-02 11:23:51,964: ibmrsa-telnet: STDOUT: password 2008-12-02 11:23:51,987: ibmrsa-telnet: ========== Start ============= 2008-12-02 11:23:51,987: ibmrsa-telnet: cmd: status 2008-12-02 11:23:51,987: ibmrsa-telnet: Connect to '192.168.201.37' 2008-12-02 11:23:52,257: ibmrsa-telnet: 2008-12-02 11:23:51,989: WRITE: '\r' 2008-12-02 11:23:52,008: READ : '\r\nusername: ' 2008-12-02 11:23:52,008: WRITE: 'stonith' 2008-12-02 11:23:52,008: WRITE: '\r' 2008-12-02 11:23:52,226: READ : 'stonith\r\npassword: ' 2008-12-02 11:23:52,226: WRITE: '########' 2008-12-02 11:23:52,226: WRITE: '\r' 2008-12-02 11:23:52,257: READ : '********\r\nSN# K106087M0N8> ' 2008-12-02 11:23:52,257: WRITE: 'exit\r' I don't see any reset command. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:linux-ha- > [EMAIL PROTECTED] On Behalf Of Alex Strachan > Sent: Tuesday, 2 December 2008 11:05 AM > To: 'General Linux-HA mailing list' > Subject: RE: [Linux-HA] stonith - ibmrsa-telnet TIMEOUT,how to > enablepython debug > > Please ignore that last reply, introduced too many differences by using > telnet from the command line. > > I have attached two files > tcpdump_telnet_heartbeat.txt the captured output when heartbeat > tries > to stonith > tcpdump_telnet_cmd_line.txt the captured output when running > stonith > from the command line. > > Heartbeat seems to stall, while stonith carries on from line 27 (file: > tcpdump_telnet_cmd_line.txt); up to that point they are the same. > > Stonith from command lines carries on with > > IP (tos 0x0, ttl 64, id 10535, offset 0, flags [DF], proto 6, length: 60) > 192.168.201.42.44467 > 192.168.201.37.telnet: S [tcp sum ok] > 1606815892:1606815892(0) win 5840 <mss 1460,sackOK,timestamp 63519155 > 0,nop,wscale 3> > > > Okay - print statements in Python! :-( > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:linux-ha- > > [EMAIL PROTECTED] On Behalf Of Dejan Muhamedagic > > Sent: Monday, 1 December 2008 11:30 PM > > To: General Linux-HA mailing list > > Subject: Re: [Linux-HA] stonith - ibmrsa-telnet TIMEOUT, how to > > enablepython debug > > > > Hi again, > > > > On Mon, Dec 01, 2008 at 09:34:40PM +1000, Alex Strachan wrote: > > > Stonith primitive defn. > > > > > > <primitive id="r_stonith-dtbaims" class="stonith" > > > type="external/ibmrsa-telnet"> > > > <operations> > > > <op name="monitor" interval="60" id="r_stonith-dtbaims-mon" > > > timeout="300" requires="nothing"/> > > > <op name="start" interval="0" id="r_stonith-dtbaims-start" > > > timeout="180"/> > > > <op name="stop" interval="0" id="r_stonith-dtbaims-stop" > > > timeout="180"/> > > > </operations> > > > <instance_attributes id="instance_attributes.id49828"> > > > <nvpair id="nvpair.id49835" name="nodename" > > value="dtbaimsilo"/> > > > <nvpair id="nvpair.id49844" name="ip_address" > > > value="192.168.201.37"/> > > > <nvpair id="nvpair.id49853" name="username" > value="stonith"/> > > > <nvpair id="nvpair.id49862" name="password" > value="#######"/> > > > </instance_attributes> > > > <meta_attributes id="primitive-r_stonith-dtbaims.meta"> > > > <nvpair id="resource_stickiness.meta.auto-7" > > > name="resource-stickiness" value="INFINITY"/> > > > </meta_attributes> > > > </primitive> > > > > This looks ok to me. It's really strange that it works with > > stonith from the command line. You can also try watching the wire > > with tcpdump: > > > > tcpdump -i eth0 -nv host 192.168.201.37 or port telnet > > > > Thanks, > > > > Dejan > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [mailto:linux-ha- > > > > [EMAIL PROTECTED] On Behalf Of Alex Strachan > > > > Sent: Monday, 1 December 2008 9:13 PM > > > > To: 'General Linux-HA mailing list' > > > > Subject: [Linux-HA] stonith - ibmrsa-telnet TIMEOUT,how to enable > > python > > > > debug > > > > > > > > Two nodes > > > > > > > > Node - dtbaims does not have heartbeat software running. > > > > > > > > > > > > > > > > [EMAIL PROTECTED] ~]# crm_mon -1 > > > > > > > > . > > > > > > > > Node: dtbaims (4f1614ac-d465-49db-b847-bac60f9dac6c): OFFLINE > > > > > > > > Node: itbaims (96595e56-e3db-42da-b13b-1e2d3a956529): online > > > > > > > > > > > > > > > > r_stonith-dtbaims (stonith:external/ibmrsa-telnet): > > Started > > > > itbaims > > > > > > > > .. > > > > > > > > > > > > > > > > I stop heartbeat on itbaims - stops eventually then restarts. > > > > > > > > > > > > > > > > On restart continual messages re. stonith failure of dtbaims. > > > > > > > > Dec 1 20:40:48 itbaims stonithd: [18185]: info: client tengine > [pid: > > > > 18187] > > > > requests a STONITH operation RESET on node dtbaims > > > > > > > > Dec 1 20:41:47 itbaims stonithd: [18185]: ERROR: Failed to STONITH > > the > > > > node > > > > dtbaims: optype=RESET, op_result=TIMEOUT > > > > > > > > Dec 1 20:41:48 itbaims stonithd: [18185]: info: client tengine > [pid: > > > > 18187] > > > > requests a STONITH operation RESET on node dtbaims > > > > > > > > .and so on. with the resources never starting on itbaims > > > > > > > > > > > > > > > > When I run stonith from the command line, host dtbaims is reset. > > > > > > > > > > > > > > > > [EMAIL PROTECTED] hb]# stonith -v -t external/ibmrsa-telnet -p > "dtbaimsilo > > > > 192.168.201.37 stonith ########" -T reset dtbaims > > > > > > > > > > > > > > > > > > > > > > > > How do you enable debug in the python script external/ibmrsa-telnet > to > > > > allow > > > > me to check what parameters are being passed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Software versions - > > > > > > > > [EMAIL PROTECTED] hb]# rpm -qa | egrep "heartbeat|pacema|openai" > > > > > > > > pacemaker-1.0.1-1.1 > > > > > > > > heartbeat-resources-2.99.2-4.1 > > > > > > > > heartbeat-common-2.99.2-4.1 > > > > > > > > libopenais2-0.80.3-11.1 > > > > > > > > heartbeat-2.99.2-4.1 > > > > > > > > libheartbeat2-2.99.2-4.1 > > > > > > > > openais-0.80.3-11.1 > > > > > > > > libpacemaker3-1.0.1-1.1 > > > > > > > > pacemaker-pygui-1.4-11.5 > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Linux-HA mailing list > > > > Linux-HA@lists.linux-ha.org > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > > > See also: http://linux-ha.org/ReportingProblems > > > > > > _______________________________________________ > > > Linux-HA mailing list > > > Linux-HA@lists.linux-ha.org > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > > See also: http://linux-ha.org/ReportingProblems > > _______________________________________________ > > Linux-HA mailing list > > Linux-HA@lists.linux-ha.org > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems