【发布时间】:2016-02-10 21:09:05
【问题描述】:
我无法找到如何在 linux 中仅使用厨师安装一次设备。这意味着在其他厨师客户端上,该资源不应执行,因为那里的设备已安装到特定路径。 我如何使用厨师的幂等性来做到这一点? ...
这是我在 chef-client 日志末尾看到的日志堆栈跟踪
[2013-11-06T23:12:28+00:00] ERROR: Running exception handlers
[2013-11-06T23:12:29+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-11-06T23:12:29+00:00] ERROR: Exception handlers complete
[2013-11-06T23:12:29+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-06T23:12:29+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: mount[/testpath] (mycookbook::myrecipe line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '32'
STDOUT:
STDERR: mount: /dev/xvdb already mounted or /testpath busy
mount: according to mtab, /dev/xvdb is already mounted on /testpath
---- End output of mount -t auto -o defaults /dev/xvdb /testpath ----
Ran mount -t auto -o defaults /dev/xvdb /testpath returned 32
【问题讨论】:
标签: linux amazon-web-services mount chef-infra