Skip to content

Instantly share code, notes, and snippets.

@txag1995
Last active August 29, 2015 14:03
Show Gist options
  • Save txag1995/cf3725af8ec98be0c1ac to your computer and use it in GitHub Desktop.
Save txag1995/cf3725af8ec98be0c1ac to your computer and use it in GitHub Desktop.
C:\Users\Bryan\github\tk-windows>bundle exec kitchen test
-----> Starting Kitchen (v1.3.0)
-----> Cleaning up any prior instances of <default-windows2012r2-cloud>
-----> Destroying <default-windows2012r2-cloud>...
Finished destroying <default-windows2012r2-cloud> (0m0.00s).
-----> Testing <default-windows2012r2-cloud>
-----> Creating <default-windows2012r2-cloud>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'windows2012r2_cloud'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: default-windows2012r2-cloud_default_1405112385837_7075
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3389 => 3389 (adapter 1)
default: 5985 => 5985 (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: Setting hostname...
==> default: Machine not provisioning because `--no-provision` is specified.
Vagrant instance <default-windows2012r2-cloud> created.
Finished creating <default-windows2012r2-cloud> (1m42.16s).
-----> Converging <default-windows2012r2-cloud>...
Preparing files for transfer
Resolving cookbook dependencies with Berkshelf 3.1.3...
Removing non-cookbook files before transfer
Transferring files to <default-windows2012r2-cloud>
[2014-07-11T14:01:43-07:00] INFO: Starting chef-zero on port 8889 with repository at repository at C:/tmp/kitchen
One version per cookbook
[2014-07-11T14:01:43-07:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix this issue add an entry like this to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /tmp/kitchen/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-07-11T14:01:48-07:00] INFO: *** Chef 11.12.8 ***
[2014-07-11T14:01:48-07:00] INFO: Chef-client pid: 2044
[2014-07-11T14:01:55-07:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering
[2014-07-11T14:01:55-07:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/default-windows2012r2-cloud
[2014-07-11T14:01:55-07:00] INFO: Setting the run_list to ["recipe[tk-windows::default]"] from CLI options
[2014-07-11T14:01:55-07:00] INFO: Run List is [recipe[tk-windows::default]]
[2014-07-11T14:01:55-07:00] INFO: Run List expands to [tk-windows::default]
[2014-07-11T14:01:55-07:00] INFO: Starting Chef Run for default-windows2012r2-cloud
[2014-07-11T14:01:55-07:00] INFO: Running start handlers
[2014-07-11T14:01:55-07:00] INFO: Start handlers complete.
[2014-07-11T14:01:55-07:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/default-windows2012r2-cloud/runs
[2014-07-11T14:01:55-07:00] INFO: Loading cookbooks [tk-windows@0.1.0, iis@2.1.2, windows@1.31.0, chef_handler@1.1.6]
[2014-07-11T14:01:55-07:00] INFO: Storing updated cookbooks/tk-windows/recipes/default.rb in the cache.
[2014-07-11T14:01:55-07:00] INFO: Storing updated cookbooks/tk-windows/metadata.json in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/tk-windows/README.md in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/resources/app.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/resources/config.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/resources/module.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/resources/pool.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/resources/site.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/providers/app.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/providers/config.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/providers/module.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/providers/pool.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/providers/site.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/default.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_application_initialization.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_aspnet.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_auth_basic.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_auth_windows.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_cgi.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_compress_dynamic.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_compress_static.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_ftp.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_iis6_metabase_compat.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_isapi.rb in the cache.
[2014-07-11T14:01:56-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_logging.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_management.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_security.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_tracing.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/recipes/remove_default_site.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/libraries/helper.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/attributes/default.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/metadata.json in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/iis/README.md in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/auto_run.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/batch.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/feature.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/package.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/pagefile.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/path.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/printer.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/printer_port.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/reboot.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/registry.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/shortcut.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/task.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/resources/zipfile.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/providers/auto_run.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/providers/batch.rb in the cache.
[2014-07-11T14:01:57-07:00] INFO: Storing updated cookbooks/windows/providers/feature_dism.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/feature_powershell.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/feature_servermanagercmd.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/package.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/pagefile.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/path.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/printer.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/printer_port.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/reboot.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/registry.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/shortcut.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/task.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/providers/zipfile.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/recipes/default.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/recipes/reboot_handler.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/feature_base.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/matchers.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/powershell_helper.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/powershell_out.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/registry_helper.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/version.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_architecture_helper.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_helper.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_privileged.rb in the cache.
[2014-07-11T14:01:58-07:00] INFO: Storing updated cookbooks/windows/attributes/default.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/windows/metadata.json in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/windows/README.md in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/resources/default.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/providers/default.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/recipes/default.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/recipes/json_file.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/libraries/matchers.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/attributes/default.rb in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/metadata.json in the cache.
[2014-07-11T14:01:59-07:00] INFO: Storing updated cookbooks/chef_handler/README.md in the cache.
[2014-07-11T14:01:59-07:00] INFO: WindowsPackage light-weight resource already initialized -- overriding!
[2014-07-11T14:01:59-07:00] INFO: Processing windows_feature[IIS-WebServerRole] action install (iis::default line 22)
[2014-07-11T14:02:27-07:00] INFO: windows_feature[IIS-WebServerRole] installed feature
[2014-07-11T14:02:27-07:00] INFO: Processing service[iis] action enable (iis::default line 27)
[2014-07-11T14:02:27-07:00] INFO: Processing service[iis] action start (iis::default line 27)
[2014-07-11T14:02:27-07:00] INFO: Processing directory[/sandwich] action create (tk-windows::default line 11)
[2014-07-11T14:02:27-07:00] INFO: directory[/sandwich] created directory /sandwich
[2014-07-11T14:02:27-07:00] INFO: Processing template[C:\inetpub\wwwroot/index.html] action create (tk-windows::default line 15)
[2014-07-11T14:02:27-07:00] INFO: template[C:\inetpub\wwwroot/index.html] created file C:\inetpub\wwwroot/index.html
[2014-07-11T14:02:27-07:00] INFO: template[C:\inetpub\wwwroot/index.html] updated file contents C:\inetpub\wwwroot/index.html
[2014-07-11T14:02:27-07:00] INFO: Chef Run complete in 32.685724 seconds
[2014-07-11T14:02:28-07:00] INFO: Running report handlers
[2014-07-11T14:02:28-07:00] INFO: Report handlers complete
Finished converging <default-windows2012r2-cloud> (2m8.26s).
-----> Setting up <default-windows2012r2-cloud>...
Successfully installed thor-0.19.0
Successfully installed busser-0.6.2
2 gems installed
Plugin serverspec installed (version 0.2.6)
-----> Running postinstall for serverspec plugin
Finished setting up <default-windows2012r2-cloud> (0m25.28s).
-----> Verifying <default-windows2012r2-cloud>...
Suite path directory /tmp/busser/suites does not exist, skipping.
Uploading /tmp/busser/suites/serverspec/localhost/default_spec.rb (mode=0644)
Uploading /tmp/busser/suites/serverspec/spec_helper.rb (mode=0644)
-----> Running serverspec test suite
File "/inetpub/wwwroot"
should be directory
File "/inetpub/wwwroot/index.html"
should be file
should contain "Hello world"
Service "W3SVC"
should be enabled
should be running
Port "80"
should be listening
File "/sandwich"
should be directory
Finished in 4.05 seconds
7 examples, 0 failures
C:/opscode/chef/embedded/bin/ruby.exe -IC:/tmp/busser/suites/serverspec -S rspec C:/tmp/busser/suites/serverspec/localhost/default_spec.rb --color --format documentation
Finished verifying <default-windows2012r2-cloud> (0m7.98s).
-----> Destroying <default-windows2012r2-cloud>...
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Vagrant instance <default-windows2012r2-cloud> destroyed.
Finished destroying <default-windows2012r2-cloud> (0m4.47s).
Finished testing <default-windows2012r2-cloud> (4m28.20s).
-----> Kitchen is finished. (4m32.50s)
C:\Users\Bryan\github>git clone https://github.com/afiune/tk-windows.git
Cloning into 'tk-windows'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 39 (delta 6), reused 35 (delta 4)
Unpacking objects: 100% (39/39), done.
Checking connectivity... done.
C:\Users\Bryan\github>cd tk-windows
C:\Users\Bryan\github\tk-windows>bundle install
Updating https://github.com/afiune/test-kitchen.git
Updating https://github.com/afiune/kitchen-vagrant.git
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using addressable (2.3.6)
Using builder (3.2.2)
Using gyoku (1.1.1)
Using mini_portile (0.6.0)
Using nokogiri (1.6.2.1)
Using akami (1.2.2)
Using amq-protocol (1.9.2)
Using multipart-post (2.0.0)
Using faraday (0.9.0)
Using berkshelf-api-client (1.2.0)
Using buff-extensions (1.0.0)
Using hashie (2.1.2)
Using varia_model (0.4.0)
Using buff-config (1.0.0)
Using buff-ruby_engine (0.1.0)
Using buff-shell_out (0.1.1)
Using hitimes (1.2.2)
Using timers (3.0.1)
Using celluloid (0.16.0.pre2)
Using nio4r (1.0.0)
Using celluloid-io (0.16.0.pre2)
Using minitar (0.5.4)
Using sawyer (0.5.4)
Using octokit (3.2.0)
Using retryable (1.3.5)
Using buff-ignore (1.1.1)
Using erubis (2.7.0)
Using json (1.8.1)
Using mixlib-log (1.6.0)
Using mixlib-authentication (1.3.0)
Using net-http-persistent (2.9.4)
Using semverse (1.1.0)
Using ridley (4.0.0)
Using dep-selector-libgecode (1.0.2)
Using ffi (1.9.3)
Using dep_selector (1.0.3)
Using solve (1.2.0)
Using thor (0.19.1)
Using berkshelf (3.1.3)
Using bunny (1.3.1)
Using extlib (0.9.16)
Using mixlib-cli (1.5.0)
Using mixlib-config (2.1.0)
Using moneta (0.8.0)
Using ipaddress (0.8.0)
Using mime-types (1.25.1)
Using win32-process (0.7.4)
Using win32-api (1.5.1)
Using windows-api (0.4.2)
Using windows-pr (1.2.3)
Using mixlib-shellout (1.4.0)
Using systemu (2.5.2)
Using yajl-ruby (1.2.1)
Using ohai (7.0.4)
Using chef (0.8.10)
Using gssapi (1.0.3)
Using httpclient (2.4.0)
Using rack (1.5.2)
Using httpi (0.9.7)
Using net-ssh (2.9.1)
Using net-scp (1.2.1)
Using safe_yaml (1.0.3)
Using little-plugger (1.1.3)
Using multi_json (1.10.1)
Using logging (1.8.2)
Using rubyntlm (0.1.1)
Using nori (1.1.5)
Using wasabi (1.0.0)
Using savon (0.9.5)
Using uuidtools (2.1.4)
Using winrm (1.1.3)
Using test-kitchen (1.3.0) from https://github.com/afiune/test-kitchen.git (at WinRM)
Using kitchen-vagrant (0.16.0) from https://github.com/afiune/kitchen-vagrant.git (at WinRM)
Using bundler (1.5.2)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
C:\Users\Bryan\github\tk-windows>set SSL_CERT_FILE=c:\opscode\chefdk\embedded\ssl\certs\cacert.pem
C:\Users\Bryan\github\tk-windows>bundle exec kitchen test
-----> Starting Kitchen (v1.3.0)
-----> Cleaning up any prior instances of <default-windows2012r2-cloud>
-----> Destroying <default-windows2012r2-cloud>...
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Vagrant instance <default-windows2012r2-cloud> destroyed.
Finished destroying <default-windows2012r2-cloud> (0m4.52s).
-----> Testing <default-windows2012r2-cloud>
-----> Creating <default-windows2012r2-cloud>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'windows2012r2_cloud'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: default-windows2012r2-cloud_default_1405189647005_65207
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3389 => 3389 (adapter 1)
default: 5985 => 5985 (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: Setting hostname...
==> default: Machine not provisioning because `--no-provision` is specified.
Vagrant instance <default-windows2012r2-cloud> created.
Finished creating <default-windows2012r2-cloud> (1m28.70s).
-----> Converging <default-windows2012r2-cloud>...
Preparing files for transfer
Resolving cookbook dependencies with Berkshelf 3.1.3...
Removing non-cookbook files before transfer
Transferring files to <default-windows2012r2-cloud>
[2014-07-12T11:29:16-07:00] INFO: Starting chef-zero on port 8889 with repository at repository at C:/tmp/kitchen
One version per cookbook
[2014-07-12T11:29:16-07:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix this issue add an entry like this to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /tmp/kitchen/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-07-12T11:29:20-07:00] INFO: *** Chef 11.12.8 ***
[2014-07-12T11:29:20-07:00] INFO: Chef-client pid: 2744
[2014-07-12T11:29:28-07:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering
[2014-07-12T11:29:28-07:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/default-windows2012r2-cloud
[2014-07-12T11:29:28-07:00] INFO: Setting the run_list to ["recipe[tk-windows::default]"] from CLI options
[2014-07-12T11:29:28-07:00] INFO: Run List is [recipe[tk-windows::default]]
[2014-07-12T11:29:28-07:00] INFO: Run List expands to [tk-windows::default]
[2014-07-12T11:29:28-07:00] INFO: Starting Chef Run for default-windows2012r2-cloud
[2014-07-12T11:29:28-07:00] INFO: Running start handlers
[2014-07-12T11:29:28-07:00] INFO: Start handlers complete.
[2014-07-12T11:29:28-07:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/default-windows2012r2-cloud/runs
[2014-07-12T11:29:28-07:00] INFO: Loading cookbooks [tk-windows@0.1.0, iis@2.1.2, windows@1.31.0, chef_handler@1.1.6]
[2014-07-12T11:29:28-07:00] INFO: Storing updated cookbooks/tk-windows/recipes/default.rb in the cache.
[2014-07-12T11:29:28-07:00] INFO: Storing updated cookbooks/tk-windows/metadata.json in the cache.
[2014-07-12T11:29:28-07:00] INFO: Storing updated cookbooks/tk-windows/README.md in the cache.
[2014-07-12T11:29:28-07:00] INFO: Storing updated cookbooks/iis/resources/app.rb in the cache.
[2014-07-12T11:29:28-07:00] INFO: Storing updated cookbooks/iis/resources/config.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/resources/module.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/resources/pool.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/resources/site.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/providers/app.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/providers/config.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/providers/module.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/providers/pool.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/providers/site.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/default.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_application_initialization.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_aspnet.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_auth_basic.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_auth_windows.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_cgi.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_compress_dynamic.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_compress_static.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_ftp.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_iis6_metabase_compat.rb in the cache.
[2014-07-12T11:29:29-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_isapi.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_logging.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_management.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_security.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/recipes/mod_tracing.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/recipes/remove_default_site.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/libraries/helper.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/attributes/default.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/metadata.json in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/iis/README.md in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/auto_run.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/batch.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/feature.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/package.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/pagefile.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/path.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/printer.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/printer_port.rb in the cache.
[2014-07-12T11:29:30-07:00] INFO: Storing updated cookbooks/windows/resources/reboot.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/resources/registry.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/resources/shortcut.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/resources/task.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/resources/zipfile.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/auto_run.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/batch.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/feature_dism.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/feature_powershell.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/feature_servermanagercmd.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/package.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/pagefile.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/path.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/printer.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/printer_port.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/reboot.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/registry.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/shortcut.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/task.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/providers/zipfile.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/recipes/default.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/recipes/reboot_handler.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/libraries/feature_base.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/libraries/matchers.rb in the cache.
[2014-07-12T11:29:31-07:00] INFO: Storing updated cookbooks/windows/libraries/powershell_helper.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/powershell_out.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/registry_helper.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/version.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_architecture_helper.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_helper.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/libraries/windows_privileged.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/attributes/default.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/metadata.json in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/windows/README.md in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/resources/default.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/providers/default.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/recipes/default.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/recipes/json_file.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/libraries/matchers.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/attributes/default.rb in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/metadata.json in the cache.
[2014-07-12T11:29:32-07:00] INFO: Storing updated cookbooks/chef_handler/README.md in the cache.
[2014-07-12T11:29:32-07:00] INFO: WindowsPackage light-weight resource already initialized -- overriding!
[2014-07-12T11:29:33-07:00] INFO: Processing windows_feature[IIS-WebServerRole] action install (iis::default line 22)
[2014-07-12T11:29:52-07:00] INFO: windows_feature[IIS-WebServerRole] installed feature
[2014-07-12T11:29:52-07:00] INFO: Processing service[iis] action enable (iis::default line 27)
[2014-07-12T11:29:52-07:00] INFO: Processing service[iis] action start (iis::default line 27)
[2014-07-12T11:29:52-07:00] INFO: Processing directory[/sandwich] action create (tk-windows::default line 11)
[2014-07-12T11:29:52-07:00] INFO: directory[/sandwich] created directory /sandwich
[2014-07-12T11:29:52-07:00] INFO: Processing template[C:\inetpub\wwwroot/index.html] action create (tk-windows::default line 15)
[2014-07-12T11:29:52-07:00] INFO: template[C:\inetpub\wwwroot/index.html] created file C:\inetpub\wwwroot/index.html
[2014-07-12T11:29:52-07:00] INFO: template[C:\inetpub\wwwroot/index.html] updated file contents C:\inetpub\wwwroot/index.html
[2014-07-12T11:29:52-07:00] INFO: Chef Run complete in 24.671859 seconds
[2014-07-12T11:29:52-07:00] INFO: Running report handlers
[2014-07-12T11:29:52-07:00] INFO: Report handlers complete
Finished converging <default-windows2012r2-cloud> (1m54.04s).
-----> Setting up <default-windows2012r2-cloud>...
Successfully installed thor-0.19.0
Successfully installed busser-0.6.2
2 gems installed
Plugin serverspec installed (version 0.2.6)
-----> Running postinstall for serverspec plugin
Finished setting up <default-windows2012r2-cloud> (1m2.48s).
-----> Verifying <default-windows2012r2-cloud>...
Suite path directory /tmp/busser/suites does not exist, skipping.
Uploading /tmp/busser/suites/serverspec/localhost/default_spec.rb (mode=0644)
Uploading /tmp/busser/suites/serverspec/spec_helper.rb (mode=0644)
-----> Running serverspec test suite
File "/inetpub/wwwroot"
should be directory
File "/inetpub/wwwroot/index.html"
should be file
should contain "Hello world"
Service "W3SVC"
should be enabled
should be running
Port "80"
should be listening
File "/sandwich"
should be directory
Finished in 3.72 seconds
7 examples, 0 failures
C:/opscode/chef/embedded/bin/ruby.exe -IC:/tmp/busser/suites/serverspec -S rspec C:/tmp/busser/suites/serverspec/localhost/default_spec.rb --color --format documentation
Finished verifying <default-windows2012r2-cloud> (0m7.17s).
-----> Destroying <default-windows2012r2-cloud>...
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Vagrant instance <default-windows2012r2-cloud> destroyed.
Finished destroying <default-windows2012r2-cloud> (0m4.55s).
Finished testing <default-windows2012r2-cloud> (4m41.55s).
-----> Kitchen is finished. (4m46.57s)
C:\Users\Bryan\github\tk-windows>
================================================================================
Recipe Compile Error in C:/tmp/kitchen/cache/cookbooks/tk-windows/recipes/default.rb
================================================================================
NoMethodError
-------------
No resource or method named `windows_feature' for `Chef::Recipe "default"'
Cookbook Trace:
---------------
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/dsl/recipe.rb:47:in `rescue in method_missing'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/dsl/recipe.rb:44:in `method_missing'
C:/tmp/kitchen/cache/cookbooks/iis/recipes/default.rb:22:in `block in from_file'
C:/tmp/kitchen/cache/cookbooks/iis/recipes/default.rb:21:in `each'
C:/tmp/kitchen/cache/cookbooks/iis/recipes/default.rb:21:in `from_file'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/mixin/from_file.rb:30:in `instance_eval'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/mixin/from_file.rb:30:in `from_file'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/cookbook_version.rb:237:in `load_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:165:in `load_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:134:in `block in include_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:133:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:133:in `include_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/dsl/include_recipe.rb:26:in `include_recipe'
C:/tmp/kitchen/cache/cookbooks/tk-windows/recipes/default.rb:9:in `from_file'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/mixin/from_file.rb:30:in `instance_eval'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/mixin/from_file.rb:30:in `from_file'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/cookbook_version.rb:237:in `load_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:165:in `load_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context/cookbook_compiler.rb:140:in `block in compile_recipes'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context/cookbook_compiler.rb:138:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context/cookbook_compiler.rb:138:in `compile_recipes'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context/cookbook_compiler.rb:75:in `compile'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/run_context.rb:88:in `load'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/policy_builder/expand_node_object.rb:73:in `setup_run_context'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/client.rb:265:in `setup_run_context'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/client.rb:429:in `do_run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/client.rb:227:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/application.rb:217:in `run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/application/client.rb:328:in `block in run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/application/client.rb:317:in `loop'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/application/client.rb:317:in `run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/application.rb:67:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/bin/chef-client:26:in `<top (required)>'
C:/opscode/chef/bin/chef-client:23:in `load'
C:/opscode/chef/bin/chef-client:23:in `<main>'
Relevant File Content:
----------------------
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8-x86-mingw32/lib/chef/dsl/recipe.rb:
40: elsif have_resource_class_for?(method_symbol)
41: # Otherwise, we're rocking the regular resource call route.
42: declare_resource(method_symbol, args[0], caller[0], &block)
43: else
44: begin
45: super
46: rescue NoMethodError
47>> raise NoMethodError, "No resource or method named `#{method_symbol}' for #{describe_self_for_error}"
48: rescue NameError
49: raise NameError, "No resource, method, or local variable named `#{method_symbol}' for #{describe_self_for_error}"
50: end
51: end
52: end
53:
54: def has_resource_definition?(name)
55: yes_or_no = run_context.definitions.has_key?(name)
56:
[2014-07-12T10:21:25-07:00] ERROR: Running exception handlers
[2014-07-12T10:21:25-07:00] ERROR: Exception handlers complete
[2014-07-12T10:21:25-07:00] FATAL: Stacktrace dumped to C:/tmp/kitchen/cache/chef-stacktrace.out
[2014-07-12T10:21:25-07:00] FATAL: NoMethodError: No resource or method named `windows_feature' for `Chef::Recipe "default"'
>>>>>> Converge failed on instance <default-windows2012r2-cloud>.
>>>>>> Please see .kitchen/logs/default-windows2012r2-cloud.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: WinRM exited (1) using shell [powershell] for command: [chef-client -z --config /tmp/kitchen/client.rb --log_level info --chef-zero-port 8889 --json-attributes /tmp/kitchen/dna.json]
ERROR:
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment