Add this in the no_more_a_problem function :
print "Here are my impacts", self.impacts
for i in self.impacts:
print "Impact:", i.get_dbg_name()
for p in i.source_problems:
print p.get_dbg_name()
Jean
On Mon, Jul 26, 2010 at 2:05 PM, nap <[email protected]> wrote:
> Oh it was to do not send too much mail in the mailing list, but if
> other want to folow the debuging phase, we can get back onlist, ti's
> not a problem :)
>
> The idea here is to find why we remove twice the problem (host
> pointer) from an impact. Impacts list is a list of a set (way to have
> unique element list) so it should not have duplication of impacts in
> the list. I ask Nicolas to look at this list before we deregister. If
> it's a true unique list (and itshould be), it can be that the problem
> is deregister twice (it can be when he goes UP, but also if a problem
> register for it, so it's now an impact, so t deregister from it's own
> impacts). But I don't see how it can bug here. But it does, so I must
> miss something :)
>
>
> Jean
>
> On Mon, Jul 26, 2010 at 1:55 PM, Michael Friedrich
> <[email protected]> wrote:
>> nap wrote:
>>> Ok, let's start for debugging. I send you offlist instructions to find it.
>>>
>>
>> Why offlist? Maybe others want to stumble around too :p
>>
>> Kind regards,
>> Michael
>>
>>> When the debug will be finised, we will post the bug and tha patch :)
>>>
>>>
>>> Jean
>>>
>>> On Mon, Jul 26, 2010 at 1:50 PM, NICOLAS DUPEUX
>>> <[email protected]> wrote:
>>>
>>>> No problem to reproduce, it's just a matter of seconds after loading the
>>>> configuration.
>>>>
>>>> Here is the stack trace without my patch :
>>>>
>>>> Traceback (most recent call last):
>>>> File "./shinken-scheduler.py", line 495, in<module>
>>>> p.main()
>>>> File "./shinken-scheduler.py", line 412, in main
>>>> self.sched.run()
>>>> File "/opt/shinken-20100720/src/scheduler.py", line 737, in run
>>>> f()
>>>> File "/opt/shinken-20100720/src/scheduler.py", line 552, in
>>>> consume_results
>>>> item.consume_result(c)
>>>> File "/opt/shinken-20100720/src/schedulingitem.py", line 597, in
>>>> consume_result
>>>> self.no_more_a_problem()
>>>> File "/opt/shinken-20100720/src/schedulingitem.py", line 152, in
>>>> no_more_a_problem
>>>> impact.deregister_a_problem(self)
>>>> File "/opt/shinken-20100720/src/schedulingitem.py", line 221, in
>>>> deregister_a_problem
>>>> self.source_problems.remove(pb)
>>>> ValueError: list.remove(x): x not in list
>>>>
>>>> Do you want others elements ?
>>>>
>>>> Regards
>>>>
>>>> ----- "nap"<[email protected]> a écrit :
>>>>
>>>>
>>>>> Thanks.
>>>>>
>>>>> Is it reproductible? It should not be twice "deregister" of a
>>>>> problem,
>>>>> so there is a problem :)
>>>>>
>>>>>
>>>>> Jean
>>>>>
>>>>> On Mon, Jul 26, 2010 at 11:20 AM, NICOLAS DUPEUX
>>>>> <[email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> This patch allow my scheduler to live more than a couple of
>>>>>>
>>>>> seconds.
>>>>>
>>>>>> It shouldn't be apply as is because it doesn't solve the root cause
>>>>>>
>>>>> (why the problem isn't in the list)
>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> Nicolas DUPEUX<[email protected]>
>>>>>> Arkea - Domaine Systèmes
>>>>>> tel : 02.98.00.36.68
>>>>>>
>>>>>>
>>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>>> The Palm PDK Hot Apps Program offers developers who use the
>>>>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a
>>>>>>
>>>>> share
>>>>>
>>>>>> of $1 Million in cash or HP Products. Visit us here for more
>>>>>>
>>>>> details:
>>>>>
>>>>>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>>>>>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>>>>>> _______________________________________________
>>>>>> Shinken-devel mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>>>>>
>>>>>>
>>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> The Palm PDK Hot Apps Program offers developers who use the
>>>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>>>>>
>>>>> of $1 Million in cash or HP Products. Visit us here for more details:
>>>>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>>>>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>>>>> _______________________________________________
>>>>> Shinken-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>>>>
>>>> --
>>>> Nicolas DUPEUX<[email protected]>
>>>> Arkea - Domaine Systèmes
>>>> tel : 02.98.00.36.68
>>>>
>>>> --
>>>> Ce message et toutes les pieces jointes (ci-apres le "message") sont
>>>> confidentiels et etablis a l'intention exclusive de ses destinataires.
>>>> Toute utilisation ou diffusion non autorisee est interdite. Tout
>>>> message etant susceptible d'alteration, l'emetteur decline toute
>>>> responsabilite au titre de ce message s'il a ete altere, deforme ou
>>>> falsifie.
>>>> -----------------------------------
>>>> This message and any attachments (the "message") are confidential and
>>>> intended solely for the addressees. Any unauthorised use or
>>>> dissemination is prohibited. As e-mails are susceptible to alteration,
>>>> the issuer shall not be liable for the message if altered, changed
>>>> or falsified.
>>>>
>>>> ------------------------------------------------------------------------------
>>>> The Palm PDK Hot Apps Program offers developers who use the
>>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>>>> of $1 Million in cash or HP Products. Visit us here for more details:
>>>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>>>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>>>> _______________________________________________
>>>> Shinken-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>>>
>>>>
>>> ------------------------------------------------------------------------------
>>> The Palm PDK Hot Apps Program offers developers who use the
>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>>> of $1 Million in cash or HP Products. Visit us here for more details:
>>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>>> _______________________________________________
>>> Shinken-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>>
>>>
>>
>>
>> --
>> DI (FH) Michael Friedrich
>>
>> Vienna University Computer Center
>> Universitaetsstrasse 7 A-1010 Vienna, Austria
>>
>> email: [email protected]
>> phone: +43 1 4277 14359
>> fax: +43 1 4277 14279
>> web: http://www.univie.ac.at/zid
>>
>> Icinga Core& IDOUtils Developer
>> http://www.icinga.org
>>
>>
>> ------------------------------------------------------------------------------
>> The Palm PDK Hot Apps Program offers developers who use the
>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>> of $1 Million in cash or HP Products. Visit us here for more details:
>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>> _______________________________________________
>> Shinken-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel