You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to setup kitchen.yml for windows with ec2 driver.
When platform name is mentioned starting with windows-, create, converge and rest workflow works as expected however when platform name is mentioned something else, converge steps errors out.
Failed to complete #converge action: [[WinRM::FS::Core::FileTransporter] Upload failed (exitcode: 0), but stderr present
Cannot create "C:\Users\Administrator\AppData\Local\Temp\kitchen" because a file or directory with the same name already exists.
Version
root@:~# chef --version
Chef Workstation version: 23.12.1055
Chef Infra Client version: 18.3.0
Chef InSpec version: 5.22.36
Chef CLI version: 5.6.14
Chef Habitat version: 1.6.652
Test Kitchen version: 3.6.0
Cookstyle version: 7.32.2
Environment
Using ubuntu as a client to run kitchen cmds
VERSION="20.04.6 LTS (Focal Fossa)"
Scenario
Trying to run kitchen test to test out windows ec2 instance [infrastructure integration testing].
Converge works fine with this setup.
platforms:
- name: windows-2016
os_type: windows
driver:
image_id: ami-xxx
tags:
Name: Test Runner
However, it breaks when platform is named as below
platforms:
- name: tr-windows-2016
os_type: windows
driver:
image_id: ami-xxx
tags:
Name: Test Runner
OR
platforms:
- name: tr-2016
os_type: windows
driver:
image_id: ami-xxx
tags:
Name: Test Runner
Platform name that began with windows worked just fine while other two breaks which converging itself with same error
Apparently, it creates kitchen folder in the target and process mostly breaks in between while converging and then it complains about folder already exists which was created by itself in the first place.
So this is a bug, even if it expects the platform name to must begin with windows-*, it should throw correct error message in the beginning itself rather than breaking at converge with irrelevant
Failed to complete #converge action: [[WinRM::FS::Core::FileTransporter] Upload failed (exitcode: 0), but stderr present
Cannot create "C:\Users\Administrator\AppData\Local\Temp\kitchen" because a file or directory with the same name already exists.
👻 Brief Description
test-kitchen/test-kitchen#1962
We are trying to setup kitchen.yml for windows with ec2 driver.
When platform name is mentioned starting with windows-, create, converge and rest workflow works as expected however when platform name is mentioned something else, converge steps errors out.
Version
Environment
Using ubuntu as a client to run kitchen cmds
VERSION="20.04.6 LTS (Focal Fossa)"
Scenario
Trying to run kitchen test to test out windows ec2 instance [infrastructure integration testing].
Converge works fine with this setup.
However, it breaks when platform is named as below
OR
Platform name that began with windows worked just fine while other two breaks which converging itself with same error
Apparently, it creates kitchen folder in the target and process mostly breaks in between while converging and then it complains about folder already exists which was created by itself in the first place.
So this is a bug, even if it expects the platform name to must begin with windows-*, it should throw correct error message in the beginning itself rather than breaking at converge with irrelevant
Steps to Reproduce
My example config
Expected Result
Expected converge to pass
Actual Result
Converge fails.
➕ Additional context
Refer to slack where some discussion was initiated but no resolution.
https://chefcommunity.slack.com/archives/C2B6G1WCQ/p1704982897182869
The text was updated successfully, but these errors were encountered: