Re: bosh terminates EC2 compilation vm before it started


Marco Voelz
 

Hi,

"execution expired" in most cases means that the registry cannot be reached from the newly created VM.

Make sure that your BOSH director is reachable on port 25777 from the new VM. As Gwenn points out, possible sources of the problem are your network and security group configuration.

Warm regards
Marco

On 28/03/16 06:31, "Gwenn Etourneau" <getourneau(a)pivotal.io<mailto:getourneau(a)pivotal.io>> wrote:

Can be security groups, network configuration and so on..


On Mon, Mar 28, 2016 at 1:01 PM, Younjin Jeong <younjin.jeong(a)gmail.com<mailto:younjin.jeong(a)gmail.com>> wrote:
Hi

I'm currently working on CF deploy to AWS Seoul region.
While I deploy Cloud Foundry 233 release, the compilation ec2 instances are keep terminated by bosh with ERROR message "Failed: execution expired"

I think it expired even before the instance finished its boot. And there're not much hints I could find from log messages.


bosh deploy


Deploying
---------
Are you sure you want to deploy? (type 'yes' to continue): yes

Director task 79
Started preparing deployment > Preparing deployment. Done (00:00:06)

Started preparing package compilation > Finding packages to compile. Done (00:00:00)

Started compiling packages
Started compiling packages > cli/2b0725c955992dec52458aeb9e764d9f4be18d0a
Started compiling packages > rootfs_cflinuxfs2/85e207d5f9485efb23128b5e0affb79dc168c260. Failed: execution expired (00:02:16)
Failed compiling packages > cli/2b0725c955992dec52458aeb9e764d9f4be18d0a: execution expired (00:02:32)


bosh task 79 --debug | egrep ERROR

root(a)ip-10-0-1-54:/tmp# bosh task 79 --debug | egrep ERROR
RSA 1024 bit CA certificates are loaded due to old openssl compatibility
Acting as user 'admin' on 'microbosh'
E, [2016-03-28 03:43:32 #2961] [create_vm(2e657855-c33a-45e5-bb43-7b33bbbce9b0, ...)] ERROR -- DirectorJobRunner: Failed to create instance: execution expired
E, [2016-03-28 03:43:49 #2961] [create_vm(417665c9-cf1f-443d-8058-d5f7f58b8244, ...)] ERROR -- DirectorJobRunner: Failed to create instance: execution expired
E, [2016-03-28 03:44:33 #2961] [compile_package(rootfs_cflinuxfs2/85e207d5f9485efb23128b5e0affb79dc168c260, bosh-aws-xen-hvm-ubuntu-trusty-go_agent/3215)] ERROR -- DirectorJobRunner: error creating vm: execution expired
E, [2016-03-28 03:44:33 #2961] [] ERROR -- DirectorJobRunner: Worker thread raised exception: execution expired - /var/vcap/packages/director/gem_home/ruby/2.1.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597:in `initialize'
E, [2016-03-28 03:44:49 #2961] [compile_package(cli/2b0725c955992dec52458aeb9e764d9f4be18d0a, bosh-aws-xen-hvm-ubuntu-trusty-go_agent/3215)] ERROR -- DirectorJobRunner: error creating vm: execution expired
E, [2016-03-28 03:44:49 #2961] [] ERROR -- DirectorJobRunner: Worker thread raised exception: execution expired - /var/vcap/packages/director/gem_home/ruby/2.1.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597:in `initialize'
E, [2016-03-28 03:44:49 #2961] [task:79] ERROR -- DirectorJobRunner: execution expired


Would you give me some hint to solve this?
Cheers,

--
Younjin Jeong
younjin.jeong(a)gmail.com<mailto:joon.lee(a)sparkandassociates.com>
Mobile : +82-10-7128-2074<tel:%2B82-10-7128-2074>

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