创建内容运行时的故障



当我尝试部署内容运行时时,它会失败,而错误:

null_resource.singlenode (remote-exec): ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
null_resource.singlenode (remote-exec): Creating admin user: chef-admin
null_resource.singlenode: Still creating... (8m30s elapsed)
null_resource.singlenode (remote-exec): ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
Error applying plan:

尝试使用vSphere或其他模板创建内容 - 洪时,我会看到此错误。原因是什么?

这在安装厨师时看起来像是一个问题。在失败的VM上运行命令:

~/advanced-content-runtime/verify-installation.sh

并检查结果。

命令将指示厨师失败,但会向您显示厨师安装日志的位置:

~/advanced-content-runtime/.advanced-runtime-config/chef-install.log

然后检查关键的日志:

egrep pivotal ~/advanced-content-runtime/.advanced-runtime-config/chef-install.log

在正确安装厨师的系统上,上面命令看到的结果为:

[2017-11-07T16:44:10-06:00] INFO: Storing updated cookbooks/private-chef/templates/default/pivotal.rb.erb in the cache.
[2017-11-07T16:44:13-06:00] INFO: Processing file[/etc/opscode/pivotal.pem] action create (private-chef::private_keys line 33)
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] created file /etc/opscode/pivotal.pem
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] updated file contents /etc/opscode/pivotal.pem
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] owner changed to 999
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] group changed to 0
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] mode changed to 600
[2017-11-07T16:47:51-06:00] INFO: Processing template[/etc/opscode/pivotal.rb] action create (private-chef::ctl_config line 32)
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] created file /etc/opscode/pivotal.rb
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] updated file contents /etc/opscode/pivotal.rb
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] owner changed to 0
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] group changed to 0
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] mode changed to 644

从厨师日志的评论中,您可能会发现失败的厨师配置,特别是此问题:https://github.com/chef/chef/chef/chef-server/issues/issues/987。

您可以清洁厨师安装(chef-server-ctl cleanse),然后启动命令行以成功完成安装。从CAM的角度来看,您可以重新提交内容运行时的other模板创建,然后VM将成为CAM的可用和已知。

最新更新