bosh icon indicating copy to clipboard operation
bosh copied to clipboard

getting waiting for agent while deploy bosh

Open jai11 opened this issue 12 years ago • 9 comments

HI , I am using bosh micro to create bosh VM on AWS.

I done all the re-search and change allot stem cell . each one got stuck at same point .

I also tried with bootstrap and it also stuck at same point-

Please find the console output-

root@2d62e55:/microbosh/deployments# bosh micro deploy --update ami-979dc6fe Updating mybosh/micro_bosh.yml' tohttps://54.210.142.162:25555' (type 'yes' to continue): yes Will deploy due to stemcell changes Started prepare for update Started prepare for update > Preserving stemcell. Done (00:00:00)

Started deploy micro bosh Started deploy micro bosh > Using existing stemcell. Done (00:00:00) Started deploy micro bosh > Creating VM from ami-979dc6fe . Done (00:00:49) Started deploy micro bosh > Waiting for the agent Unable to connect to Bosh agent. Check logs for more details.

Output from bootstrap:-

Use bundle show [gemname] to see where a bundled gem is installed. bundle exec bosh micro deployment firstbosh fatal: Not a git repository (or any of the parent directories): .git Deployment set to '/.microbosh/deployments/firstbosh/micro_bosh.yml' bundle exec bosh -n micro deploy --update-if-exists ami-7017b018 fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git Started deploy micro bosh Started deploy micro bosh > Using existing stemcell. Done (00:00:00) Started deploy micro bosh > Creating VM from ami-7017b018. Done (00:00:30) Started deploy micro bosh > Waiting for the agentUnable to connect to Bosh agent. Check logs for more details. /usr/local/lib/ruby/1.9.1/rake/file_utils.rb:53:in block in create_shell_runner': Command failed with status (1): bundle exec bosh -n micro deploy --update-... from /usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:incall' from /usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:in sh' from /usr/local/lib/ruby/gems/1.9.1/gems/bosh-bootstrap-0.13.2/lib/bosh-bootstrap/cli/helpers/bundle.rb:11:inblock in bundle' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.6.5/lib/bundler.rb:235:in block in with_clean_env' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.6.5/lib/bundler.rb:222:inwith_original_env' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.6.5/lib/bundler.rb:228:in `with_clean_env' from /usr/local/lib/ruby/gems/1.9.1/gems/bosh-bootstrap-0.13.2/lib/bosh-bootstrap/cli/helpers/bun

logs:-

I, [2014-09-27T03:14:52.975455 #2252] INFO -- : HTTP server is starting on port 25888... E, [2014-09-27T03:14:53.420720 #2252] ERROR -- : Sinatra::NotFound D, [2014-09-27T03:15:42.000862 #2252] DEBUG -- : (0.000234s) PRAGMA foreign_keys = 1 D, [2014-09-27T03:15:42.001000 #2252] DEBUG -- : (0.000032s) PRAGMA case_sensitive_like = 1 D, [2014-09-27T03:15:42.001398 #2252] DEBUG -- : (0.000296s) PRAGMA table_info('registry_instances') D, [2014-09-27T03:15:42.002487 #2252] DEBUG -- : (0.000207s) SELECT * FROM registry_instances WHERE (instance_id = 'i-54d84bb9') LIMIT 1 D, [2014-09-27T03:15:42.003390 #2252] DEBUG -- : (0.000125s) SELECT COUNT(*) AS 'count' FROM registry_instances WHERE (instance_id = 'i-54d84bb9') LIMIT 1 D, [2014-09-27T03:15:42.003879 #2252] DEBUG -- : (0.000072s) SELECT sqlite_version() LIMIT 1 D, [2014-09-27T03:15:42.004034 #2252] DEBUG -- : (0.000060s) BEGIN D, [2014-09-27T03:15:42.004526 #2252] DEBUG -- : (0.000238s) INSERT INTO registry_instances (instance_id, settings) VALUES ('i-54d84bb9', '{"vm":{"name":"vm-d1930349-1b16-4c38-aee0-3f667247420f"},"agent_id":"bm-b92fb0f6-a42a-4a2e-bae7-0c2c59e2c519","networks":{"bosh":{"cloud_properties":{},"netmask":null,"gateway":null,"ip":null,"dns":null,"type":"dynamic","default":["dns","gateway"]},"vip":{"ip":"54.210.142.162","type":"vip","cloud_properties":{}}},"disks":{"system":"/dev/sda1","ephemeral":"/dev/sdb","persistent":{}},"env":{"bosh":{"password":null}},"ntp":[],"blobstore":{"provider":"local","options":{"blobstore_path":"/var/vcap/micro_bosh/data/cache"}},"mbus":"https://vcap:[email protected]:6868"}') D, [2014-09-27T03:15:42.004971 #2252] DEBUG -- : (0.000121s) SELECT * FROM registry_instances WHERE (id = 1) LIMIT 1 D, [2014-09-27T03:15:42.007517 #2252] DEBUG -- : (0.002390s) COMMIT D, [2014-09-27T03:18:57.866806 #2252] DEBUG -- : (0.000314s) SELECT * FROM registry_instances WHERE (instance_id = 'i-54d84bb9') LIMIT 1 I, [2014-09-27T03:32:36.222613 #2252] INFO -- : BOSH Registry shutting down...

Can you please help me.

And as per the documents they selected non-vpc but now AWS by default gives VPC only no option for non-vpc.

Is this for i am getting stuck every time at same point "waiting for the agent"

jai11 avatar Sep 29 '14 12:09 jai11

I, [2014-09-29T13:00:05.486111 #1596] [0x605068] INFO -- : discovered bosh ip=54.210.142.162 D, [2014-09-29T13:02:12.844449 #1596] [0x605068] DEBUG -- : tcp socket 54.210.142.162:22 #<Errno::ETIMEDOUT: Connection timed out - connect(2)> D, [2014-09-29T13:02:14.285618 #1596] [0x605068] DEBUG -- : tcp socket 54.210.142.162:22 is readable I, [2014-09-29T13:03:14.286249 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:17.131385 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:18.132972 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:20.340142 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:21.340856 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:23.677199 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:24.677681 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:26.942301 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:27.942747 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:30.086336 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:31.086835 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:33.515320 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:34.515754 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:36.863151 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:37.863632 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:40.089921 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:41.090339 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:43.456335 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:44.460076 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:46.685346 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:47.685778 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:49.878479 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]> I, [2014-09-29T13:03:50.884089 #1596] [0x605068] INFO -- : Starting SSH session for port forwarding to [email protected]... D, [2014-09-29T13:03:53.209519 #1596] [0x605068] DEBUG -- : ssh start [email protected] failed: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]>

jai11 avatar Sep 29 '14 13:09 jai11

seems like ssh [email protected] does not work. make sure you can do so manually. it also appears you are using veyr old stemcells. please use bosh public stemcells to find latest light-bosh stemcell for aws.

cppforlife avatar Sep 30 '14 17:09 cppforlife

hi i am using the latest stable stemcell.I can ssh vcap user .

jai11 avatar Sep 30 '14 18:09 jai11

actually if I do the same steps from my aws VM to deploy Micro bosh to aws it successfully deploy.

But same steps through my mcahine always stuck on step "waiting for agent" after creating VM on aws.

used latest old stemcell , done allot r&d but still always stuck at same step "waiting for agent"

It will be great if you can please help me out.

jai11 avatar Sep 30 '14 18:09 jai11

and one more thing I also used bosh-bootstrap tool to deploy micro bosh. but the tool also stuck at step "waiting for agent" and time out

jai11 avatar Sep 30 '14 18:09 jai11

ami that you are trying to use (ami-979dc6fe) is very old. you should use one of the latest stemcells published here: http://bosh-artifacts.cfapps.io/ or by the CLI.

cppforlife avatar Oct 01 '14 16:10 cppforlife

Closing due to no activity. Feel free to reopen.

cppforlife avatar Oct 09 '14 17:10 cppforlife

Hi all, I am using MicroBOSH and i am hitting the same issue. I am using the latest stemcells and my security group configs are correct.

cfoundry@c-foundry:~/micro-deployment$ bosh micro deploy test/light-bosh-stemcell-2986-aws-xen-hvm-ubuntu-trusty-go_agent.tgz

No bosh-deployments.yml file found in current directory.

Conventionally, bosh-deployments.yml should be saved in /home/cfoundry. Is /home/cfoundry/micro-deployment a directory where you can save state? (type 'yes' to continue): yes Deploying new micro BOSH instance manifest.yml' tohttps://[ip addr of vip]>:25555' (type 'yes' to continue): yes

Verifying stemcell... File exists and readable OK Verifying tarball... Read tarball OK Manifest exists OK Stemcell image file OK Stemcell properties OK

Stemcell info

Name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent Version: 2986

Started deploy micro bosh Started deploy micro bosh > Unpacking stemcell. Done (00:00:00) Started deploy micro bosh > Uploading stemcell. Done (00:00:10) Started deploy micro bosh > Creating VM from ami-3742b55c light. Done (00:00:35) Started deploy micro bosh > Waiting for the agent

Dulanjalie avatar Jun 16 '15 16:06 Dulanjalie

i ran into the same "waiting for agent" problem and found it consistent across many 3012 builds for AWS.

Seems to be an issue with the stemcell.

I was succesful when using an older 3000 build stemcell @ https://d26ekeud912fhb.cloudfront.net/bosh-stemcell/aws/light-bosh-stemcell-3000-aws-xen-ubuntu-trusty-go_agent.tgz

tekknikk avatar Jul 12 '15 23:07 tekknikk