Stemcell builder fails in the bosh_go_agent stage


Krishnan Ramanathan
 

I am trying to build an Ubuntu Trusty stemcell from the develop branch. I am following the instructions as documented at https://github.com/cloudfoundry/bosh/blob/develop/bosh-stemcell/README.md#building-the-stemcell-with-local-os-image. However it is consistently failing on the "Building a stemcell" (https://github.com/cloudfoundry/bosh/blob/develop/bosh-stemcell/README.md#building-a-stemcell) step whether I try to use a locally built OS image or an OS image from the S3 bucket.

I can send the full logs if required, however here is the main snippet where it fails:

+ mv /mnt/stemcells/aws/xen/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d.back /mnt/stemcells/aws/xen/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d
+ cp -a /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/assets/alerts.monitrc /mnt/stemcells/aws/xen/ubuntu/work/work/chroot/var/vcap/monit/alerts.monitrc
+ agent_dir=/mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/assets/go/src/github.com/cloudfoundry/bosh-agent
+ cd /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/assets/go/src/github.com/cloudfoundry/bosh-agent
+ bin/build
/mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/apply.sh: line 30: bin/build: No such file or directory/opt/bosh/bosh-core/lib/bosh/core/shell.rb:52:in `report'
/opt/bosh/bosh-core/lib/bosh/core/shell.rb:12:in `run'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:79:in `run_sudo_with_command_env'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:50:in `block in apply'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:41:in `each'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:41:in `apply'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:25:in `configure_and_apply'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stemcell_builder.rb:23:in `build'
/opt/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:218:in `block (2 levels) in <top (required)>'
/opt/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:158:in `block (2 levels) in <top (required)>'
Tasks: TOP => stemcell:build_with_local_os_image_with_bosh_release_tarball
(See full trace by running task with --trace)

When I check the /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/apply.sh directory, it is empty, which would explain the failure. Am I missing something or do I need to update the apply.sh script? Do note that I have tried building the stemcell using both the docker container as well as in an AWS instance created via vagrant.

Thanks
Krishnan

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.