-
-
Notifications
You must be signed in to change notification settings - Fork 244
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 install on 64-bit fails #236
Comments
What is the behavior you would expect here? |
The issue seems to be that there is no amd64 version of Consul, so have been working on a PR for this bug - fix doesn't seem to difficult. My current blocker is that I cannot run Test Kitchen - it doen't find the 'windows-2012r2' image, busy testing it with by specifying a different base image. That is also breaking as the poise_service part of the recipe tries to create a group and a user 'consul', which you can't do on Windows. Will revert back with more detail a bit later today. |
I’ve picked up that it extracts the OS architecture via def binary_filename
arch = node['kernel']['machine'] =~ /x86_64/ ? 'amd64' : '386'
if node['platform'] == 'windows'
arch = '386'
end
[version, node['os'], arch].join('_')
end Want to submit a PR, but I can’t get Test Kitchen to run due to the missing base image, so I dumped in - name: windows-2012r2
driver:
box: opentable/win-2012r2-standard-amd64-nocm That spins up the machine but then it falls over when trying to use Possible to point me in the right direction w.r.t. getting Test Kitchen working? Or am I missing something about |
I don't think that the poise-service library cookbook has a Windows provider. |
So that would mean this cookbook can't be used for Windows? |
It looks like we need one to be written. It shouldn't be terribly hard since there is a Windows cookbook that the Chef folks maintain. I made a similar bridge using the AIX cookbook and poise-service-aix. |
I can resurrect my Windows work from the 0.10 branch of this cookbook, if you'd like. |
@gdavison That may be helpful. I don't know how well it'll jive with the new format. |
It would probably make sense to fork it, at least to start. There's no Windows support in Poise, so there would be two completely separate code paths. |
Sounds good, could we get a new branch on the upstream to fork? On Tue, 8 Dec 2015 at 04:10 Graham Davison notifications@github.com wrote:
|
@cobusbernard In poise or in this cookbook? |
I think in this one - there are likely some other issues to take care of On Tue, 8 Dec 2015 at 16:51 John Bellone notifications@github.com wrote:
|
@cobusbernard how you were you able to get that far when attempting to use this cookbook on Windows? My chef runs are failing way before it even tries to install it (see below). The issue I'm seeing should be fixed when the next version of Chef comes out:
|
Also, it looks like chocolatey is running a bit behind on their Consul version. We probably shouldn't rely on them for fetching the right version. https://chocolatey.org/packages?q=consul Should we be fetching the binary and installing it manually? It's just an |
I started a little bit at working on a Poise Service Windows provider but need a little help there. I realized I don't have a test-kitchen box for that work. |
@johnbellone playing devil's advocate; I wonder if we should be leveraging Chef's native Windows service (https://docs.chef.io/resource_windows_service.html), or the windows' cookbook @cobusbernard, @johnbellone, @gdavison thoughts? |
@Ginja I had made some changes to the cookbook after forking it, mainly forcing the Windows architecture to I ended up installing it by hand on the 1 Windows node that needed Consul by using https://github.com/kohsuke/winsw. Fairly straightforward, but I like @Ginja's idea to leverage existing tools |
Thanks for the info, @cobusbernard. There is an existing NSSM cookbook (https://github.com/dhoer/chef-nssm) we could leverage if we went down that route. If anyone has had any experience with NSSM please share your thoughts. I'm inclined to suggest we drop chocolatey, un-zip the agent/ui ourselves, and use an NSSM resource to run the former. |
Chocolatey has version 0.5.2 "in review", where it's been for months, and I have no idea where they're at with 0.6. The current cookbook has I've set up a service on Windows using NSSM using Chef. It works pretty well. Are you hoping to run servers and/or UI on Windows, or just the agents? |
My intention is just to run the agent on Windows. I believe that's what most people will want as well. So I say we accomplish that first, and then add the rest later or as people need/request them. I'm working on a windows-support branch now, but if someone already has one feel free to submit it. |
https://github.com/paybyphone/consul-cookbook/tree/new_windows_support. It's based off the v0.11.1 branch, so the parameters will likely be different from the linux version. It installs the agent using Chocolatey, so it's only Consul 0.5. |
I've just pushed up a branch to my fork that adds Windows support. However, it is a major re-factor as I've used the provider syntax for Chef 12.5, and I'm using the compat_resource cookbook to back-port support for 12.0-12.4 clients (i.e. this cookbook will not support Chef 11 clients). @cobusbernard, @johnbellone, @gdavison please take a look at the branch below. I still need to fix all the tests. https://github.com/visioncritical/consul-cookbook/tree/provider-refactor EDIT: I figured switching to the 12.5+ syntax was inevitable. I also had to change the way poise-service was used in the ADDENDUM: I'm not convinced updating the syntax was the right move. I may just patch the Windows support into the existing providers. Updating the tests is proving... difficult :( |
@Ginja I've been doing some work on the integration tests. I missed where you said the tests weren't updated. It looks good, though it wipes out my day of coding yesterday :) I have noticed that I run into a |
@gdavison I've opted to not configure a user or group on Windows machines. There's not a lot of benefit, and just adds more complexity. I'm actually working on another branch which doesn't update the Provider syntax, and I think I'm going to recommend that we use it instead. Unless @johnbellone says otherwise. |
@Ginja your provider-refactor branch looks good. |
Thanks, @kamaradclimber. I'm unhappy with it however because it attempts to use the compat_resource cookbook with Poise; they shouldn't be mixed. #259 adds Windows support and does so using just Poise, which is more in-keeping with how this cookbook is written. |
Hello, I am trying to install consul on windows 10 64bits. This is not working. I have tried all later versions:
All resulting in same effect, a window blink on my screen and nothing more happens :'( Any idea how to fix this ? I really want to give a try to consul over ZooKeeper ;) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When installing on Windows 64-bit, the install fails as there is no 64-bit version for Windows available.
The text was updated successfully, but these errors were encountered: