-
Notifications
You must be signed in to change notification settings - Fork 913
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
Update Consul API support to 1.2.0 #643
base: master
Are you sure you want to change the base?
Conversation
Hi @josegonzalez, can you please take a look at this PR and merge it if you accept the changes? It fixes a couple open issues. |
Also a nudge @dsouzajude @mattatcha @progrium to see if we can get this merged. Thanks in advance! |
This reverts commit a6021cd.
Per @josegonzalez and @Dzevka8 I have reverted the version bump commit |
We meet with the same problem. Guys :) Would be nice to resolve this MR :) @josegonzalez @dsouzajude @mattatcha @progrium |
@timiTao We'll get to it when we get to it. There isn't any need to ping anyone to do that. Thanks. |
I think we are also experiencing the same issue with SERVICE_CHECK_SCRIPT. Hopefully this PR will help... |
We know there is no need to ping anyone but at this point, after almost six months, maybe it is time to ask for an update on the subject? Are there any plans to support this? If there aren't, we need to seriously consider moving away from using this project as we are currently blocked on our upgrade to consul in our infrastructure and we cannot have a mix setup forever. Regardless, thanks for the opensource project that you created :-) |
@josegonzalez We are blocked by the same issue. It would be great if we can get an update on the issue. |
yeah I gave up and wrote my own version. sigh https://github.com/hampsterx/ecs-consul-reg you probably don't want to use it but works for us (using aws ECS). pretty simple.. |
@josegonzalez We're assuming you won't support this and have begun investigating an alternative solution that may take another 6-8 months to implement. Some clarification from your side would help us plan such a long-term alternative. Thank you and appreciate everything you all have done. |
I've come up with a similar fix in #669 before noticing this PR - would be good to get one of these merged, as the current tree simply fails to build for me otherwise. |
+1 |
I have upgraded to consol 1.6.1 and started noticing errors in registrator to do with
My services are not being registered as expected. I tried upgrading Registrator by deploying the latest docker image from master branch but am still seeing the above error. after pulling down the branch for this PR and compiling the Registrator container and deploying it I can now see the services being successfully registered in consul and I'm able to browse the endpoints :
Would you be able to review this PR and if you have no further objections approve and merge it into the master branch? I think there are quite a few people experiencing this issue, so it would be nice to have this PR merged. Registrator is a great application, let's keep the dream alive! |
@nicofuccella this is your baby, have fun! :D |
I just merged in another PR without conflicts that handles this :) |
hi @mattatcha I pulled latest master Registrator container this morning and deployed, I'm seeing the following error in Consul in the Health Checks tab :
I'm setting the healthcheck on our web server container via environment env :
If I revert the Registrator container back to the one compiled from this PR branch the health checks go green again and I'm able to browse the endpoint. Did a quick google of the error and came across this : hashicorp/consul#3726 (comment)
Is Consul expecting an array but getting the check via the environment variable as a string perhaps? Just for laughs I tried to pass it through env as an array but got same error :
Is passsing through as an environment variable not supported anymore? |
@alaverty would you be able to create a PR with the correct changes to |
@mattatcha I have branched from master and made the required changes to I've compiled the PR branch and deployed it and can confirm the healthchecks are working as expected and healthy in consul. |
Consul 1.0.7 was the last version to support the
string Script
API, which had been long deprecated. 1.1.0 and later use[]string Args
. This PR updates Consul support to this new property, bumps the Consul version to 1.2, and the Alpine version to 3.8.Various
docker/
dependencies are updated as well. Thefsouza/go-dockerclient
dependency is pinned to1.2.2
for this change to work.