openssl error during "bosh micro deploy"'s "Waiting for the agent" stage
Raised by @orsonkent in https://github.com/StarkAndWayne/bosh-bootstrap/issues/185:
$ bosh-bootstrap deploy
...
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:[email protected]: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
Hey drnic, Which version of the gems are you using. We recently changed the micro plugin to use SSL to talk to the agent. At the same time we changed the agent to accept SSL connections. If you use a newer gem with an other stemcell (or vice versa) you have problems. You'll need to use gem > 1.5.0.pre.480 and micro bosh stemcell ami-dee080b7 (current latest).
If you still have the issue with the latest please let us know.
The bugs came in for v480 (that's what i see from their stacktraces above).
Try with a new micro stemcell. You're using a micro stemcell where the agent doesn't speak SSL. The newer ones do.