On Friday, September 7, 2012 at 3:06 PM, KC Braunschweig wrote:
On Thu, Sep 6, 2012 at 8:26 AM, Tetsu Soh < "> > wrote:One more thing need your attention, exception handler can only handleruntime exception but not compile time exception.If your recipe broke on compile time, the chef-client will stop withoutrunning and exception handler.Would people consider this a bug? I (unfortunately) do a lot atcompile-time so dying there is fairly likely and I'd really like toknow about that too. Anyone have a good workaround? Would it beappropriate to always run exception handlers? Or should there be analternate mechanism for compile-time failures?A couple related points:- I noticed (probably for the same reason) that when runs die earlyyou don't get the run duration, which I'd still like to have.- I've run into this scenario a lot:1. Run updates resource X2. resource X notifies a restart of service Xd (delay)3. An exception happens on resource Y and the chef run dies beforedelayed notifications are processed. At this point service Xd hasn'tbeen restarted which is probably good because that might cause a badstate since the run failed.4. I come along to troubleshoot, fix things and run chef again5. chef run (including resource Y) now completes successfully butthe restart of service Xd never happened. Now I have a system thatseems like it should be in a good state but it might not be becauseservice Xd still has old config in memory and I have no way to knowthat and chef will never fix it.Anyone have a good way to prevent or address the above?Thanks,KC
Archive powered by MHonArc 2.6.16.