Chef workstation setup error?


#1

[root@chefworkstation chef-repo]# chef --version
Chef Development Kit Version: 1.0.3
chef-client version: 12.16.42
delivery version: master (83358fb62c0f711c70ad5a81030a6cae4017f103)
berks version: 5.2.0
kitchen version: 1.13.2
[root@chefworkstation chef-repo]# chef verify
Running verification for component 'berkshelf’
Running verification for component 'test-kitchen’
Running verification for component 'tk-policyfile-provisioner’
Running verification for component 'chef-client’
Running verification for component 'chef-dk’
Running verification for component 'chef-provisioning’
Running verification for component 'chefspec’
Running verification for component 'generated-cookbooks-pass-chefspec’
Running verification for component 'rubocop’
Running verification for component 'fauxhai’
Running verification for component 'knife-spork’
Running verification for component 'kitchen-vagrant’
Running verification for component 'package installation’
Running verification for component 'openssl’
Running verification for component 'inspec’
Running verification for component 'delivery-cli’
Running verification for component 'git’
Running verification for component 'opscode-pushy-client’
Running verification for component ‘chef-sugar’

F

Failures:

  1. example::default When all attributes are default, on an unspecified platform converges successfully
    Failure/Error: expect { chef_run }.to_not raise_error

    expected no Exception, got #<Chef::Exceptions::InvalidRedirect: POST request was redirected from http://127.0.0.1:55224/sandboxes to http://10.65.64.21. Only GET and HEAD support redirects.> with backtrace:
    # ./spec/unit/recipes/default_spec.rb:13:in block (3 levels) in <top (required)>' # ./spec/unit/recipes/default_spec.rb:17:inblock (4 levels) in <top (required)>’
    # ./spec/unit/recipes/default_spec.rb:17:in `block (3 levels) in <top (required)>’

    ./spec/unit/recipes/default_spec.rb:17:in `block (3 levels) in <top (required)>’

Finished in 23.98 seconds (files took 2.68 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/unit/recipes/default_spec.rb:16 # example::default When all attributes are default, on an unspecified platform converges successfully

…/opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in invalid!': Expected process to exit with [0], but received '128' (Mixlib::ShellOut::ShellCommandFailed) ---- Begin output of /opt/chefdk/gitbin/git clone https://github.com/chef/chef-provisioning ---- STDOUT: STDERR: Cloning into 'chef-provisioning'... fatal: unable to access 'https://github.com/chef/chef-provisioning/': error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol ---- End output of /opt/chefdk/gitbin/git clone https://github.com/chef/chef-provisioning ---- Ran /opt/chefdk/gitbin/git clone https://github.com/chef/chef-provisioning returned 128 from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:inerror!'
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:128:in block in sh!' from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:128:intap’
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:128:in sh!' from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/command/verify.rb:483:inblock (3 levels) in class:Verify
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:165:in block in tmpdir' from /opt/chefdk/embedded/lib/ruby/2.3.0/tmpdir.rb:89:inmktmpdir’
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:164:in tmpdir' from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/command/verify.rb:481:inblock (2 levels) in class:Verify
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:99:in instance_eval' from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/component_test.rb:99:inrun_smoke_test’
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-1.0.3/lib/chef-dk/command/verify.rb:586:in block (2 levels) in invoke_tests' [root@chefworkstation chef-repo]# uname -a Linux chefworkstation.example.com 2.6.32-642.el6.x86_64 #1 SMP Wed Apr 13 00:51:26 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux [root@chefworkstation chef-repo]# knife node list node1.example.com node2.example.com [root@chefworkstation chef-repo]# knife client list dq-validator node1.example.com node2.example.com [root@chefworkstation chef-repo]# knife ssl check Connecting to host chef.example.com:443 ERROR: The SSL certificate of chef.example.com could not be verified ERROR: Could not establish a secure connection to the server. Useknife ssl checkto troubleshoot your SSL configuration. If your Chef Server uses a self-signed certificate, you can useknife ssl fetch` to make knife trust the server’s certificates.

Original Exception: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
[root@chefworkstation chef-repo]#


#2

I responded by email, but the forums may provide better and more complete
answers.

It appears to be having an issue using the ‘git’ resource via OpenSSL to
check out a repository from GitHub.com. Does this usually work with your
proxy?

Thanks,
Matt Ray
Manager, Solutions Architect - APJ :: Chef
matt@chef.io
AUS: +61 457 231 372
US: +1 512 731 2218
mattray :: GitHub :: IRC :: Slack :: Twitter


#3

Hi MattRay,

I am facing the same issue and need help. Can you please send me the email that you have sent tigerofcn regarding the solution.

Thanks
Vikul Vij


#4

Hi Matt,

In my env the ‘git’ is ok with my proxy.
So how to check the log?
Best regards,

shan