[ClusterLabs] [OCF] Pacemaker reports a multi-state clone resource instance as running while it is not in fact

Jan Pokorný jpokorny at redhat.com
Wed Jan 6 08:57:04 EST 2016


Hello ,

On 04/01/16 17:33 +0100, Bogdan Dobrelya wrote:
> On 04.01.2016 17:14, Dejan Muhamedagic wrote:
>> Hi,
>> 
>> On Mon, Jan 04, 2016 at 04:52:43PM +0100, Bogdan Dobrelya wrote:
>>> On 04.01.2016 16:36, Ken Gaillot wrote:
>>>> On 01/04/2016 09:25 AM, Bogdan Dobrelya wrote:
>>>>> On 04.01.2016 15:50, Bogdan Dobrelya wrote:
>> [...]
>>>>> Also note, that lrmd spawns *many* monitors like:
>>>>> root      6495  0.0  0.0  70268  1456 ?        Ss    2015   4:56  \_
>>>>> /usr/lib/pacemaker/lrmd
>>>>> root     31815  0.0  0.0   4440   780 ?        S    15:08   0:00  |   \_
>>>>> /bin/sh /usr/lib/ocf/resource.d/dummy/dummy monitor
>>>>> root     31908  0.0  0.0   4440   388 ?        S    15:08   0:00  |
>>>>>   \_ /bin/sh /usr/lib/ocf/resource.d/dummy/dummy monitor
>>>>> root     31910  0.0  0.0   4440   384 ?        S    15:08   0:00  |
>>>>>       \_ /bin/sh /usr/lib/ocf/resource.d/dummy/dummy monitor
>>>>> root     31915  0.0  0.0   4440   392 ?        S    15:08   0:00  |
>>>>>           \_ /bin/sh /usr/lib/ocf/resource.d/dummy/dummy monitor
>>>>> ...
>>>> 
>>>> At first glance, that looks like your monitor action is calling itself
>>>> recursively, but I don't see how in your code.
>>> 
>>> Yes, it should be a bug in the ocf-shellfuncs's ocf_log().
>> 
>> If you're sure about that, please open an issue at
>> https://github.com/ClusterLabs/resource-agents/issues
> 
> Submitted [0]. Thank you!
> Note, that it seems the very import action causes the issue, not the
> ocf_run or ocf_log code itself.
> 
> [0] https://github.com/ClusterLabs/resource-agents/issues/734

Have to wonder if there is any correlation with the issue discussed
recently:

http://oss.clusterlabs.org/pipermail/users/2015-November/001806.html

Note that ocf:pacemaker:ClusterMon resource also sources
ocf-shellfuncs set of helper functions.

-- 
Jan (Poki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20160106/1e615aef/attachment-0003.sig>


More information about the Users mailing list