使用Bosh在virtualbox上部署CF时出错

时间:2018-11-16 16:12:35

标签: bosh cloud-foundry-bosh

我正在使用Mac OS,并尝试使用BOSH在virtualbox上部署CF。

已安装的BOSH Director具有以下详细信息

$ bosh -e vbox env
Using environment '192.168.50.6' as user 'admin'

Name      bosh-lite  
UUID      bbdcc68d-5390-4d08-bd80-900bf3aa3551  
Version   268.2.0 (00000000)  
CPI       warden_cpi  
Features  compiled_package_cache: disabled  
          config_server: enabled  
          local_dns: enabled  
          power_dns: disabled  
          snapshots: disabled  
User      admin  

Bosh CLI版本是

version 5.4.0-891ff634-2018-11-14T00:21:14Z

要部署CF,我运行以下脚本

bosh -e 192.168.50.6 -d cf deploy \
  cf-deployment.yml \
  -o operations/bosh-lite.yml \
  -v system_domain=bosh-lite.com

我收到以下错误:

Task 33 | 15:26:34 | Updating instance diego-api: diego-api/95e076b7-0fc4-43e0-9db6-afbd8b79d76d (0) (canary) (00:20:19)
                   L Error: 'diego-api/95e076b7-0fc4-43e0-9db6-afbd8b79d76d (0)' is not running after update. Review logs for failed jobs: bbs, silk-controller, locket
Task 33 | 15:46:53 | Error: 'diego-api/95e076b7-0fc4-43e0-9db6-afbd8b79d76d (0)' is not running after update. Review logs for failed jobs: bbs, silk-controller, locket

Task 33 Started  Fri Nov 16 15:24:57 UTC 2018
Task 33 Finished Fri Nov 16 15:46:53 UTC 2018
Task 33 Duration 00:21:56
Task 33 error

Updating deployment:
  Expected task '33' to succeed but state is 'error'

Exit code 1
我使用的

cf-deployment文件和ops文件(来自iaas / bosh-lite / cloud-config.yml)文件夹来自

https://github.com/cloudfoundry/cf-deployment

我还上传了cf-deployment文件使用的ubuntu-xenial干细胞

这里有类似的问题报道

https://github.com/cloudfoundry/cloud_controller_ng/issues/1047

但我无法真正收集解决方案。

是否有解决此问题并继续前进的方法?

2 个答案:

答案 0 :(得分:1)

如果您部署了UAA和Credhub,我发现上述答案有效。如果您使用的是vars-store,我发现以下问题是相关的:

https://github.com/cloudfoundry/cf-deployment/issues/617

上面的命令稍有变化:

base R

我认为要点是,您要用dns.yml中提供的替换变量输入Deployment-vars.yml中的值,并将结果馈入update-runtime-config。

答案 1 :(得分:0)

我遇到了同样的问题,发现了这个github issue

要修复它,我执行了:

bosh update-runtime-config bosh-deployment/runtime-configs/dns.yml --name dns

我希望这也能解决您的问题;)