You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reboot[reboot after rename] action reboot_now[2018-12-27T11:47:39+01:00] INFO: Processing reboot[reboot after rename] action reboot_now (cookbookname::default line 41)
[2018-12-27T11:47:39+01:00] WARN: Rebooting system immediately, requested by 'reboot after rename'
[2018-12-27T11:47:39+01:00] INFO: Changing reboot status from {} to {:delay_mins=>0, :reason=>"Reboot by Chef", :timestamp=>2018-12-27 11:47:39 +0100, :requested_by=>"reboot after rename"}
[2018-12-27T11:47:39+01:00] INFO: Chef Run complete in 17.390383 seconds
Running handlers:
[2018-12-27T11:47:39+01:00] INFO: Running report handlers
Running handlers complete
[2018-12-27T11:47:39+01:00] INFO: Report handlers complete
Chef Client finished, 0/0 resources updated in 22 seconds
[2018-12-27T11:47:39+01:00] WARN: Rebooting server at a recipe's request. Details: {:delay_mins=>0, :reason=>"Reboot by Chef", :timestamp=>2018-12-27 11:47:39 +0100, :requested_by=>"reboot after rename"}
Running handlers:
[2018-12-27T11:47:39+01:00] ERROR: Running exception handlers
Running handlers complete
[2018-12-27T11:47:39+01:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 22 seconds
[2018-12-27T11:47:39+01:00] FATAL: Stacktrace dumped to C:/Users/cmadmin/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
[2018-12-27T11:47:39+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-12-27T11:47:39+01:00] FATAL: Chef::Exceptions::Reboot: Rebooting server at a recipe's request. Details: {:delay_mins=>0, :reason=>"Reboot by Chef", :timestamp=>2018-12-27 11:47:39 +0100, :requested_by=>"reboot after rename"}
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Converge failed on instance . Please see .kitchen/logs/custom-hostname-windows-2012r2.log for more details
Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration
Error : [20] when executing command: 'kitchen test custom-hostname'
The text was updated successfully, but these errors were encountered:
Versions:
chef-client : 14.7.17
Platform Details
Scenario:
I need to reboot vm during chef run.
Everything works correctly when I use driver Vagrant .
Steps to Reproduce:
Implement in recipe :
reboot 'reboot after rename' do
action :reboot_now
end
configure kitchen.yml like :
driver:
name: vsphere
driver_options:
host:
user: "<%= ENV['TERRAFORM_USER'] %>"
password: "<%= ENV['TERRAFORM_PASSWD'] %>"
insecure: true
machine_options:
start_timeout: 600
create_timeout: 600
ready_timeout: 90
bootstrap_options:
datacenter: 'Datacenter'
template_name: 'CM_TMPL_TF_W2012R2x64
template_folder: 'CM_OS_TEMPLATE'
vm_folder: 'Terraform'
num_cpus: 2,
network_name:
- '415Virtual'
memory_mb: 4096
resource_pool: 'vSAN_Tier2'
ssh:
elevated: true
port: 5985
user: "<%= ENV['WINRM_USER'] %>"
password: "<%= ENV['WINRM_PASSWD'] %>"
provisioner:
name: chef_zero
log_level: info
product_name: chef
product_version: 14.7.17
download_url: "https://host.ra-int.com/artifactory/chef-internal/chef-client/chef-client-14.7.17-1-x64.msi"
always_update_cookbooks: true
retry_on_exit_code:
- 35 # signals node is rebooting
- 20 # for test
max_retries: 3
wait_for_retry: 180
data_bags_path: test/integration/data_bags
client_rb:
exit_status: :disabled
client_fork: false
attributes:
ra:
cookbook_name:
username: 'username'
password: <%= ENV['DOMAIN_PASSWORD'] %>
verifier:
name: inspec
platforms:
transport:
elevated: true
suites:
run_list:
verifier:
inspec_tests:
- test/smoke/random_name
Expected Result:
reboot and chef retry after 180s
Actual Result:
reboot[reboot after rename] action reboot_now[2018-12-27T11:47:39+01:00] INFO: Processing reboot[reboot after rename] action reboot_now (cookbookname::default line 41)
[2018-12-27T11:47:39+01:00] WARN: Rebooting system immediately, requested by 'reboot after rename'
[2018-12-27T11:47:39+01:00] INFO: Changing reboot status from {} to {:delay_mins=>0, :reason=>"Reboot by Chef", :timestamp=>2018-12-27 11:47:39 +0100, :requested_by=>"reboot after rename"}
[2018-12-27T11:47:39+01:00] INFO: Chef Run complete in 17.390383 seconds
Error : [20] when executing command: 'kitchen test custom-hostname'
The text was updated successfully, but these errors were encountered: