[Pacemaker] Problem with external/ipmi stonith plugin?!

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Feb 3 13:22:15 UTC 2010


Hi,

On Wed, Feb 03, 2010 at 01:21:48PM +0100, Moritz Krinke wrote:
> Hello,
> 
> i'm trying to get the ipmi plugin to work using the configuration shown. The plugin always reports rc 1 to pacemaker.
> I had a look at the ipmi script and verified that the cmds used to indeed work (ipmitool is working as is the connection to the ipmi device if i set the needed env vars)
> 
> But, looking at the script, i find it strange that it seems to expect having the hostname of the machine which is supposed to be controlled as a seconds argument.
> I echo'd all passed parameters to logfile, but the script never gets passed a second argument.
> 
> Is the plugin broken or am i missing something in the configuration?
> 
> Im quite new to pacemaker/corosync so forgive me for a maybe obvious fault ;)
> 
> centos5.4 x86_64
> corosync-1.2.0-1.el5
> openais-1.1.0-1.el5
> pacemaker-1.0.7-2.el5
> 
> crm configure show:
> node ds10-100-64-202
> node ds10-100-64-204
> primitive STONITH202 stonith:external/ipmi \
>         op monitor interval="10m" timeout="1m" \
>         params hostname="ds10-100-64-202" ipaddr="10.100.64.203" userid="root" passwd="pw" interface="lan" \
>         meta target-role="started"
> primitive STONITH204 stonith:external/ipmi \
>         op monitor interval="10m" timeout="1m" \
>         params hostname="ds10-100-64-204" ipaddr="10.100.64.205" userid="root" passwd="pw" interface="lan" \
>         meta target-role="started"
> ...
> location l-STONITH202 STONITH202 -inf: ds10-100-64-202
> location l-STONITH204 STONITH204 -inf: ds10-100-64-204
> property $id="cib-bootstrap-options" \
>         dc-version="1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         no-quorum-policy="ignore" \
>         stonith-action="poweroff"
> rsc_defaults $id="rsc_defaults-options" \
>         resource-stickiness="100"
> 
> crm status:
> Failed actions:
>     STONITH202_start_0 (node=ds10-100-64-204, call=24, rc=1, status=complete): unknown error
>     STONITH204_start_0 (node=ds10-100-64-202, call=132, rc=1, status=complete): unknown error
> 
> 
> log:
> ...
> WARN: unpack_rsc_op: Processing failed op STONITH204_start_0 on ds10-100-64-202: unknown error (1)
> ...

Nothing else in the logs? Unfortunately, the stonith logging was
not very good until a few months ago (included in the latest
1.0.3 release). If your copy is still older, then you'll have to
see what happens using the stonith program:

# stonith -t external/ipmi -n  (to see the list of params)
# stonith -d -t external/ipmi -p "params" -lS

See stonith(8).

Thanks,

Dejan

> Any Ideas/Suggestions? Thanks ;)
> 
> Moritz
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list