-
Notifications
You must be signed in to change notification settings - Fork 585
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
windows-guest-support: wrong path for chef-client #565
Comments
I've seen this! I think it is a problem on the way the new chef-client it's been install.. For some reason it was some troubles with ruby and how it is beating compile to create the Can you verify the version that it's installed on the windows guest please. |
I'm getting this issue myself now. I tried the workaround proposed by @robcoward but it doesn't seem to help for me. What's weird (or not weird I guess) is that after the first kitchen converge, which throws the error, the second time it works. |
@mattstratton @btm what version of |
This occurs with both 11.16.4 and 12.0.3. |
OK, so doing a bit more research, this is only happening on my win2k8r2 box. It's working on 2k12r2 (both client 11 and client 12) |
Confirmed on 2008r2 as well. Will try to test 2012 on Monday. |
@fnichol just pushed a large refactoring to the windows-guest-support branch which should have made the default chef path on Windows point correctly (IE, C:\opscode\chef\bin\chef-client.bat). Can you try using the latest windows-guest-support branch and re-open this if it is still an issue? |
I'm still getting the same issue. If I provide the chef-client executable, it fails looking for cookbooks (it's looking in
|
@amaltson it looks like Test Kitchen is assuming a unix instance here. At the moment, if your platform name starts with ---
platforms:
- name: win-7
os_type: windows
shell_type: powershell I think I'm going to relax the platform name matching to allow |
Thanks @fnichol, I kept trying
Should I open a new issue for this? |
@amaltson Can you post the output of your |
@tyler-ball nevermind, I found the issue was I was using
Now onto getting ServerSpec to work 😄. Thanks @fnichol and @tyler-ball (and @mwrock for the working configs). |
@amaltson Great, you beat me to it! We now have some very tempting pre-release gems out that should make all of this work out of the box: http://lists.opscode.com/sympa/arc/chef/2015-03/msg00442.html |
@amaltson Oh, and as of the beta releases, your "win7" platform name should work as expected (we shorted the matching to |
@fnichol awesome! I'm already on the beta release and it works great. The only hiccup we've run into (generally) is, if you want to converge more than once, you need to change the Once the Vagrant box is up, we executing the following:
Is that something that can go into |
@amaltson oh what version of Windows was this--Windows 7 I take it? That could be a bug in the CommandExecutor which should recycle remote shells. Think you could a add new issue for tracking? |
Sure thing, filed in #656. Thanks again! |
is it possible to spin up windows with test kitchen but using docker as a driver? works perfectly for centOS, but not for windows. I keep getting "Unknown platform 'windows'" error. tried different variations of .kitchen.yml, no success. sorry if my question is not in the right place. couldn't find any relevant information on SO, git or anywhere else. |
@Marusya82 have you tried the |
@amaltson I have, the modified version though (driver: docker). Didn't work, same error:
|
@Marusya82 I apologize if I'm exposing my general ignorance, but I didn't think it was possible to run a Windows environment inside a Docker container in general? I freely admit that I could be totally missing some magic. |
I don't believe you can, you'll have to use the kitchen-vagrant driver
|
yup. not possible to run windows inside docker but that will be a fine day when it happens. I know the windows server team is working on that and the current word is its slated for late this year. Here is a blog that covers that work: http://azure.microsoft.com/blog/2014/10/15/new-windows-server-containers-and-azure-support-for-docker/ |
@mattstratton @mwrock So eager for containers on Windows, but they will need to run on a base Windows image, you won't be able to run a Windows container on a Linux OS for example. |
@mattstratton @mwrock @amaltson (facepalm) thank you everyone, you put an end to my painful and worthless efforts to make it work. will have two configs and long for the day when windows&docker become possible. |
the windows-guest-support branch doesn't appear to support looking for omnibus on a windows guest.
or maybe its that I'm using a windows host? not sure yet.
The text was updated successfully, but these errors were encountered: