Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

bosh-bootstrap deploy openssl error #185

Closed
orsonkent opened this issue Apr 23, 2013 · 9 comments
Closed

bosh-bootstrap deploy openssl error #185

orsonkent opened this issue Apr 23, 2013 · 9 comments

Comments

@orsonkent
Copy link
Contributor

$ bosh-bootstrap deploy

Stage 1: Choose infrastructure

Confirming: Using infrastructure provider AWS

Confirming: Using AWS region us-east-1


Stage 2: BOSH configuration

Confirming: Micro BOSH will be named microbosh-1

Confirming: After BOSH is created, your username will be ubuntu

Confirming: Micro BOSH instance type will be m1.medium

Confirming: Micro BOSH persistent disk size will be 16384 Mb

Confirming: Micro BOSH will be assigned IP address 54.225.94.7

Confirming: Micro BOSH protected by security group named microbosh-1, with ports [22, 4222, 6868, 25250, 25555, 25777]

Confirming: Micro BOSH accessible via key pair named microbosh-1

Confirming: Micro BOSH will be created with stemcell edge-prebuilt


Stage 3: Create/Allocate the Inception VM

Confirming: Using inception VM ubuntu@ec2-54-235-62-179.compute-1.amazonaws.com


Skipping Stage 4: Preparing the Inception VM
Already prepared inception VM.


Skipping Stage 5: Generate salted password
Already generated salted password


Stage 6: Download micro BOSH

Switching to using prebuilt AMI for bonus speed!
downloading micro-bosh stemcell
uploading /tmp/remote_script_download_micro_bosh_stemcell to Inception VM
Using AMI ami-345ac05d, so there is nothing to download.
ami-345ac05d
Last line of script: ami-345ac05d
Storing to settings_key micro_bosh_stemcell_name
Successfully downloaded micro-bosh stemcell
Confirming: Successfully built micro BOSH


Stage 7: Deploying micro BOSH

uploading file
uploading /var/vcap/store/microboshes/deployments/microbosh-1/micro_bosh.yml to Inception VM
Successfully uploaded file
installing key pair for user
uploading /tmp/remote_script_install_key_pair_for_user to Inception VM
Last line of script:
Successfully installed key pair for user
deploy micro bosh
uploading /tmp/remote_script_deploy_micro_bosh to Inception VM
Deployment set to '/var/vcap/store/microboshes/deployments/microbosh-1/micro_bosh.yml'
Using AMI ami-345ac05d


Deployment previously failed to complete. Deleting and deploying micro BOSH microbosh-1 again.

You are going to delete micro BOSH deployment `microbosh-1'.

THIS IS A VERY DESTRUCTIVE OPERATION AND IT CANNOT BE UNDONE!


Delete micro BOSH
  stopping agent services (00:00:00)
  delete VM (00:00:32)
  preserving stemcell (00:00:00)
Done             7/7 00:00:32
Deleted deployment 'microbosh-1', took 00:00:32 to complete

Deploy Micro BOSH
  using existing stemcell (00:00:00)
  creating VM from ami-345ac05d (00:00:41)
Waiting for the agent        |ooo                | 2/11 00:07:43  ETA: --:--:--/usr/local/rvm/gems/ruby-1.9.3-p392/gems/agent_client-1.5.0.pre.480/lib/agent_client/http_client.rb:46:in `rescue in request': Request details: (Bosh::Agent::Error)
uri: https://vcap:b00tstrap@54.225.94.7:6868/agent
payload: {"method":"ping","arguments":[],"reply_to":"bm-6ff7a111-2d55-4f62-af14-907921e6aa01"}
user: vcap
password: b00tstrap
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/agent_client-1.5.0.pre.480/lib/agent_client/http_client.rb:27:in `request'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/agent_client-1.5.0.pre.480/lib/agent_client/http_client.rb:55:in `post_json'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/agent_client-1.5.0.pre.480/lib/agent_client/http_client.rb:21:in `handle_method'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/agent_client-1.5.0.pre.480/lib/agent_client/base.rb:17:in `method_missing'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:419:in `block in wait_until_agent_ready'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:405:in `block in wait_until_ready'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_common-1.5.0.pre.480/lib/common/common.rb:65:in `block in retryable'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_common-1.5.0.pre.480/lib/common/common.rb:64:in `loop'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_common-1.5.0.pre.480/lib/common/common.rb:64:in `retryable'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:402:in `wait_until_ready'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:419:in `wait_until_agent_ready'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:140:in `block in create'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:84:in `step'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:139:in `create'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:104:in `block in create_deployment'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:97:in `with_lifecycle'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/deployer/instance_manager.rb:103:in `create_deployment'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli_plugin_micro-1.5.0.pre.480/lib/bosh/cli/commands/micro.rb:171:in `perform'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli-1.5.0.pre.480/lib/cli/command_handler.rb:57:in `run'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli-1.5.0.pre.480/lib/cli/runner.rb:59:in `run'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli-1.5.0.pre.480/lib/cli/runner.rb:18:in `run'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bosh_cli-1.5.0.pre.480/bin/bosh:7:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/bosh:19:in `load'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/bosh:19:in `<main>'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/bin/ruby_noexec_wrapper:14:in `eval'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/bin/ruby_noexec_wrapper:14:in `<main>'
Last line of script:    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/bin/ruby_noexec_wrapper:14:in `<main>'
       error  deploy micro bosh
Failed to complete Stage 7: Deploying micro BOSH
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.11
  - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.9.1
     - /home/ubuntu/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
@drnic
Copy link
Contributor

drnic commented Apr 23, 2013

Ok, I've not tried the new p480 release; but I think this is a bug in bosh itself. Can you please recreate this bug upstream? https://github.com/cloudfoundry/bosh/issues

Copy and pasting the issue should be very useful to them too!

@drnic
Copy link
Contributor

drnic commented Apr 23, 2013

Realised I can create it for you and include your name in it for you to get the email notifications.

@orsonkent
Copy link
Contributor Author

Awesome, thanks man.

@drnic
Copy link
Contributor

drnic commented Apr 23, 2013

Reopening until its fixed for visibility to others

@drnic drnic reopened this Apr 23, 2013
@drnic
Copy link
Contributor

drnic commented Apr 23, 2013

cloudfoundry/bosh#147 (comment) says to try again and check that it picks up a newer/different microbosh AMI than last time.

@ramonskie
Copy link

anyone solved this issue yet?

@frodenas
Copy link
Contributor

The latest openstack stemcell published at the S3 bucket doesn't support SSL yet. I'll try to publish a new one later.

@drnic
Copy link
Contributor

drnic commented May 21, 2013

@orsonkent can you please test the latest v0.11 release and see if this error has gone away for AWS?

@drnic drnic closed this as completed May 21, 2013
@orsonkent
Copy link
Contributor Author

Hola @drnic I'd love to, but now I'm getting a completely different error earlier in the process. Can you suggest where I should file this one, or perhaps a fix if it's an issue with my Ruby configuration?
Background below the error

$ bosh-bootstrap deploy
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:231:indefault_gemfile'
from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:177:in root' from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:99:inbundle_path'
from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:378:in configure_gem_home' from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path'
from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:90:in configure' from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:146:indefinition'
from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:116:in setup' from /var/lib/gems/1.9.1/gems/bosh-bootstrap-0.11.4/bin/bosh-bootstrap:6:in<top (required)>'
from /usr/local/bin/bosh-bootstrap:19:in load' from /usr/local/bin/bosh-bootstrap:19:in

'

[Background]
Fresh ubuntu 12.04.2 install on AWS micro instance, then:

$ sudo apt-get update
$ sudo apt-get install ruby1.9.1 ruby1.9.1-dev libxml2-dev libxslt1-dev make git
$ git config --global user.name "[name]"
$ git config --global user.email "[my email]"
$ sudo gem install bosh-bootstrap bundler
$ gem list --local bosh-bootstrap

*** LOCAL GEMS ***

bosh-bootstrap (0.11.4)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants