chef-boneyard / chef-provisioning-vsphere

DEPRECATED: A chef-provisioning provisioner for VMware vSphere
MIT License
17 stars 15 forks source link

kitchen driver vsphere can't handle reboot #96

Open yamamoto52 opened 5 years ago

yamamoto52 commented 5 years ago

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:

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:

verifier: name: inspec

platforms:

transport: elevated: true

suites:

Expected Result:

reboot and chef retry after 180s

Actual Result:

Error : [20] when executing command: 'kitchen test custom-hostname'

mdpdesign commented 5 years ago

Hi, we had similar problems with rebooting the node during converge. Try adding 1min. delay to the Chef reboot. It helped us. Cheers.