Re: Event delivery issue after Provider Crash

Arunkumar S <[email protected]> Wed, 19 Nov 2014 01:05:58 -0800
Newsgroups gmane.network.open-pegasus.general
Message-ID <CAO-MqpSSP6Mj9hoc95o1mwRJUeY-LYEzLFLV4Se6pbGvmzKuxw@mail.gmail.com>
--001a113fd708229b37050832859c
Content-Type: text/plain; charset=ISO-8859-1

Thanks a lot.

The issue got fixed with OP 2.13.0
Its related to Bug: http://bugzilla.openpegasus.org/show_bug.cgi?id=9369

Thanks,
Arun

On Tue, Nov 18, 2014 at 9:08 AM, Arunkumar S <[email protected]>
wrote:

> Hi Dev,
>
> My intention is not to debug the crash, since it is induced crash.
>
> I am using Pegasus 2.11.1.   I will try 2.13.0 and check if the issue is
> still reproducible.
>
> Thanks,
> Arun
>
>
>
>
> On Tue, Nov 18, 2014 at 12:31 AM, Devchandra L Meetei <[email protected]>
> wrote:
>
>> Have you tried running the provider in process. If it crashes while
>> running as in process. Getting a BT might help.
>> Which version of pegasus u r using. There was a related fix in pegasus
>> 2.13
>> On Nov 18, 2014 7:35 AM, "Arunkumar S" <[email protected]>
>> wrote:
>>
>>> Hi Karl et al.,
>>>
>>> Thanks for your inputs.
>>>
>>> Actually, I am trying to unit test my provider against provider crash.
>>>
>>> The test objective is to ensure that Events are delivered properly, once
>>> provider is restarted by cimserver after its first crash, as per PEP*#:*
>>>  360
>>>
>>> https://collaboration.opengroup.org/pegasus/pp/documents/25003/PEP360_PLI_Ver1_2.html
>>>
>>> The steps:
>>> 1. Induce the provider to have NULL pointer Crash for a specific
>>> invokeMethod operation and get message "Lost connection with cimprovagt
>>> ..."
>>> 2. Generate a hardware event
>>> 3. Check whether the CIM Client - Event listener is able to receive that
>>> event or not.
>>>
>>> Having looked at the Pegasus and my provider log,   I have confirmed
>>> that the provider is getting crashed and then restarted by cimserver, but
>>> subsequently the event delivery is failing.
>>> The CMPI method - CBDeliverIndication for Event delivery is failing.
>>>
>>> My provider has all capabilities combined - Instance, Association,
>>> Method and Indication.
>>> maxFailedProviderModuleRestarts is set to default value =3
>>>
>>> Do I need to enable any specific CIM attribute or cimconfig parameter. ?
>>>
>>> Thanks,
>>> Arun
>>>
>>> On Mon, Nov 17, 2014 at 5:54 AM, Karl Schopmeyer <
>>> [email protected]> wrote:
>>>
>>>> Here is an example of a script that would allow running just some oop
>>>> providers under valgrind
>>>>
>>>> #!/bin/sh
>>>> ## Original Author: Tim Potter
>>>> # move cimprovagt to cimprovagt.real
>>>> # move this file to cimprovagt
>>>> #
>>>> # mv /usr/sbin/cimprovagt /usr/sbin/cimprovagt.real
>>>> # cp cimprovagt.wrapper /usr/sbin/cimprovagt
>>>>
>>>> ## By default the script doesn't call valgrind - enable it by
>>>> ## creating a semaphore file of the form /tmp/$MODULE.valgrind where
>>>> module
>>>> ## is the module name in the output of "cimprovider -l".
>>>>
>>>> ## Or create a file /tmp/LogAll.valgrind which valgrinds all providers.
>>>>
>>>> module=$5
>>>>
>>>> VALGRIND_ARGS="--leak-check=yes --trace-children=yes
>>>> --log-file=/tmp/$module.valgrind"
>>>>
>>>> if [ -e /tmp/$module.valgrind -o -e /tmp/LogAll.valgrind ]; then
>>>>         exec /usr/bin/valgrind $VALGRIND_ARGS \
>>>>         /usr/sbin/cimprovagt.real "$@"
>>>> else
>>>>         exec /usr/sbin/cimprovagt.real "$@"
>>>> fi
>>>>
>>>> On 11/16/2014 10:52 PM, Arunkumar S wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> My provider is encountering a crash occasionally.  The CIM server
>>>>> automatically restarts the provider process. But the events are not
>>>>> delivered after the provider restart.
>>>>>
>>>>> I have confirmed using cimsub that the event subscription is active.
>>>>> But even then, the events are not delivered to the target system.
>>>>>
>>>>> But, If I restart the entire cimserver altogether, I can get the event
>>>>> delivered.
>>>>>
>>>>> Thanks,
>>>>> Arun
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>

