Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kitchen has wrong exit code for chef-solo failure on windows (winrm) #1134

Closed
b-dean opened this issue Sep 29, 2016 · 1 comment
Closed

kitchen has wrong exit code for chef-solo failure on windows (winrm) #1134

b-dean opened this issue Sep 29, 2016 · 1 comment
Labels

Comments

@b-dean
Copy link

b-dean commented Sep 29, 2016

Description

With Kitchen versions that use winrm gem 2.x, when chef-solo exits with a non-zero exit status, kitchen exits with a 20, which is the "unexpected error" exit status. Previous versions of kitchen (< 1.8 for sure, maybe others) returned the "expected error" exit status of 10 for chef-solo errors.

Kitchen Version

1.13.2

Ruby Version

2.3.0

Platform Version

  • Host: Ubuntu 14.04.5
  • Guest: Windows 2012 R2

Replication Case

I created b-dean/winrm-issue-229 to reproduce WinRb/WinRM#229 and if you edit the Gemfile to say

gem 'winrm', '~> 2.0.3'

then the winrm bug is fixed and kitchen has the wrong exit code.

Kitchen Output

Here's the output of running bundle exec kitchen test -l debug
https://gist.github.com/b-dean/7d7f5798ef9a4f35ab2b3aa67ef63ece#file-default-windows-log

Kitchen Diagnose

https://gist.github.com/b-dean/7d7f5798ef9a4f35ab2b3aa67ef63ece#file-kitchen-diagnose-yaml

@cheeseplus
Copy link

Given the age on this one and a significant amount of fixes on several of the related repos, closing this one out. Please do open a new issue with current versions if still experiencing this behaviour but this works pretty well now.

@test-kitchen test-kitchen locked and limited conversation to collaborators Apr 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants