-
Notifications
You must be signed in to change notification settings - Fork 7
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
Is Caravan compatible with consul 1.7+ #5
Comments
Interesting! I'll take a look and see what we can do to support both formats
…On Thu, Dec 24, 2020 at 1:12 AM Laurent Commarieu ***@***.***> wrote:
HI,
We just upgraded from consul 1.6.4 to 1.9.1 and caravan is not working
anymore with this error :
11:04:27.414 [warn] [libcluster:caravan] unable to connect to ***@***.***_de_1.consul"
11:04:34.418 [warn] [libcluster:caravan] unable to connect to ***@***.***_de_1.consul"
11:04:39.423 [error]
** Cannot get connection id for node ***@***.***_de_1.consul"
I have done some digging on the consul side and found they have changed
the SRV response format hashicorp/consul#7360
<hashicorp/consul#7360> and
hashicorp/consul#7360 <hashicorp/consul#7360>
Instead of returning the node fqdn
app-10-62-21-91.node.dev-eu_de_1.consul. it's returning this
0a3e172b.addr.dev-eu_de_1.consul.
And it broke Caravan.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHO3IYJ3AQBMZH62LTQIWDSWLSXFANCNFSM4VH4LR2Q>
.
|
Hi, I have linked twice the same issue, the second one is hashicorp/consul#6792 |
@commarla Alright, had a chance to dig in. Basically, it was written with pre 1.7.x Consul in mind. I don't frankly understand what it's supposedly returning now. I don't have a readily available test env since switching jobs, but setting it up following this guide I seem to get the old style responses (which is confusing):
I'll try and figure out if there's something that I can do using DNS with the new versions of Consul, but don't know when I'll get to it. In the meantime, have you looked at libcluster_consul? Looks like it uses the HTTP API to get you the nodes. You can still use the |
Hi @uberbrodt thanks for your answer. I'll definitely give libcluster_consul a try when I have time. |
Hi @uberbrodt! Just wondering if you have any plans to make Caravan work with Consul 1.7+? We are trying to deploy an elixir service to our nomad/consul cluster and we're looking for solutions. Should we look elsewhere or do you have plans to work on it? I'd offer to do the work myself but I'm a total Elixir noob. I've checked out libcluster_consul, does that cover the same ground as caravan? Like the ability to use a dynamic port for epmd that's different for each instances of the service. When reading the docs on epmd it says |
@commarla just wondering if consul 1.7+ support is planned or if this library is deprecated? Thank you. |
I am not the maintainer. I closed this issue because I didn't use consul anymore. |
Got it! I'm curious, did you replace Consul with some other product, and why? |
No I quit my previous job. Consul is still in use there. |
HI,
We just upgraded from consul 1.6.4 to 1.9.1 and caravan is not working anymore with this error :
I have done some digging on the consul side and found they have changed the SRV response format hashicorp/consul#7360 and hashicorp/consul#7360
Instead of returning the node fqdn
app-10-62-21-91.node.dev-eu_de_1.consul.
it's returning this0a3e172b.addr.dev-eu_de_1.consul.
And it broke Caravan.
The text was updated successfully, but these errors were encountered: