[chef] test-kitchen with docker-remote


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] test-kitchen with docker-remote
  • Date: Wed, 18 Feb 2015 16:44:32 -0800

Trying to test this out, but running into a problem with Berkshelf. Is there a good way to tell Berkshelf inside TK to skip trying to validate SSL certs?

-----> Converging <default-ubuntu-1204>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 3.2.3...
E, [2015-02-18T16:39:42.217792 #66682] ERROR -- : Actor crashed!
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:852:in `start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:313:in `open_http'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in `buffer_open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in `block in open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `catch'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in `open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in `open'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:186:in `block in stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.1/lib/retryable.rb:63:in `retryable'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:185:in `stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:103:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:62:in `try_download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:36:in `block in download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `each'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/installer.rb:105:in `install'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
        (celluloid):0:in `remote procedure call'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell_proxy.rb:17:in `_send_'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:41:in `_send_'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:140:in `method_missing'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2015-02-18T16:39:42.223998 #66682] ERROR -- : Actor crashed!
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:852:in `start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:313:in `open_http'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in `buffer_open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in `block in open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `catch'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in `open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in `open'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:186:in `block in stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.1/lib/retryable.rb:63:in `retryable'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:185:in `stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:103:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:62:in `try_download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:36:in `block in download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `each'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/installer.rb:105:in `install'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2015-02-18T16:39:42.227916 #66682] ERROR -- : Actor crashed!
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:852:in `start'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:313:in `open_http'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:724:in `buffer_open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:210:in `block in open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `catch'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:208:in `open_loop'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:704:in `open'
        /opt/chefdk/embedded/lib/ruby/2.1.0/open-uri.rb:34:in `open'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:186:in `block in stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/retryable-2.0.1/lib/retryable.rb:63:in `retryable'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:185:in `stream'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/community_rest.rb:103:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:62:in `try_download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:36:in `block in download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `each'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/downloader.rb:35:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.2.3/lib/berkshelf/installer.rb:105:in `install'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
cocoa:~/git/ntp$ 

Though to be honest I'm also wondering where it pulls which Berkshelf server to talk to as well.

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS



Archive powered by MHonArc 2.6.16.

§