【发布时间】:2016-08-21 06:12:28
【问题描述】:
我正在尝试在 client.log 上使用日志过滤器来评估 Chef 是否成功运行。
在 Chef 运行的正常过程中,我的食谱要求重新启动。
厨师日志:
FATAL: Chef::Exceptions::Reboot: Rebooting server at a recipe's request.
为什么 Chef 在正常重启请求时会抛出错误?如何防止记录此错误。
我的重启请求看起来像
reboot "my_reboot" do
action :reboot_now
reason 'There is a pending reboot.'
only_if { reboot_pending? }
delay_mins 0.5
end
【问题讨论】:
-
除了上面的日志,还有一点可以说明原因。请尝试在调试中运行以检查原因或提供更多日志。
标签: chef-infra chef-recipe chef-zero