cloudfoundry-attic / bootstrap-cf-plugin

0 stars 9 forks source link

Release creation failure does not stop bootstrap from continuing #16

Open michaelklishin opened 11 years ago

michaelklishin commented 11 years ago

This is continuation to #15: when cf bootstrap aws creates a release and that process fails because there is no disk space left, the error message does not make it clear what step failed (and why):

New version copied to '/home/ubuntu/deployments-aws/mklishin/cf-aws.yml'
Running bosh deploy...
Current target is https://[redacted]:25555 (micro-mklishin)
Getting deployment properties from director...
Unable to get properties list from director, trying without it...
Compiling deployment manifest...
Release 'cf-release' not found on director. Unable to resolve 'latest' alias in manifest.Time of crash:
  2013-09-09 15:58:04 +0000

RuntimeError: Failed to run: bosh -n deploy

bootstrap-cf-plugin-124afe8619bd/lib/bootstrap-cf-plugin/infrastructure/aws.rb:87:in `sh'
bootstrap-cf-plugin-124afe8619bd/lib/bootstrap-cf-plugin/infrastructure/aws.rb:43:in `deploy_release'
bootstrap-cf-plugin-124afe8619bd/lib/bootstrap-cf-plugin/infrastructure/aws.rb:9:in `bootstrap'
bootstrap-cf-plugin-124afe8619bd/lib/bootstrap-cf-plugin/plugin.rb:15:in `bootstrap'

I suspect there is an error swallowed, which makes the bootstrap code continue even though release upload failed.