--001a113fd708229b37050832859c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks a lot.<div><br></div><div>The issue got fixed with =
OP 2.13.0=A0</div><div>Its related to Bug:=A0<a href=3D"http://bugzilla.ope=
npegasus.org/show_bug.cgi?id=3D9369">http://bugzilla.openpegasus.org/show_b=
ug.cgi?id=3D9369</a></div><div><br></div><div>Thanks,</div><div>Arun</div><=
/div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Nov =
18, 2014 at 9:08 AM, Arunkumar S <span dir=3D"ltr">&lt;<a href=3D"mailto:ar=
[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi=
 Dev,<div><br></div><div>My intention is not to debug the crash, since it i=
s induced crash.</div><div><br></div><div>I am using Pegasus 2.11.1. =A0 I =
will try 2.13.0 and check if the issue is still reproducible.=A0</div><div>=
<br></div><div>Thanks,</div><div>Arun</div><div><br></div><div><br></div><d=
iv><br></div></div><div class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gm=
ail_extra"><br><div class=3D"gmail_quote">On Tue, Nov 18, 2014 at 12:31 AM,=
 Devchandra L Meetei <span dir=3D"ltr">&lt;<a href=3D"mailto:dlmeetei@gmail=
.com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><p dir=3D"ltr">Have you tried running the provider =
in process. If it crashes while running as in process. Getting a BT might h=
elp.<br>
Which version of pegasus u r using. There was a related fix in pegasus 2.13=
</p><div><div>
<div class=3D"gmail_quote">On Nov 18, 2014 7:35 AM, &quot;Arunkumar S&quot;=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">arun=
[email protected]</a>&gt; wrote:<br type=3D"attribution"><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex"><div dir=3D"ltr">Hi Karl et al.,<div><br></div><div>Tha=
nks for your inputs.<br><div><br></div><div>Actually, I am trying to unit t=
est my provider against provider crash.=A0</div><div><br></div><div>The tes=
t objective is to ensure that Events are delivered properly, once provider =
is restarted by cimserver after its first crash, as per PEP<b style=3D"colo=
r:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium">#:</b>=
<span style=3D"color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-=
size:medium">=A0360</span></div><div><a href=3D"https://collaboration.openg=
roup.org/pegasus/pp/documents/25003/PEP360_PLI_Ver1_2.html" target=3D"_blan=
k">https://collaboration.opengroup.org/pegasus/pp/documents/25003/PEP360_PL=
I_Ver1_2.html</a></div><div><br></div><div>The steps:</div><div>1. Induce t=
he provider to have NULL pointer Crash for a specific invokeMethod operatio=
n and get message &quot;<span style=3D"color:rgb(0,0,0);font-family:&#39;Ti=
mes New Roman&#39;;font-size:medium">Lost connection with cimprovagt ...&qu=
ot;</span><br></div><div>2. Generate a hardware event</div><div>3. Check wh=
ether the CIM Client - Event listener is able to receive that event or not.=
=A0</div><div><br></div><div>Having looked at the Pegasus and my provider l=
og, =A0 I have confirmed that the provider is getting crashed and then rest=
arted by cimserver, but subsequently the event delivery is failing.=A0</div=
><div>The CMPI method -=A0<span style=3D"color:rgb(84,84,84);font-family:ar=
ial,sans-serif;font-weight:bold;line-height:14.5600004196167px">CBDeliverIn=
dication for Event delivery is failing. =A0</span><br></div><div><div><span=
 style=3D"color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:=
medium"><br></span></div><div>My provider has all capabilities combined - I=
nstance, Association, Method and Indication.=A0</div><div><span style=3D"co=
lor:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium">maxF=
ailedProviderModuleRestarts is set to default value =3D3</span></div><div><=
span style=3D"color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-s=
ize:medium"><br></span></div><div>Do I need to enable any specific CIM attr=
ibute or cimconfig parameter. ?</div></div><div><br></div><div>Thanks,</div=
><div>Arun</div></div></div><div class=3D"gmail_extra"><br><div class=3D"gm=
ail_quote">On Mon, Nov 17, 2014 at 5:54 AM, Karl Schopmeyer <span dir=3D"lt=
r">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">k.schop=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">He=
re is an example of a script that would allow running just some oop provide=
rs under valgrind<br>
<br>
#!/bin/sh<br>
## Original Author: Tim Potter<br>
# move cimprovagt to cimprovagt.real<br>
# move this file to cimprovagt<br>
#<br>
# mv /usr/sbin/cimprovagt /usr/sbin/cimprovagt.real<br>
# cp cimprovagt.wrapper /usr/sbin/cimprovagt<br>
<br>
## By default the script doesn&#39;t call valgrind - enable it by<br>
## creating a semaphore file of the form /tmp/$MODULE.valgrind where module=
<br>
## is the module name in the output of &quot;cimprovider -l&quot;.<br>
<br>
## Or create a file /tmp/LogAll.valgrind which valgrinds all providers.<br>
<br>
module=3D$5<br>
<br>
VALGRIND_ARGS=3D&quot;--leak-check=3D<u></u>yes --trace-children=3Dyes --lo=
g-file=3D/tmp/$module.<u></u>valgrind&quot;<br>
<br>
if [ -e /tmp/$module.valgrind -o -e /tmp/LogAll.valgrind ]; then<br>
=A0 =A0 =A0 =A0 exec /usr/bin/valgrind $VALGRIND_ARGS \<br>
=A0 =A0 =A0 =A0 /usr/sbin/cimprovagt.real &quot;$@&quot;<br>
else<br>
=A0 =A0 =A0 =A0 exec /usr/sbin/cimprovagt.real &quot;$@&quot;<br>
fi<span><br>
<br>
On 11/16/2014 10:52 PM, Arunkumar S wrote:<br>
</span><div><div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
My provider is encountering a crash occasionally.=A0 The CIM server automat=
ically restarts the provider process. But the events are not delivered afte=
r the provider restart.<br>
<br>
I have confirmed using cimsub that the event subscription is active. But ev=
en then, the events are not delivered to the target system.<br>
<br>
But, If I restart the entire cimserver altogether, I can get the event deli=
vered.<br>
<br>
Thanks,<br>
Arun<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--001a113fd708229b37050832859c--