Skip to content

Instantly share code, notes, and snippets.

@vinyar
Created January 6, 2015 09:34
Show Gist options
  • Save vinyar/0ea5862f31ea2ceb6755 to your computer and use it in GitHub Desktop.
Save vinyar/0ea5862f31ea2ceb6755 to your computer and use it in GitHub Desktop.
Test Kitchen 1.3
alexvinyar@seavinyar02 ~/Documents/Projects/win_wsus (master●●)$ kitchen create
-----> Starting Kitchen (v1.3.0)
-----> Creating <domain-controller-windows-2008R2>...
Bringing machine 'default' up with 'virtualbox' provider...
default: The Berkshelf shelf is at "/Users/alexvinyar/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150106-38311-1v8go4-default"
==> default: VirtualBox VM is already running.
Vagrant instance <domain-controller-windows-2008R2> created.
Finished creating <domain-controller-windows-2008R2> (0m6.60s).
-----> Kitchen is finished. (0m7.58s)
alexvinyar@seavinyar02 ~/Documents/Projects/win_wsus (master●●)$ kitchen converge
-----> Starting Kitchen (v1.3.0)
-----> Converging <domain-controller-windows-2008R2>...
Preparing files for transfer
Preparing dna.json
Preparing cookbooks from project directory
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Chef Omnibus installation detected (true)
Transferring files to <domain-controller-windows-2008R2>
Concurrent threads set to :max_threads => 20
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [[Kitchen::Transport::Winrm] Bad HTTP response returned from server (500). using shell: [powershell] and command: [$dest_file_path = [System.IO.Path]::GetFullPath('/tmp/kitchen/client.rb')
if (Test-Path $dest_file_path) {
$crypto_prov = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
try {
$file = [System.IO.File]::Open($dest_file_path,
[System.IO.Filemode]::Open, [System.IO.FileAccess]::Read)
$guest_md5 = ([System.BitConverter]::ToString($crypto_prov.ComputeHash($file)))
$guest_md5 = $guest_md5.Replace("-","").ToLower()
}
finally {
$file.Dispose()
}
if ($guest_md5 -eq 'c3de7233314ccd1382e829c5710124d7') {
exit 0
}
}
exit 1
]]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
alexvinyar@seavinyar02 ~/Documents/Projects/win_wsus (master●●)$
kitchen create
-----> Starting Kitchen (v1.3.0)
-----> Creating <domain-controller-windows-2008R2>...
Bringing machine 'default' up with 'virtualbox' provider...
default: The Berkshelf shelf is at "/Users/alexvinyar/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150106-37662-qw0yoo-default"
==> default: Importing base box 'windows2008r2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: domain-controller-windows-2008R2_default_1420534927899_41629
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 5985 => 55985 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.18
default: VirtualBox Version: 4.3
==> default: Setting hostname...
==> default: Machine not provisioning because `--no-provision` is specified.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [undefined method `empty?' for nil:NilClass]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
alexvinyar@seavinyar02 ~/Documents/Projects/win_wsus (master●●)$ kitchen -v
Test Kitchen version 1.3.0
alexvinyar@seavinyar02 ~/Documents/Projects/win_wsus (master●●)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment