Hi,
I was trying to run kitchen converge
while using test-kitchen with my role mentioned in run_list
with chef_solo as my provisioner .This leads me to an error with OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
. But, If am using chef_zero
as my provisioner,I don't receive that error for the same role. can any one help me understand what could I be doing wrong while using chef_solo
as my provisioner, as compared to chef_zero
for this error. I also checked if I have an openssl
gem installed and it looks like i didn't have it. Is that something i need to install and configure before doing my testing. I was also setting ssl_verify_mode
to none
in my kitchen.yml
.
Chef Development Kit Version: 0.12.0 chef-client version: 12.8.1 berks version: 4.3.0 kitchen version: 1.6.0
test_role:
{
"name": "test_role",
"json_class": "Chef::Role",
"description": "testing roles",
"run_list": ["recipe[JMSP_Tomcat_AppServer_Provision]",
"recipe[newrelic]"]
}
kitchen.yml:
provisioner:
name: chef_solo
client_rb:
ssl_verify_mode: :verify_none
verify_api_cert: false
Logs:
2016-05-16T09:59:35.689217 #18785] INFO -- default-rhel-67: [2016-05-16T10:58:46-04:00] ERROR: remote_file[/prod/msp/mspcert/mspcert.jks] (007_JavaMSP_AppServer_Configuration::install_mspcert line 10) had an error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
I, [2016-05-16T09:59:35.743126 #18785] INFO -- default-rhel-67: [2016-05-16T10:58:46-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)