Hi Darren,
On Fri, Sep 04, 2009 at 04:48:30PM +0100, [email protected] wrote:
> The ibmrsa plugin requires mpcli to be installed and the ibmrsa-telnet
> plugin doesn't work with newer RSA boards. It seems the hostlist error
> was a dead herring leading me up the garden path.
>
> I've altered the ibmrsa-telnet plugin a little to get it working with
> the new format of the CLI (username : changed to login: > changed to
> system> etc). Not sure of how to officially submit patches or anything
> so if it's useful I've attached my changed version.
Darn, why did they have to change the text, as if "login" were so
much better than "username".
The only reasonable way would be to check the RSA release and
then to wait for the correct string. But first we have to figure
out when the change took place, that may be close to impossible.
I doubt that such information is in the release notes ;->
Looking at the Telnet documentation, there is another method
which waits for a set of regular expressions:
Telnet.expect(list...)
Perhaps we could modify the plugin to use that instead of
read_until(). I don't have an RSA board available though. Could
you try this out?
BTW, you also increased timeouts. Was that while you were testing
or is it really needed? At any rate, it's better to go with
longer timeouts.
Cheers,
Dejan
> Darren
>
> > -----Original Message-----
> > From: [email protected] [mailto:linux-ha-
> > [email protected]] On Behalf Of [email protected]
> > Sent: 03 September 2009 18:56
> > To: [email protected]
> > Subject: [Linux-HA] ibmrsa-telnet STONITH Not Working
> >
> > Hey all.
> >
> >
> >
> > I'm trying to add a couple of STONITH devices to my CIB, both
> > ibmrsa-telnet and they won't start with the following error logged:
> >
> >
> >
> > stonithd: [3662]: WARN: start STONITH-1 failed, because its hostlist
> is
> > empty
> >
> >
> >
> > The STONITH device doesn't accept the hostlist parameter:
> >
> >
> >
> > OGG-MAIL-02:~ # stonith -t external/ibmrsa-telnet -n
> >
> > nodename ip_address username password
> >
> >
> >
> > I've tried it with the param anyway and it makes no difference.
> >
> >
> >
> > I've found this patch
> > http://www.gossamer-
> > threads.com/lists/linuxha/dev/51584?do=post_view_thr
> > eaded requires hostlist. Has the patch broken ibmrsa-telnet STONITH?
> >
> >
> >
> > Thanks
> >
> > Darren
> >
> > _______________________________________________
> > 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
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems