[Pacemaker] ocf:heartbeat:pingd receives wrong value in $__ACTION

hj lee kerdosa at gmail.com
Wed Nov 18 22:11:56 UTC 2009


Hi again,

I found what is wrong. I should use "monitor" as an operation name in crm
command. I though it is id, realized today it becomes operation name
directly.

Thanks
hj

On Wed, Nov 18, 2009 at 3: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" \
>         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
>



-- 
Dream with longterm vision!
kerdosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091118/485e700e/attachment-0002.htm>


More information about the Pacemaker mailing list