I'm trying to converge, I was able to run kitchen create, but converge is failing.
I'm not sure if there is a bug or if I'm doing it wrong, but I can give my kitchen.yml if you need to try and reproduce.
---
driver:
name: vra
username: <%= ENV['VRA_USER'] %>
password: "<%= ENV['VRA_PASS'] %>"
tenant: Engineering
base_url: [base_url]
verify_ssl: false
cpus: 2
memory: 8192
lease_days: 7
request_timeout: 1200
use_dns: false
server_ready_retries: 10
provisioner:
name: chef_zero
require_chef_omnibus: true
retry_on_exit_code:
- 35
max_retries: 10
wait_for_retry: 120
client_rb:
exit_status: :enabled
client_fork: false
install_strategy: once
verifier:
name: pester
test_folder: ./test/integration/
platforms:
# Describes a Windows host, remove if unneeded
- name: Windows
driver:
catalog_name: [catalog_name]
subtenant_id: [subtenant_id]
extra_parameters:
provider-VirtualMachine.Disk1.Size:
type: string
value: 60
provider-VirtualMachine.Disk1.Label:
type: string
value: DATA
provider-VirtualMachine.Disk1.Letter:
type: string
value: D
transport:
name: winrm
username: <%= ENV['VRA_USER'] %>
password: "<%= ENV['VRA_PASS'] %>"
- name: Linux
driver:
private_key_path: ./id_rsa
catalog_id: [catalog_id]
subtenant_id: [subtenant_id]
transport:
username: 'engineering'
suites:
- name: Test
attributes:
I expect you to get the same error as me.
I, [2020-08-13T10:43:03.688504 #10369] INFO -- Test-Linux: -----> Converging <Test-Linux>...
I, [2020-08-13T10:43:03.690969 #10369] INFO -- Test-Linux: Preparing files for transfer
I, [2020-08-13T10:43:03.691150 #10369] INFO -- Test-Linux: Installing cookbooks for Policyfile /home/engineering/chef-repo/cookbooks/learn_chef/Policyfile.rb using `chef install`
I, [2020-08-13T10:43:04.997868 #10369] INFO -- Test-Linux: Installing cookbooks from lock
I, [2020-08-13T10:43:04.998493 #10369] INFO -- Test-Linux: Installing learn_chef 0.1.0
I, [2020-08-13T10:43:05.015802 #10369] INFO -- Test-Linux: Preparing dna.json
I, [2020-08-13T10:43:05.016529 #10369] INFO -- Test-Linux: Exporting cookbook dependencies from Policyfile /tmp/Test-Linux-sandbox-20200813-10369-10367jx...
I, [2020-08-13T10:43:06.973535 #10369] INFO -- Test-Linux: Exported policy 'learn_chef' to /tmp/Test-Linux-sandbox-20200813-10369-10367jx
I, [2020-08-13T10:43:06.973668 #10369] INFO -- Test-Linux:
I, [2020-08-13T10:43:06.973805 #10369] INFO -- Test-Linux: To converge this system with the exported policy, run:
I, [2020-08-13T10:43:06.973835 #10369] INFO -- Test-Linux: cd /tmp/Test-Linux-sandbox-20200813-10369-10367jx
I, [2020-08-13T10:43:06.973856 #10369] INFO -- Test-Linux: chef-client -z
I, [2020-08-13T10:43:06.992661 #10369] INFO -- Test-Linux: Removing non-cookbook files before transfer
I, [2020-08-13T10:43:06.993141 #10369] INFO -- Test-Linux: Preparing validation.pem
I, [2020-08-13T10:43:06.993688 #10369] INFO -- Test-Linux: Preparing client.rb
I, [2020-08-13T10:43:07.474516 #10369] INFO -- Test-Linux:
I, [2020-08-13T10:43:07.474651 #10369] INFO -- Test-Linux: We trust you have received the usual lecture from the local System
I, [2020-08-13T10:43:07.474695 #10369] INFO -- Test-Linux: Administrator. It usually boils down to these three things:
I, [2020-08-13T10:43:07.474717 #10369] INFO -- Test-Linux:
I, [2020-08-13T10:43:07.474737 #10369] INFO -- Test-Linux: #1) Respect the privacy of others.
I, [2020-08-13T10:43:07.474756 #10369] INFO -- Test-Linux: #2) Think before you type.
I, [2020-08-13T10:43:07.474799 #10369] INFO -- Test-Linux: #3) With great power comes great responsibility.
I, [2020-08-13T10:43:07.474824 #10369] INFO -- Test-Linux:
I, [2020-08-13T10:48:07.494370 #10369] INFO -- Test-Linux: [sudo] password for engineering:
E, [2020-08-13T10:48:09.575846 #10369] ERROR -- Test-Linux: Converge failed on instance <Test-Linux>.
E, [2020-08-13T10:48:09.576143 #10369] ERROR -- Test-Linux: ------Exception-------
E, [2020-08-13T10:48:09.576206 #10369] ERROR -- Test-Linux: Class: Kitchen::ActionFailed
E, [2020-08-13T10:48:09.576242 #10369] ERROR -- Test-Linux: Message: SSH exited (1) for command: [sudo -E sh -c '
chef_omnibus_root="/opt/chef"
chef_omnibus_url="https://omnitruck.chef.io/install.sh"
install_flags=""
pretty_version="install only if missing"
sudo_sh="sudo -E sh"
version="true"
tmp_stderr="/tmp/stderr";
# capture_tmp_stderr SOURCE
capture_tmp_stderr() {
# spool up $tmp_stderr from all the commands we called
if test -f "$tmp_stderr"; then
output="`cat $tmp_stderr`";
stderr_results="${stderr_results}\nSTDERR from $1:\n\n${output}\n";
rm $tmp_stderr;
fi
}
# do_curl URL FILENAME
do_curl() {
echo "Trying curl...";
curl -sL -D "$tmp_stderr" "$1" > "$2";
ec=$?;
# check for 404
grep "404 Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "curl";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_download URL FILENAME
do_download() {
echo "Downloading ${1} to file ${2}";
exists wget;
if test $? -eq 0; then
do_wget "$1" "$2" && return 0;
fi
exists curl;
if test $? -eq 0; then
do_curl "$1" "$2" && return 0;
fi
exists fetch;
if test $? -eq 0; then
do_fetch "$1" "$2" && return 0;
fi
exists python;
if test $? -eq 0; then
do_python "$1" "$2" && return 0;
fi
exists perl;
if test $? -eq 0; then
do_perl "$1" "$2" && return 0;
fi
unable_to_download "$1" "$2";
}
# do_fetch URL FILENAME
do_fetch() {
echo "Trying fetch...";
fetch -o "$2" "$1" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "fetch";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_perl URL FILENAME
do_perl() {
echo "Trying perl...";
perl -e "use LWP::Simple; getprint(\$ARGV[0]);" "$1" > "$2" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "404 Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "perl";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_python URL FILENAME
do_python() {
echo "Trying python...";
python -c "import sys,urllib2 ; sys.stdout.write(urllib2.urlopen(sys.argv[1]).read())" "$1" > "$2" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "HTTP Error 404" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "python";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_wget URL FILENAME
do_wget() {
echo "Trying wget...";
wget -O "$2" "$1" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "ERROR 404" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "wget";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# exists COMMAND
exists() {
if command -v "$1" >/dev/null 2>&1; then
return 0;
else
return 1;
fi
}
# http_404_error URL
http_404_error() {
echo ">>>>>> Downloading ${1} resulted in an HTTP/404, aborting";
exit 40;
}
# should_update_chef ROOT VERSION
should_update_chef() {
if test ! -d "$1"; then
return 0;
elif test "$2" = "true"; then
return 1;
elif test "$2" = "latest"; then
return 0;
fi
if test -f "${1}/version-manifest.txt"; then
chef_version="`head -n 1 ${1}/version-manifest.txt | cut -d \" \" -f 2`";
else
chef_version="`${1}/bin/chef-solo -v | cut -d \" \" -f 2`";
fi
echo "$chef_version" | grep "^${2}" 2>&1 >/dev/null;
if test $? -eq 0; then
return 1;
else
echo "${2}" | grep "^$chef_version" 2>&1 >/dev/null;
if test $? -eq 0; then
return 1;
else
return 0;
fi
fi
}
# unable_to_download URL FILE
unable_to_download() {
echo "Unable to download $1 to $2, aborting";
if test "x${stderr_results}" != "x"; then
echo "\nDEBUG OUTPUT FOLLOWS:\n${stderr_results}";
fi
exit 10;
}
# main
main() {
should_update_chef "$chef_omnibus_root" "$version"
if test $? -eq 0; then
echo "-----> Installing Chef ${pretty_version} package";
# solaris 10 lacks recent enough credentials, so http url is used
platform="`/usr/bin/uname -s 2>/dev/null`";
platform_version="`/usr/bin/uname -r 2>/dev/null`";
if test "x${platform}" = "xSunOS" && test "x${platform_version}" = "x5.10"; then
chef_omnibus_url=`echo "$chef_omnibus_url" | sed -e "s/https/http/"`;
fi
do_download "$chef_omnibus_url" /tmp/install.sh;
$sudo_sh /tmp/install.sh $install_flags;
else
echo "-----> Chef installation detected (${pretty_version})";
fi
}
# augment path in an attempt to find a download program
PATH="${PATH}:/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/sfw/bin";
export PATH;
main
']
E, [2020-08-13T10:48:09.576290 #10369] ERROR -- Test-Linux: ----------------------
E, [2020-08-13T10:48:09.576322 #10369] ERROR -- Test-Linux: ------Backtrace-------
E, [2020-08-13T10:48:09.576350 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/provisioner/base.rb:95:in `rescue in call'
E, [2020-08-13T10:48:09.576419 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/provisioner/base.rb:94:in `call'
E, [2020-08-13T10:48:09.576466 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:409:in `block in converge_action'
E, [2020-08-13T10:48:09.576499 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:552:in `synchronize_or_call'
E, [2020-08-13T10:48:09.576529 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:514:in `block in action'
E, [2020-08-13T10:48:09.576568 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/2.6.0/benchmark.rb:293:in `measure'
E, [2020-08-13T10:48:09.576595 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:513:in `action'
E, [2020-08-13T10:48:09.576621 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:404:in `converge_action'
E, [2020-08-13T10:48:09.576649 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:382:in `block (2 levels) in transition_to'
E, [2020-08-13T10:48:09.576686 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/lifecycle_hooks.rb:45:in `run_with_hooks'
E, [2020-08-13T10:48:09.576715 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:381:in `block in transition_to'
E, [2020-08-13T10:48:09.576742 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:380:in `each'
E, [2020-08-13T10:48:09.576769 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:380:in `transition_to'
E, [2020-08-13T10:48:09.576800 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:140:in `converge'
E, [2020-08-13T10:48:09.576836 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:198:in `public_send'
E, [2020-08-13T10:48:09.576868 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:198:in `run_action_in_thread'
E, [2020-08-13T10:48:09.576895 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2020-08-13T10:48:09.576921 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
E, [2020-08-13T10:48:09.576946 #10369] ERROR -- Test-Linux: ----End Backtrace-----
E, [2020-08-13T10:48:09.576970 #10369] ERROR -- Test-Linux: ---Nested Exception---
E, [2020-08-13T10:48:09.577007 #10369] ERROR -- Test-Linux: Class: Kitchen::Transport::SshFailed
E, [2020-08-13T10:48:09.577038 #10369] ERROR -- Test-Linux: Message: SSH exited (1) for command: [sudo -E sh -c '
chef_omnibus_root="/opt/chef"
chef_omnibus_url="https://omnitruck.chef.io/install.sh"
install_flags=""
pretty_version="install only if missing"
sudo_sh="sudo -E sh"
version="true"
tmp_stderr="/tmp/stderr";
# capture_tmp_stderr SOURCE
capture_tmp_stderr() {
# spool up $tmp_stderr from all the commands we called
if test -f "$tmp_stderr"; then
output="`cat $tmp_stderr`";
stderr_results="${stderr_results}\nSTDERR from $1:\n\n${output}\n";
rm $tmp_stderr;
fi
}
# do_curl URL FILENAME
do_curl() {
echo "Trying curl...";
curl -sL -D "$tmp_stderr" "$1" > "$2";
ec=$?;
# check for 404
grep "404 Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "curl";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_download URL FILENAME
do_download() {
echo "Downloading ${1} to file ${2}";
exists wget;
if test $? -eq 0; then
do_wget "$1" "$2" && return 0;
fi
exists curl;
if test $? -eq 0; then
do_curl "$1" "$2" && return 0;
fi
exists fetch;
if test $? -eq 0; then
do_fetch "$1" "$2" && return 0;
fi
exists python;
if test $? -eq 0; then
do_python "$1" "$2" && return 0;
fi
exists perl;
if test $? -eq 0; then
do_perl "$1" "$2" && return 0;
fi
unable_to_download "$1" "$2";
}
# do_fetch URL FILENAME
do_fetch() {
echo "Trying fetch...";
fetch -o "$2" "$1" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "fetch";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_perl URL FILENAME
do_perl() {
echo "Trying perl...";
perl -e "use LWP::Simple; getprint(\$ARGV[0]);" "$1" > "$2" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "404 Not Found" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "perl";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_python URL FILENAME
do_python() {
echo "Trying python...";
python -c "import sys,urllib2 ; sys.stdout.write(urllib2.urlopen(sys.argv[1]).read())" "$1" > "$2" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "HTTP Error 404" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "python";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# do_wget URL FILENAME
do_wget() {
echo "Trying wget...";
wget -O "$2" "$1" 2>"$tmp_stderr";
ec=$?;
# check for 404
grep "ERROR 404" "$tmp_stderr" 2>&1 >/dev/null;
if test $? -eq 0; then
http_404_error "$1";
fi
# check for bad return status or empty output
if test $ec -ne 0 || test ! -s "$2"; then
capture_tmp_stderr "wget";
return 1;
else
echo "Download complete.";
return 0;
fi
}
# exists COMMAND
exists() {
if command -v "$1" >/dev/null 2>&1; then
return 0;
else
return 1;
fi
}
# http_404_error URL
http_404_error() {
echo ">>>>>> Downloading ${1} resulted in an HTTP/404, aborting";
exit 40;
}
# should_update_chef ROOT VERSION
should_update_chef() {
if test ! -d "$1"; then
return 0;
elif test "$2" = "true"; then
return 1;
elif test "$2" = "latest"; then
return 0;
fi
if test -f "${1}/version-manifest.txt"; then
chef_version="`head -n 1 ${1}/version-manifest.txt | cut -d \" \" -f 2`";
else
chef_version="`${1}/bin/chef-solo -v | cut -d \" \" -f 2`";
fi
echo "$chef_version" | grep "^${2}" 2>&1 >/dev/null;
if test $? -eq 0; then
return 1;
else
echo "${2}" | grep "^$chef_version" 2>&1 >/dev/null;
if test $? -eq 0; then
return 1;
else
return 0;
fi
fi
}
# unable_to_download URL FILE
unable_to_download() {
echo "Unable to download $1 to $2, aborting";
if test "x${stderr_results}" != "x"; then
echo "\nDEBUG OUTPUT FOLLOWS:\n${stderr_results}";
fi
exit 10;
}
# main
main() {
should_update_chef "$chef_omnibus_root" "$version"
if test $? -eq 0; then
echo "-----> Installing Chef ${pretty_version} package";
# solaris 10 lacks recent enough credentials, so http url is used
platform="`/usr/bin/uname -s 2>/dev/null`";
platform_version="`/usr/bin/uname -r 2>/dev/null`";
if test "x${platform}" = "xSunOS" && test "x${platform_version}" = "x5.10"; then
chef_omnibus_url=`echo "$chef_omnibus_url" | sed -e "s/https/http/"`;
fi
do_download "$chef_omnibus_url" /tmp/install.sh;
$sudo_sh /tmp/install.sh $install_flags;
else
echo "-----> Chef installation detected (${pretty_version})";
fi
}
# augment path in an attempt to find a download program
PATH="${PATH}:/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/sfw/bin";
export PATH;
main
']
E, [2020-08-13T10:48:09.577094 #10369] ERROR -- Test-Linux: ----------------------
E, [2020-08-13T10:48:09.577126 #10369] ERROR -- Test-Linux: ------Backtrace-------
E, [2020-08-13T10:48:09.577152 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/provisioner/base.rb:95:in `rescue in call'
E, [2020-08-13T10:48:09.577178 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/provisioner/base.rb:94:in `call'
E, [2020-08-13T10:48:09.577204 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:409:in `block in converge_action'
E, [2020-08-13T10:48:09.577232 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:552:in `synchronize_or_call'
E, [2020-08-13T10:48:09.577259 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:514:in `block in action'
E, [2020-08-13T10:48:09.577295 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/2.6.0/benchmark.rb:293:in `measure'
E, [2020-08-13T10:48:09.577332 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:513:in `action'
E, [2020-08-13T10:48:09.577356 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:404:in `converge_action'
E, [2020-08-13T10:48:09.577369 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:382:in `block (2 levels) in transition_to'
E, [2020-08-13T10:48:09.577409 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/lifecycle_hooks.rb:45:in `run_with_hooks'
E, [2020-08-13T10:48:09.577424 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:381:in `block in transition_to'
E, [2020-08-13T10:48:09.577451 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:380:in `each'
E, [2020-08-13T10:48:09.577476 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:380:in `transition_to'
E, [2020-08-13T10:48:09.577498 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/instance.rb:140:in `converge'
E, [2020-08-13T10:48:09.577527 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:198:in `public_send'
E, [2020-08-13T10:48:09.577555 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:198:in `run_action_in_thread'
E, [2020-08-13T10:48:09.577576 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.4.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2020-08-13T10:48:09.577596 #10369] ERROR -- Test-Linux: /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
E, [2020-08-13T10:48:09.577625 #10369] ERROR -- Test-Linux: ----End Backtrace-----
Versions:
Chef Workstation version: 0.17.5
Chef Infra Client version: 15.8.23
Chef InSpec version: 4.18.100
Chef CLI version: 2.0.0
Test Kitchen version: 2.4.0
Cookstyle version: 5.22.6
Platform Details
Scenario:
I'm trying to converge, I was able to run kitchen create, but converge is failing.
Steps to Reproduce:
I'm not sure if there is a bug or if I'm doing it wrong, but I can give my kitchen.yml if you need to try and reproduce.
Expected Result:
I expect you to get the same error as me.
Actual Result: