使用 Bosh 在 virtualbox 上部署 CF 时出错
Error deploying CF on virtualbox using 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
我还上传了ubuntu-xenial stemcell,cf部署文件使用
此处报告了类似的问题
https://github.com/cloudfoundry/cloud_controller_ng/issues/1047
但我无法真正找到解决方案。
有没有办法解决这个问题并继续前进?
我遇到了同样的问题并找到了这个 github issue
为了修复它,我执行了:
bosh update-runtime-config bosh-deployment/runtime-configs/dns.yml --name dns
我希望这也能解决您的问题 ;)
如果您部署了 UAA 和 Credhub,我发现上述答案有效。如果您使用的是 vars-store,我发现以下问题是相关的:
https://github.com/cloudfoundry/cf-deployment/issues/617
上面的命令略有变化:
bosh -e vbox update-runtime-config <(bosh int bosh-deployment/runtime-configs/dns.yml --vars-store deployment-vars.yml) --name dns
我认为要点是您将在 dns.yml 中找到的替换变量与在 deployment-vars.yml 中找到的值一起提供,并将结果提供给 update-runtime-config.
我正在使用 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
我还上传了ubuntu-xenial stemcell,cf部署文件使用
此处报告了类似的问题
https://github.com/cloudfoundry/cloud_controller_ng/issues/1047
但我无法真正找到解决方案。
有没有办法解决这个问题并继续前进?
我遇到了同样的问题并找到了这个 github issue
为了修复它,我执行了:
bosh update-runtime-config bosh-deployment/runtime-configs/dns.yml --name dns
我希望这也能解决您的问题 ;)
如果您部署了 UAA 和 Credhub,我发现上述答案有效。如果您使用的是 vars-store,我发现以下问题是相关的:
https://github.com/cloudfoundry/cf-deployment/issues/617
上面的命令略有变化:
bosh -e vbox update-runtime-config <(bosh int bosh-deployment/runtime-configs/dns.yml --vars-store deployment-vars.yml) --name dns
我认为要点是您将在 dns.yml 中找到的替换变量与在 deployment-vars.yml 中找到的值一起提供,并将结果提供给 update-runtime-config.