Hi,
Thanks, I commit it :)
Jean
On Wed, Jan 5, 2011 at 6:01 PM, Laurent Guyon <laurent.gu...@adelux.fr>wrote:
> Hi,
>
> I spotted a little bug in the scheduler ending method (manage_signal()
> in scripts/shinken-scheduler) : retention save is asked even if
> self.sched is not initialized (occur when we stop a scheduler that have
> not received any conf).
>
> Scheduler crashes with a nice traceback (seeable when debug mode is
> enabled), so the end of the manage_signal() method is not executed :
>
> Exiting with signal 15
> Asking for a retention save
> Traceback (most recent call last):
> File "/opt/shinken/bin/shinken-scheduler", line 5, in <module>
> pkg_resources.run_script('Shinken==0.4', 'shinken-scheduler')
> ...
> File "/usr/local/lib/python2.6/dist-packages/
> Shinken-0.4-py2.6.egg/EGG-INFO/scripts/shinken-scheduler",
> line 394, in manage_signal
> self.sched.update_retention_file(forced=True)
> AttributeError: Shinken instance has no attribute 'sched'
>
>
> I've watched in the last revision of the git repository, and seems it
> have not been corrected yet, so here is a quick patch on
> scripts/shinken-scheduler :
>
> 394c394,395
> < self.sched.update_retention_file(forced=True)
> ---
> > if hasattr(self, 'sched'):
> > self.sched.update_retention_file(forced=True)
>
>
> Regards,
>
> Laurent Guyon
> Adelux
>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel