我们正在使用测试厨房来测试我们的厨师食谱。
在厨房容器内运行 chef-client 时,我看到了这个错误:
[2020-03-21T07:22:21+00:00] WARN: *****************************************
[2020-03-21T07:22:21+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2020-03-21T07:22:21+00:00] WARN: *****************************************
Starting Chef Client, version 14.2.0
Running handlers:
[2020-03-21T07:22:23+00:00] ERROR: Running exception handlers
Running handlers complete
[2020-03-21T07:22:23+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2020-03-21T07:22:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-03-21T07:22:23+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-03-21T07:22:23+00:00] FATAL: Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/chef_guid
我已经跑了
$ kitchen create
$ kitchen converge
在主机上。
在厨房 VM 上,目录 /etc/chef 不存在。
[root@kitchen-test ~]# ls /etc/chef
ls: cannot access /etc/chef: No such file or directory
我正在尝试以跟踪日志级别模式运行 chef-client,因为厨房收敛没有跟踪日志记录。Kitchen Converge 仅支持调试级别。
版本:
Test Kitchen version 2.3.3 (on host) with dokken driver
Chef: 14.2.0 (in kitchen vm)