Skip to content

Instantly share code, notes, and snippets.

@scarolan
Created May 20, 2015 18:29
Show Gist options
  • Save scarolan/89d3630e431374a93861 to your computer and use it in GitHub Desktop.
Save scarolan/89d3630e431374a93861 to your computer and use it in GitHub Desktop.
-----> Starting Kitchen (v1.4.0.rc.1)
-----> Converging <default-win2012r2>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.2.3...
Removing non-cookbook files before transfer
Preparing data_bags
Preparing validation.pem
Preparing client.rb
-----> Chef Omnibus installation detected (install only if missing)
Transferring files to <default-win2012r2>
[2015-05-20T11:28:20-07:00] WARN: Chef-client has been configured to audit after it converges. Audit mode is an experimental feature currently under development. API changes may occur. Use at your own risk.
* To enable audit mode after converge, use command line option `--audit-mode enabled` or set `:audit_mode = :enabled` in your config file.
* To disable audit mode, use command line option `--audit-mode disabled` or set `:audit_mode = :disabled` in your config file.
* To only run audit mode, use command line option `--audit-mode audit-only` or set `:audit_mode = :audit_only` in your config file.
Audit mode is disabled by default.
Starting Chef Client, version 12.3.0
[2015-05-20T11:28:30-07:00] WARN: Child with name 'dna.json' found in multiple directories: C:/Users/vagrant/AppData/Local/Temp/kitchen/dna.json and C:/Users/vagrant/AppData/Local/Temp/kitchen/dna.json
resolving cookbooks for run list: ["csc_audit::install_software", "csc_audit::test"]
Synchronizing Cookbooks:
- 7-zip
- csc_audit
- windows
- chef_handler
Compiling Cookbooks...
Converging 2 resources
Recipe: 7-zip::default
(up to date)
(up to date)
* ruby_block[fix ruby ENV['PATH']] action nothing (skipped due to action :nothing)
(up to date)
Starting audit phase
1 Install Windows Features and Software
1.1 Check for base software
1.1.1 Verify that 7-zip is installed (FAILED - 1)
1.2 Check for Windows features
1.2.1 Verify that X feature is enabled (FAILED - 2)
Failures:
1) 1 Install Windows Features and Software 1.1 Check for base software 1.1.1 Verify that 7-zip is installed
Failure/Error: expect(package('7-zip')).to be_installed
expected Package "7-zip" to be installed
# C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/csc_audit/recipes/test.rb:10:in `block (3 levels) in from_file'
2) 1 Install Windows Features and Software 1.2 Check for Windows features 1.2.1 Verify that X feature is enabled
Failure/Error: expect(windows_feature('Minesweeper')).to be_installed
expected Windows feature "Minesweeper" to be installed
# C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/csc_audit/recipes/test.rb:15:in `block (3 levels) in from_file'
Finished in 2.89 seconds (files took 0.70256 seconds to load)
2 examples, 2 failures
Failed examples:
rspec # 1 Install Windows Features and Software 1.1 Check for base software 1.1.1 Verify that 7-zip is installed
rspec # 1 Install Windows Features and Software 1.2 Check for Windows features 1.2.1 Verify that X feature is enabled
[2015-05-20T11:28:34-07:00] ERROR: Audit phase failed with error message: Audit phase found failures - 2/2 controls failed
Audit phase exception:
Audit phase found failures - 2/2 controls failed
C:/opscode/chef/embedded/apps/chef/lib/chef/client.rb:373:in `run_audits'
C:/opscode/chef/embedded/apps/chef/lib/chef/client.rb:464:in `run'
C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:253:in `run_with_graceful_exit_option'
C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:230:in `block in run_chef_client'
C:/opscode/chef/embedded/apps/chef/lib/chef/local_mode.rb:39:in `with_server_connectivity'
C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:213:in `run_chef_client'
C:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:402:in `block in interval_run_chef_client'
C:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `loop'
C:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `interval_run_chef_client'
C:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `run_application'
C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
C:/opscode/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'
C:/opscode/chef/bin/chef-client:63:in `load'
C:/opscode/chef/bin/chef-client:63:in `<main>'
Running handlers:
[2015-05-20T11:28:34-07:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-20T11:28:34-07:00] ERROR: Exception handlers complete
[2015-05-20T11:28:34-07:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 14.175946 seconds
0 controls succeeded
[2015-05-20T11:28:34-07:00] FATAL: Chef::Exceptions::RunFailedWrappingError: Found 1 errors, they are stored in the backtrace
>>>>>> Converge failed on instance <default-win2012r2>.
>>>>>> Please see .kitchen/logs/default-win2012r2.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: WinRM exited (1) for command: [
$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH","Machine")
& $env:systemdrive\opscode\chef\bin\chef-client.bat --local-mode --config $env:TEMP\kitchen\client.rb --log_level auto --force-formatter --no-color --json-attributes $env:TEMP\kitchen\dna.json --chef-zero-port 8889]
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment