Skip to content

Instantly share code, notes, and snippets.

@grv87
Created March 28, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save grv87/4716842855d8934f3434b3548e899107 to your computer and use it in GitHub Desktop.
Save grv87/4716842855d8934f3434b3548e899107 to your computer and use it in GitHub Desktop.
Test Kitchen - use SSH transport for Windows
driver:
name: ec2
image_search:
name: Windows_Server-2016-English-Full-Base-*
region: eu-west-1
subnet_id: subnet-3615b351
instance_type: t2.micro
aws_ssh_key_id: kitchen
security_group_ids:
- sg-496eaa31
user_data: setup-ssh.xml
transport:
name: ssh
port: 22
username: Administrator
ssh_key: r:\FIDATA\workspace\!devops\infrastructure\build\keys\kitchen
no-host-key-verify: true
connection_timeout: 30
keepalive: false
max_wait_until_ready: 7200
connection_retries: 30
connection_retry_sleep: 10
provisioner:
name: chef_solo
platforms:
- name: Windows
suites:
- name: default
run_list:
attributes:
I, [2018-03-28T21:51:22.690595 #642584] INFO -- default-Windows: -----> Cleaning up any prior instances of <default-Windows>
I, [2018-03-28T21:51:22.690595 #642584] INFO -- default-Windows: -----> Destroying <default-Windows>...
I, [2018-03-28T21:51:23.072617 #642584] INFO -- default-Windows: EC2 instance <i-05eca2b0970f717a5> destroyed.
I, [2018-03-28T21:51:23.074617 #642584] INFO -- default-Windows: Finished destroying <default-Windows> (0m0.38s).
I, [2018-03-28T21:51:23.074617 #642584] INFO -- default-Windows: -----> Testing <default-Windows>
I, [2018-03-28T21:51:23.075617 #642584] INFO -- default-Windows: -----> Creating <default-Windows>...
I, [2018-03-28T21:51:25.078732 #642584] INFO -- default-Windows: Detected platform: windows version 2016rtm on x86_64. Instance Type: t2.micro. Default username: administrator (default).
I, [2018-03-28T21:51:25.078732 #642584] INFO -- default-Windows: If you are not using an account that qualifies under the AWS
free-tier, you may be charged to run these suites. The charge
should be minimal, but neither Test Kitchen nor its maintainers
are responsible for your incurred costs.
I, [2018-03-28T21:51:25.919780 #642584] INFO -- default-Windows: Instance <i-082b5aeb563a8a426> requested.
I, [2018-03-28T21:51:25.919780 #642584] INFO -- default-Windows: Polling AWS for existence, attempt 0...
I, [2018-03-28T21:51:26.072789 #642584] INFO -- default-Windows: Attempting to tag the instance, 0 retries
I, [2018-03-28T21:51:26.260799 #642584] INFO -- default-Windows: EC2 instance <i-082b5aeb563a8a426> created.
I, [2018-03-28T21:51:26.260799 #642584] INFO -- default-Windows: Waited 0/300s for instance <i-082b5aeb563a8a426> volumes to be ready.
I, [2018-03-28T21:51:27.222854 #642584] INFO -- default-Windows: Waited 0/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:51:32.492156 #642584] INFO -- default-Windows: Waited 5/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:51:38.350491 #642584] INFO -- default-Windows: Waited 10/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:51:43.755800 #642584] INFO -- default-Windows: Waited 15/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:51:49.964155 #642584] INFO -- default-Windows: Waited 20/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:51:55.401466 #642584] INFO -- default-Windows: Waited 25/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:00.880780 #642584] INFO -- default-Windows: Waited 30/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:06.434097 #642584] INFO -- default-Windows: Waited 35/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:12.213428 #642584] INFO -- default-Windows: Waited 40/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:18.009759 #642584] INFO -- default-Windows: Waited 45/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:23.597079 #642584] INFO -- default-Windows: Waited 50/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:29.183398 #642584] INFO -- default-Windows: Waited 55/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:35.124738 #642584] INFO -- default-Windows: Waited 60/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:40.593051 #642584] INFO -- default-Windows: Waited 65/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:46.080365 #642584] INFO -- default-Windows: Waited 70/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:51.566679 #642584] INFO -- default-Windows: Waited 75/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:52:57.172999 #642584] INFO -- default-Windows: Waited 80/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:02.668314 #642584] INFO -- default-Windows: Waited 85/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:08.296635 #642584] INFO -- default-Windows: Waited 90/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:13.938958 #642584] INFO -- default-Windows: Waited 95/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:19.477275 #642584] INFO -- default-Windows: Waited 100/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:25.013592 #642584] INFO -- default-Windows: Waited 105/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:30.497905 #642584] INFO -- default-Windows: Waited 110/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:35.994220 #642584] INFO -- default-Windows: Waited 115/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:41.590540 #642584] INFO -- default-Windows: Waited 120/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:47.086854 #642584] INFO -- default-Windows: Waited 125/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:52.574168 #642584] INFO -- default-Windows: Waited 130/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:53:58.099484 #642584] INFO -- default-Windows: Waited 135/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:54:04.404845 #642584] INFO -- default-Windows: Waited 140/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:54:09.923160 #642584] INFO -- default-Windows: Waited 145/300s for instance <i-082b5aeb563a8a426> to become ready.
I, [2018-03-28T21:54:10.727206 #642584] INFO -- default-Windows: Waited 0/300s for instance <i-082b5aeb563a8a426> to fetch windows admin password.
I, [2018-03-28T21:54:11.231235 #642584] INFO -- default-Windows: Retrieved Windows password for instance <i-082b5aeb563a8a426>.
I, [2018-03-28T21:54:11.232235 #642584] INFO -- default-Windows: EC2 instance <i-082b5aeb563a8a426> ready (hostname: ec2-34-245-74-1.eu-west-1.compute.amazonaws.com).
I, [2018-03-28T21:54:41.270953 #642584] INFO -- default-Windows: Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
I, [2018-03-28T21:55:14.274841 #642584] INFO -- default-Windows: Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
I, [2018-03-28T21:55:47.276729 #642584] INFO -- default-Windows: Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
I, [2018-03-28T21:56:20.279616 #642584] INFO -- default-Windows: Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
I, [2018-03-28T21:56:30.345192 #642584] INFO -- default-Windows: Finished creating <default-Windows> (5m7.26s).
I, [2018-03-28T21:56:30.345192 #642584] INFO -- default-Windows: -----> Converging <default-Windows>...
I, [2018-03-28T21:56:30.346192 #642584] INFO -- default-Windows: Preparing files for transfer
I, [2018-03-28T21:56:30.347192 #642584] INFO -- default-Windows: Preparing dna.json
I, [2018-03-28T21:56:30.348192 #642584] INFO -- default-Windows: Berksfile, Cheffile, cookbooks/, or metadata.rb not found so Chef will run with effectively no cookbooks. Is this intended?
I, [2018-03-28T21:56:30.350192 #642584] INFO -- default-Windows: Removing non-cookbook files before transfer
I, [2018-03-28T21:56:30.363193 #642584] INFO -- default-Windows: Preparing solo.rb
I, [2018-03-28T21:56:30.870222 #642584] INFO -- default-Windows: Invalid parameter in function: (null). File: (null) Line: 0
I, [2018-03-28T21:56:30.870222 #642584] INFO -- default-Windows: Expression: (null)
E, [2018-03-28T21:56:31.883280 #642584] ERROR -- default-Windows: Converge failed on instance <default-Windows>.
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: ------Exception-------
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: Class: Kitchen::ActionFailed
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: Message: SSH exited (1) for command: [$env:TEST_KITCHEN = "1"
$dirs = @("$env:TEMP\kitchen\clients", "$env:TEMP\kitchen\cookbooks", "$env:TEMP\kitchen\data", "$env:TEMP\kitchen\data_bags", "$env:TEMP\kitchen\encrypted_data_bag_secret", "$env:TEMP\kitchen\environments", "$env:TEMP\kitchen\roles")
$root_path = "$env:TEMP\kitchen"
Function Delete-AllDirs($dirs) {
$dirs | ForEach-Object {
if (Test-Path ($path = Unresolve-Path $_)) { Remove-Item $path -Recurse -Force }
}
}
Function Unresolve-Path($p) {
if ($p -eq $null) { return $null }
else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) }
}
Function Make-RootPath($p) {
$p = Unresolve-Path $p
if (-Not (Test-Path $p)) { New-Item $p -ItemType directory | Out-Null }
}
Delete-AllDirs $dirs
Make-RootPath $root_path
]
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: ----------------------
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: ------Backtrace-------
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:91:in `rescue in call'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:67:in `call'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:393:in `block in converge_action'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:536:in `synchronize_or_call'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:498:in `block in action'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:497:in `action'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:389:in `converge_action'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:368:in `block in transition_to'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `each'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `transition_to'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:157:in `verify'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:186:in `block in test'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:182:in `test'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `public_send'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2018-03-28T21:56:31.884280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: ----End Backtrace-----
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: ---Nested Exception---
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: Class: Kitchen::Transport::SshFailed
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: Message: SSH exited (1) for command: [$env:TEST_KITCHEN = "1"
$dirs = @("$env:TEMP\kitchen\clients", "$env:TEMP\kitchen\cookbooks", "$env:TEMP\kitchen\data", "$env:TEMP\kitchen\data_bags", "$env:TEMP\kitchen\encrypted_data_bag_secret", "$env:TEMP\kitchen\environments", "$env:TEMP\kitchen\roles")
$root_path = "$env:TEMP\kitchen"
Function Delete-AllDirs($dirs) {
$dirs | ForEach-Object {
if (Test-Path ($path = Unresolve-Path $_)) { Remove-Item $path -Recurse -Force }
}
}
Function Unresolve-Path($p) {
if ($p -eq $null) { return $null }
else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) }
}
Function Make-RootPath($p) {
$p = Unresolve-Path $p
if (-Not (Test-Path $p)) { New-Item $p -ItemType directory | Out-Null }
}
Delete-AllDirs $dirs
Make-RootPath $root_path
]
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: ----------------------
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: ------Backtrace-------
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:91:in `rescue in call'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:67:in `call'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:393:in `block in converge_action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:536:in `synchronize_or_call'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:498:in `block in action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:497:in `action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:389:in `converge_action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:368:in `block in transition_to'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `each'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `transition_to'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:157:in `verify'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:186:in `block in test'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:182:in `test'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `public_send'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2018-03-28T21:56:31.885280 #642584] ERROR -- default-Windows: ----End Backtrace-----
GEM
remote: https://rubygems.org/
specs:
aws-sdk (2.11.23)
aws-sdk-resources (= 2.11.23)
aws-sdk-core (2.11.23)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-resources (2.11.23)
aws-sdk-core (= 2.11.23)
aws-sigv4 (1.0.2)
builder (3.2.3)
erubis (2.7.0)
excon (0.62.0)
ffi (1.9.23-x64-mingw32)
ffi (1.9.23-x86-mingw32)
gssapi (1.2.0)
ffi (>= 1.0.1)
gyoku (1.3.1)
builder (>= 2.1.2)
httpclient (2.8.3)
jmespath (1.3.1)
kitchen-ec2 (2.2.1)
aws-sdk (~> 2)
excon
multi_json
retryable (~> 2.0)
test-kitchen (~> 1.4, >= 1.4.1)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
mixlib-install (3.9.3)
mixlib-shellout
mixlib-versioning
thor
mixlib-shellout (2.3.2-universal-mingw32)
win32-process (~> 0.8.2)
wmi-lite (~> 1.0)
mixlib-versioning (1.2.2)
multi_json (1.13.1)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.2.0)
net-ssh-gateway (1.3.0)
net-ssh (>= 2.6.5)
nori (2.6.0)
retryable (2.0.4)
rubyntlm (0.6.2)
rubyzip (1.2.1)
test-kitchen (1.20.0)
mixlib-install (~> 3.6)
mixlib-shellout (>= 1.2, < 3.0)
net-scp (~> 1.1)
net-ssh (>= 2.9, < 5.0)
net-ssh-gateway (~> 1.2)
thor (~> 0.19, < 0.19.2)
winrm (~> 2.0)
winrm-elevated (~> 1.0)
winrm-fs (~> 1.1.0)
thor (0.19.1)
win32-process (0.8.3)
ffi (>= 1.0.0)
winrm (2.2.3)
builder (>= 2.1.2)
erubis (~> 2.7)
gssapi (~> 1.2)
gyoku (~> 1.0)
httpclient (~> 2.2, >= 2.2.0.2)
logging (>= 1.6.1, < 3.0)
nori (~> 2.0)
rubyntlm (~> 0.6.0, >= 0.6.1)
winrm-elevated (1.1.0)
winrm (~> 2.0)
winrm-fs (~> 1.0)
winrm-fs (1.1.1)
erubis (~> 2.7)
logging (>= 1.6.1, < 3.0)
rubyzip (~> 1.1)
winrm (~> 2.0)
wmi-lite (1.0.0)
PLATFORMS
x64-mingw32
x86-mingw32
DEPENDENCIES
kitchen-ec2
test-kitchen
BUNDLED WITH
1.16.1
source 'https://rubygems.org'
gem 'test-kitchen'
gem 'kitchen-ec2'
I, [2018-03-28T21:51:13.435066 #642584] INFO -- Kitchen: -----> Starting Kitchen (v1.20.0)
I, [2018-03-28T21:51:22.689595 #642584] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-Windows>
I, [2018-03-28T21:51:22.690595 #642584] INFO -- Kitchen: -----> Destroying <default-Windows>...
I, [2018-03-28T21:51:23.074617 #642584] INFO -- Kitchen: -----> Testing <default-Windows>
I, [2018-03-28T21:51:23.074617 #642584] INFO -- Kitchen: -----> Creating <default-Windows>...
I, [2018-03-28T21:56:30.345192 #642584] INFO -- Kitchen: -----> Converging <default-Windows>...
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: ------Exception-------
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: Message: 1 actions failed.
>>>>>> Converge failed on instance <default-Windows>. Please see .kitchen/logs/default-Windows.log for more details
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: ----------------------
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: ------Backtrace-------
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:183:in `report_errors'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:174:in `run_action'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command/test.rb:42:in `block in call'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command/test.rb:38:in `call'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/cli.rb:52:in `perform'
E, [2018-03-28T21:56:31.887280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/cli.rb:245:in `test'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/bin/kitchen:13:in `block in <top (required)>'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/errors.rb:171:in `with_friendly_errors'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/bin/kitchen:13:in `<top (required)>'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/bin/kitchen:23:in `load'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/bin/kitchen:23:in `<main>'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: ----End Backtrace-----
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: -Composite Exception--
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: Message: Converge failed on instance <default-Windows>. Please see .kitchen/logs/default-Windows.log for more details
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: ----------------------
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: ------Backtrace-------
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:91:in `rescue in call'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:67:in `call'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:393:in `block in converge_action'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:536:in `synchronize_or_call'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:498:in `block in action'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:497:in `action'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:389:in `converge_action'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:368:in `block in transition_to'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `each'
E, [2018-03-28T21:56:31.888280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `transition_to'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:157:in `verify'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:186:in `block in test'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:182:in `test'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `public_send'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: ----End Backtrace-----
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: ---Nested Exception---
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: Message: SSH exited (1) for command: [$env:TEST_KITCHEN = "1"
$dirs = @("$env:TEMP\kitchen\clients", "$env:TEMP\kitchen\cookbooks", "$env:TEMP\kitchen\data", "$env:TEMP\kitchen\data_bags", "$env:TEMP\kitchen\encrypted_data_bag_secret", "$env:TEMP\kitchen\environments", "$env:TEMP\kitchen\roles")
$root_path = "$env:TEMP\kitchen"
Function Delete-AllDirs($dirs) {
$dirs | ForEach-Object {
if (Test-Path ($path = Unresolve-Path $_)) { Remove-Item $path -Recurse -Force }
}
}
Function Unresolve-Path($p) {
if ($p -eq $null) { return $null }
else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) }
}
Function Make-RootPath($p) {
$p = Unresolve-Path $p
if (-Not (Test-Path $p)) { New-Item $p -ItemType directory | Out-Null }
}
Delete-AllDirs $dirs
Make-RootPath $root_path
]
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: ----------------------
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: ------Backtrace-------
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:91:in `rescue in call'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/provisioner/base.rb:67:in `call'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:393:in `block in converge_action'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:536:in `synchronize_or_call'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:498:in `block in action'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:497:in `action'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:389:in `converge_action'
E, [2018-03-28T21:56:31.889280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:368:in `block in transition_to'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `each'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:367:in `transition_to'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:157:in `verify'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:186:in `block in test'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/instance.rb:182:in `test'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `public_send'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: C:/root/Ruby/2.5/w64/lib/ruby/gems/2.5.0/gems/test-kitchen-1.20.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2018-03-28T21:56:31.890280 #642584] ERROR -- Kitchen: ----End Backtrace-----
---
timestamp: 2018-03-28 18:48:25 UTC
kitchen_version: 1.20.0
plugins:
driver:
Ec2:
class: Kitchen::Driver::Ec2
version: 2.2.1
api_version: 2
provisioner:
ChefSolo:
class: Kitchen::Provisioner::ChefSolo
version: 1.20.0
api_version: 2
transport:
Ssh:
class: Kitchen::Transport::Ssh
version: 1.20.0
api_version: 1
verifier:
Busser:
class: Kitchen::Verifier::Busser
version: 1.20.0
api_version: 1
loader:
process_erb: true
process_local: true
process_global: true
global_config:
project_config:
filename: r:/!spikes/kitchen-win-ssh/.kitchen.yml
raw_data:
driver:
name: ec2
image_search:
name: Windows_Server-2016-English-Full-Base-*
region: eu-west-1
subnet_id: subnet-3615b351
instance_type: t2.micro
aws_ssh_key_id: kitchen
security_group_ids:
- sg-496eaa31
user_data: setup-ssh.xml
transport:
name: ssh
port: 22
username: Administrator
ssh_key: r:\FIDATA\workspace\!devops\infrastructure\build\keys\kitchen
no-host-key-verify: true
connection_timeout: 30
keepalive: false
max_wait_until_ready: 7200
connection_retries: 30
connection_retry_sleep: 10
provisioner:
name: chef_solo
platforms:
- name: Windows
suites:
- name: default
run_list:
attributes:
local_config:
combined_config:
filename:
raw_data:
driver:
name: ec2
image_search:
name: Windows_Server-2016-English-Full-Base-*
region: eu-west-1
subnet_id: subnet-3615b351
instance_type: t2.micro
aws_ssh_key_id: kitchen
security_group_ids:
- sg-496eaa31
user_data: setup-ssh.xml
transport:
name: ssh
port: 22
username: Administrator
ssh_key: r:\FIDATA\workspace\!devops\infrastructure\build\keys\kitchen
no-host-key-verify: true
connection_timeout: 30
keepalive: false
max_wait_until_ready: 7200
connection_retries: 30
connection_retry_sleep: 10
provisioner:
name: chef_solo
platforms:
- name: Windows
suites:
- name: default
run_list:
attributes:
instances:
default-Windows:
platform:
os_type: windows
shell_type: powershell
state_file:
hostname: ec2-52-48-243-140.eu-west-1.compute.amazonaws.com
last_action: create
last_error: Kitchen::ActionFailed
password: "(i8R8ppTb;=5=ZlPH$Nm.cagOODcDx!F"
server_id: i-05eca2b0970f717a5
driver:
associate_public_ip:
availability_zone:
aws_access_key_id:
aws_secret_access_key:
aws_session_token:
aws_ssh_key_id: kitchen
block_duration_minutes:
ebs_optimized: false
http_proxy:
iam_profile_name:
image_id: ami-2316475a
image_search:
name: Windows_Server-2016-English-Full-Base-*
instance_initiated_shutdown_behavior:
instance_type: t2.micro
interface:
kitchen_root: r:/!spikes/kitchen-win-ssh
log_level: :info
name: ec2
pre_create_command:
private_ip_address:
region: eu-west-1
retry_limit: 3
retryable_sleep: 5
retryable_tries: 60
security_group_filter:
security_group_ids:
- sg-496eaa31
shared_credentials_profile:
skip_cost_warning: false
spot_price:
ssl_verify_peer: true
subnet_id: subnet-3615b351
tags:
created-by: test-kitchen
tenancy: default
test_base_path: r:/!spikes/kitchen-win-ssh/test/integration
user_data: setup-ssh.xml
username:
provisioner:
always_update_cookbooks: false
architecture:
attributes: {}
channel: :stable
checksum:
chef_omnibus_install_options:
chef_omnibus_url: https://omnitruck.chef.io/install.sh
chef_solo_path: "\\bin\\chef-solo.bat"
clients_path:
command_prefix:
config_path:
cookbook_files_glob: README.*,metadata.{json,rb},attributes/**/*,definitions/**/*,files/**/*,libraries/**/*,providers/**/*,recipes/**/*,resources/**/*,templates/**/*
data_bags_path:
data_path:
debug:
deprecations_as_errors: false
download_url:
downloads: {}
encrypted_data_bag_secret_key_path:
enforce_idempotency: false
environments_path:
ftp_proxy:
http_proxy:
https_proxy:
install_strategy: once
kitchen_root: r:/!spikes/kitchen-win-ssh
log_file:
log_level: auto
max_retries: 1
multiple_converge: 1
name: chef_solo
nodes_path:
platform:
platform_version:
policyfile:
policyfile_path:
product_name:
product_version: :latest
profile_ruby: false
require_chef_omnibus: true
retry_on_exit_code:
- 35
- 213
roles_path:
root_path: "$env:TEMP\\kitchen"
run_list: []
solo_rb: {}
sudo:
sudo_command:
test_base_path: r:/!spikes/kitchen-win-ssh/test/integration
wait_for_retry: 30
transport:
compression: false
compression_level: 0
connection_retries: 30
connection_retry_sleep: 10
connection_timeout: 30
keepalive: false
keepalive_interval: 60
kitchen_root: r:/!spikes/kitchen-win-ssh
log_level: :info
max_ssh_sessions: 9
max_wait_until_ready: 7200
name: ssh
no-host-key-verify: true
port: 22
ssh_gateway:
ssh_gateway_username:
ssh_http_proxy:
ssh_http_proxy_password:
ssh_http_proxy_port:
ssh_http_proxy_user:
ssh_key: r:/FIDATA/workspace/!devops/infrastructure/build/keys/kitchen
test_base_path: r:/!spikes/kitchen-win-ssh/test/integration
username: Administrator
verifier:
busser_bin: "$env:TEMP\\verifier\\bin\\busser.bat"
chef_omnibus_root: "/opt/chef"
command_prefix:
debug:
ftp_proxy:
http_proxy:
https_proxy:
kitchen_root: r:/!spikes/kitchen-win-ssh
log_level: :info
name: busser
root_path: "$env:TEMP\\verifier"
ruby_bindir: "$env:systemdrive\\opscode\\chef\\embedded\\bin"
sudo:
sudo_command:
suite_name: default
test_base_path: r:/!spikes/kitchen-win-ssh/test/integration
version: busser
-----> Starting Kitchen (v1.20.0)
-----> Cleaning up any prior instances of <default-Windows>
-----> Destroying <default-Windows>...
EC2 instance <i-05eca2b0970f717a5> destroyed.
Finished destroying <default-Windows> (0m0.38s).
-----> Testing <default-Windows>
-----> Creating <default-Windows>...
Detected platform: windows version 2016rtm on x86_64. Instance Type: t2.micro. Default username: administrator (default).
If you are not using an account that qualifies under the AWS
free-tier, you may be charged to run these suites. The charge
should be minimal, but neither Test Kitchen nor its maintainers
are responsible for your incurred costs.
Instance <i-082b5aeb563a8a426> requested.
Polling AWS for existence, attempt 0...
Attempting to tag the instance, 0 retries
EC2 instance <i-082b5aeb563a8a426> created.
Waited 0/300s for instance <i-082b5aeb563a8a426> volumes to be ready.
Waited 0/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 5/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 10/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 15/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 20/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 25/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 30/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 35/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 40/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 45/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 50/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 55/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 60/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 65/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 70/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 75/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 80/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 85/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 90/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 95/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 100/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 105/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 110/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 115/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 120/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 125/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 130/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 135/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 140/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 145/300s for instance <i-082b5aeb563a8a426> to become ready.
Waited 0/300s for instance <i-082b5aeb563a8a426> to fetch windows admin password.
Retrieved Windows password for instance <i-082b5aeb563a8a426>.
EC2 instance <i-082b5aeb563a8a426> ready (hostname: ec2-34-245-74-1.eu-west-1.compute.amazonaws.com).
Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
Waiting for SSH service on ec2-34-245-74-1.eu-west-1.compute.amazonaws.com:22, retrying in 3 seconds
Finished creating <default-Windows> (5m7.26s).
-----> Converging <default-Windows>...
Preparing files for transfer
Preparing dna.json
Berksfile, Cheffile, cookbooks/, or metadata.rb not found so Chef will run with effectively no cookbooks. Is this intended?
Removing non-cookbook files before transfer
Preparing solo.rb
Invalid parameter in function: (null). File: (null) Line: 0
Expression: (null)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <default-Windows>. Please see .kitchen/logs/default-Windows.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
<?xml version='1.0' encoding='UTF-8'?>
<powershell>
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install openssh --version=7.6.0.1 --params='"/SSHServerFeature /DeleteServerKeysAfterInstalled /PathSpecsToProbeForShellEXEString:$Env:ProgramFiles\PowerShell*\Powershell.exe;$Env:SystemRoot\system32\windowspowershell\v1.0\powershell.exe /SSHDefaultShellCommandOption:/c"' --yes --stop-on-first-failure
md "$Env:USERPROFILE\.ssh"
Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key -OutFile "$Env:USERPROFILE\.ssh\authorized_keys"
</powershell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment