Hi,

On Wed, Feb 23, 2011 at 06:44:02PM -0800, Avestan wrote:
> 
> Hello everyone,
> 
> I have been trying to get STONITH work with the MasterSwitch Plus (AP9225 +
> AP9617) with very little success.
> 
> I have to mention that I am able to access the MasterSwitch Plus via either
> serial port or Ethernet port with no issue.  But when I try the stonith
> command, it appears that there is some issue with the login.
> 
> [root@server1 ~]# stonith -d 1 -t apcmaster -p "192.168.1.50 apc apc" -l
> ** (process:4930): DEBUG: NewPILPluginUniv(0xa03b008)
> ** (process:4930): DEBUG: PILS: Plugin path =
> /usr/lib/stonith/plugins:/usr/lib/pils/plugins
> ** (process:4930): DEBUG: NewPILInterfaceUniv(0xa03c910)
> ** (process:4930): DEBUG: NewPILPlugintype(0xa03ca68)
> ** (process:4930): DEBUG: NewPILPlugin(0xa03cdc8)
> ** (process:4930): DEBUG: NewPILInterface(0xa03cb00)
> ** (process:4930): DEBUG:
> NewPILInterface(0xa03cb00:InterfaceMgr/InterfaceMgr)*** user_data: 0x0
> *******
> ** (process:4930): DEBUG:
> InterfaceManager_plugin_init(0xa03cb00/InterfaceMgr)
> ** (process:4930): DEBUG: Registering Implementation manager for Interface
> type 'InterfaceMgr'
> ** (process:4930): DEBUG: PILS: Looking for InterfaceMgr/generic =>
> [/usr/lib/stonith/plugins/InterfaceMgr/generic.so]
> ** (process:4930): DEBUG: Plugin file
> /usr/lib/stonith/plugins/InterfaceMgr/generic.so does not exist
> ** (process:4930): DEBUG: PILS: Looking for InterfaceMgr/generic =>
> [/usr/lib/pils/plugins/InterfaceMgr/generic.so]
> ** (process:4930): DEBUG: Plugin path for InterfaceMgr/generic =>
> [/usr/lib/pils/plugins/InterfaceMgr/generic.so]
> ** (process:4930): DEBUG: PluginType InterfaceMgr already present
> ** (process:4930): DEBUG: Plugin InterfaceMgr/generic  init function:
> InterfaceMgr_LTX_generic_pil_plugin_init
> ** (process:4930): DEBUG: NewPILPlugin(0xa03d690)
> ** (process:4930): DEBUG: Plugin InterfaceMgr/generic loaded and
> constructed.
> ** (process:4930): DEBUG: Calling init function in plugin
> InterfaceMgr/generic.
> ** (process:4930): DEBUG: NewPILInterface(0xa03d630)
> ** (process:4930): DEBUG:
> NewPILInterface(0xa03d630:InterfaceMgr/stonith2)*** user_data: 0xa03ce80
> *******
> ** (process:4930): DEBUG: Registering Implementation manager for Interface
> type 'stonith2'
> ** (process:4930): DEBUG: IfIncrRefCount(1 + 1 )
> ** (process:4930): DEBUG: PluginIncrRefCount(0 + 1 )
> ** (process:4930): DEBUG: IfIncrRefCount(1 + 100 )
> ** (process:4930): DEBUG: PILS: Looking for stonith2/apcmaster =>
> [/usr/lib/stonith/plugins/stonith2/apcmaster.so]
> ** (process:4930): DEBUG: Plugin path for stonith2/apcmaster =>
> [/usr/lib/stonith/plugins/stonith2/apcmaster.so]
> ** (process:4930): DEBUG: Creating PluginType for stonith2
> ** (process:4930): DEBUG: NewPILPlugintype(0xa03db70)
> ** (process:4930): DEBUG: Plugin stonith2/apcmaster  init function:
> stonith2_LTX_apcmaster_pil_plugin_init
> ** (process:4930): DEBUG: NewPILPlugin(0xa03dcf0)
> ** (process:4930): DEBUG: Plugin stonith2/apcmaster loaded and constructed.
> ** (process:4930): DEBUG: Calling init function in plugin
> stonith2/apcmaster.
> ** (process:4930): DEBUG: NewPILInterface(0xa03dc38)
> ** (process:4930): DEBUG: NewPILInterface(0xa03dc38:stonith2/apcmaster)***
> user_data: 0x26da2c *******
> ** (process:4930): DEBUG: IfIncrRefCount(101 + 1 )
> ** (process:4930): DEBUG: PluginIncrRefCount(0 + 1 )
> ** (process:4930): DEBUG: Got '\xff'
> ** (process:4930): DEBUG: Got '\xfb'
> ** (process:4930): DEBUG: Got '\u0001'
> ** (process:4930): DEBUG: Got '
> '
> ** (process:4930): DEBUG: Got '\u000d'
> ** (process:4930): DEBUG: Got 'U'
> ** (process:4930): DEBUG: Got 's'
> ** (process:4930): DEBUG: Got 'e'
> ** (process:4930): DEBUG: Got 'r'
> ** (process:4930): DEBUG: Got ' '
> ** (process:4930): DEBUG: Got 'N'
> ** (process:4930): DEBUG: Got 'a'
> ** (process:4930): DEBUG: Got 'm'
> ** (process:4930): DEBUG: Got 'e'
> ** (process:4930): DEBUG: Got ' '
> ** (process:4930): DEBUG: Got ':'
> ** (process:4930): DEBUG: Got ' '
> 
> ** (process:4930): CRITICAL **: Did not find string Escape character is
> '^]'. from APC MasterSwitch.
> 
> ** (process:4930): CRITICAL **: Received [\xff\xfb\u0001
> \u000dUser Name : ]
> 
> ** (process:4930): CRITICAL **: Did not find string Escape character is
> '^]'. from APC MasterSwitch.
> 
> ** (process:4930): CRITICAL **: Received []
> 
> ** (process:4930): CRITICAL **: Did not find string Escape character is
> '^]'. from APC MasterSwitch.
> 
> ** (process:4930): CRITICAL **: Received []
> 
> [root@server1 ~]#
> 
> The package stonith which is installed is: stonith - 2.0.8-1.fc7.i386

Hmm, this looks ancient.

> I have been searching for a solution and it appears that there is some
> complication with string Escape character is '^]' which is not issued.
> 
> Can someone help me out or point me to the right direction in order to get
> this issue fixed?

There's a patch which fixes this issue, but it has never been
applied for Dave feared it could break some installations. Patch
attached here:

http://developerbugs.linux-foundation.org/show_bug.cgi?id=1891

Thanks,

Dejan

> Thanks,
> 
> Avestan
> 
> -- 
> View this message in context: 
> http://old.nabble.com/stonith-%2B-APC-Masterswitch-%28AP9225-%2B-AP9616%29-tp31000780p31000780.html
> Sent from the Linux-HA mailing list archive at Nabble.com.
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
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