用波什重启大厅单人vm

时间:2017-10-01 03:47:07

标签: concourse

我正在跟踪quickstart concourse guide在我的项目上测试CI,这是我第一次做得很好:

$ bosh create-env concourse-lite.yml

执行上述命令后,我可以进入http://192.168.100.4:8080并开始使用大厅,但是重新启动主机后,如果我执行,我将无法重启大厅:

$ bosh create-env concourse-lite.yml

它验证依赖项,但跳过初始化虚拟机。

Deployment manifest: '/home/javier/work/sandander-devops/concourse-ci/concourse-lite.yml'
Deployment state: '/home/javier/work/sandander-devops/concourse-ci/concourse-lite-state.json'

Started validating
  Downloading release 'concourse'... Skipped [Found in local cache] (00:00:00)
  Validating release 'concourse'... Finished (00:00:02)
  Downloading release 'garden-runc'... Skipped [Found in local cache] (00:00:00)
  Validating release 'garden-runc'... Finished (00:00:01)
  Downloading release 'bosh-virtualbox-cpi'... Skipped [Found in local cache] (00:00:00)
  Validating release 'bosh-virtualbox-cpi'... Finished (00:00:02)
  Validating cpi release... Finished (00:00:00)
  Validating deployment manifest... Finished (00:00:00)
  Downloading stemcell... Skipped [Found in local cache] (00:00:00)
  Validating stemcell... Finished (00:00:02)
Finished validating (00:00:07)
No deployment, stemcell or release changes. Skipping deploy.

Succeeded

我最终决定重建环境:

$ bosh delete-env concourse-lite.yml --state concourse-lite-state.json
$ bosh create-env concourse-lite.yml

即使重新初始化整个大厅堆栈(包括管道)非常有效,但知道是否有更好的方法来处理这种情况会很有用。

1 个答案:

答案 0 :(得分:0)

你在使用bosh lite吗?当bosh lite安装重新启动时,我们经常遇到实例无效的问题。

如果是这样,我会建议您为您的波什导演使用虚拟机快照,并在您再次启动计算机时尝试恢复状态。

但最后如果你有问题让它再次运行......你能做的最好就是重新创造一切...... :(