Closed conorsch closed 8 years ago
Dig some digging and realized this is an upstream issue. Found the issue you opened here: https://github.com/test-kitchen/test-kitchen/issues/769, @ahelal.
I did not have a chance to dig deep into that. I just avoid reboot during the tests.
But I have not figured a way around that for now
since its test-kitchen issue and the PR is pending https://github.com/test-kitchen/test-kitchen/pull/564
I will close this issue
I'm still seeing this exact problem using
#encoding: utf-8
source 'https://rubygems.org'
gem 'rake', '13.0.6'
gem 'test-kitchen', '3.5.0'
gem 'test-kitchen', '3.5.0'
gem 'kitchen-ansiblepush', '0.11.0'
gem 'kitchen-ec2', '3.15.0'
gem 'inspec', '5.21.29'
gem 'kitchen-inspec', '2.6.1'
gem 'minitest', '5.18.0'
My playbook has a reboot... The instance reboots, the playbook continues, completes and an exception is promptly thrown with the following exception
#<Thread:0x0000ffff98e17a38 /home/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/test-kitchen-3.5.0/lib/kitchen/command.rb:164 run> terminated with exception (report_on_exception is true):
/home/me/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/net-ssh-7.1.0/lib/net/ssh/transport/packet_stream.rb:74:in `select': closed stream (IOError)
Any thoughts as to what I should do?
When running
kitchen test
on a playbook that includes a reboot, the playbook completes successfully, butkitchen
throws an error:Example playbook:
Some of the roles I'm testing require a reboot (e.g. installing kernel updates) before running Serverspec. Can you suggest a workaround here?