创建内容运行时失败

时间:2017-11-29 21:18:04

标签: cloud-automation-manager

当我尝试部署内容运行时,它失败并显示错误:

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或其他模板创建内容运行时,我看到此错误。可能是什么原因?

2 个答案:

答案 0 :(得分:0)

这在安装厨师时看起来像个问题。在失败的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

答案 1 :(得分:0)

通过查看主厨日志,您可能会发现主厨配置失败,特别是此问题:https://github.com/chef/chef-server/issues/987

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

相关问题