[Pacemaker] ocf:heartbeat:pingd receives wrong value in $__ACTION
Andrew Beekhof
andrew at beekhof.net
Thu Nov 19 08:05:18 UTC 2009
On Wed, Nov 18, 2009 at 11:04 PM, hj lee <kerdosa at gmail.com> wrote:
> Hi,
>
> Sorry for long delay. This is my pingd configuration.
>
> primitive pingd-res ocf:heartbeat:pingd \
> params dampen="5s" multiplixer="20000" host_list="my-gateway-ip" \
> op pingd-monitor-op interval="1s" timeout="10s" \
this is your problem. you should have this instead:
op monitor interval="1s" timeout="10s"
> meta target-role="started"
> clone pingd-clone pingd-res \
> meta target-role="Started"
>
> The print from pingd rsc:
> Nov 18 15:02:20 silverthorne2 pingd[13186]: INFO: __OCF_ACTION
> pingd-monitor-op
>
> So I added the following code to pingd rsc to make it work:
>
> if echo "$__OCF_ACTION" | grep monitor > /dev/null; then
> __OCF_ACTION=monitor
> fi
>
> Thanks
>
> On Mon, Nov 16, 2009 at 7:34 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
>>
>> On Thu, Nov 12, 2009 at 9:02 PM, hj lee <kerdosa at gmail.com> wrote:
>> >
>> >
>> > On Thu, Nov 12, 2009 at 3:58 AM, Lars Marowsky-Bree <lmb at suse.de> wrote:
>> >>
>> >> On 2009-11-11T16:48:36, hj lee <kerdosa at gmail.com> wrote:
>> >>
>> >> > Here rewriting again with correct name:
>> >> >
>> >> > I am using pacemaker-1.0.5 on CentOS 5.3 with openais cluster stack.
>> >> > I
>> >> > set
>> >> > up ocf:hearbeat:pingd as a clone and enabled monitor operation. The
>> >> > monitor
>> >> > operation returns $OCF_ERR_UNIMPLEMENTED. I printed $__OCF_ACTION
>> >> > variable
>> >> > in pingd RA, surprisingly that variable is set to pingd-monitor-op,
>> >> > not
>> >> > monitor! Doesn't any body have the same issue?
>> >>
>> >> That is certainly very weird. Does this only affect the pingd RA for
>> >> you?
>> >
>> > Yes, this is the only one.
>>
>> what does your configuration look like?
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>
>
> --
> Dream with longterm vision!
> kerdosa
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>
More information about the Pacemaker
mailing list