-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Support "unix:///" scheme in Dial #1741
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
Comments
@menghanl can you provide an ETA on or work estimate for this feature request? |
I think I am stumbling on this. I try to get a embedded Etcd server running over unix domain sockets in (https://github.com./purpleidea/mgmt/) but running into this error:
I have boiled it down to: Line 438 in 3926816
Where a TCP dialer is created if none exists yet, even though a correct dialer is passed in via: https://github.com./coreos/etcd/blob/3903385d1b50c26ec0c18e99fc55be33ee0d97e3/clientv3/client.go#L272 afaict, but my go knowledge is yet lacking in this part. Changing this from "tcp" to "unix" makes it work, but obviously breaks TCP support. I have not yet found a way to properly inspect the A similar error message is generated when running Etcd directly using unix sockets:
Is this due to lack of support for unix domain sockets in grpc? Or is Etcd/mgmt invoking grpc wrongly in this point? |
@aequitas What's the target you are dialing to? If what I assumed is correct. I think the problem here is that, the etcd dialer you pointed to assumes gRPC doesn't parse the target, so it will still receive host as Please try this workaround and see if it works: use |
@menghanl thanks for the quick response. Afaict Etcd passes only the 'host:port' part to the DialContext. When giving this url to Etcd: I tried adding the
I missed the difference in these error messages when debugging earlier, and also that there was a second entrypoint in |
@aequitas At this stage, I think it would be better to file an issue in etcd repo and ask about this. It's not clear to me what might have caused this problem. |
@aequitas Can you file an issue to etcd? I was planning to debug this as well, while testing etcd with unix sockets. Thanks. |
@menghanl will do, thanks for the help so far. @gyuho sure thing: etcd-io/etcd#9340 |
The issue here should be covered by #1911. Closing this now. |
As defined in https://github.com./grpc/grpc/blob/master/doc/naming.md
The text was updated successfully, but these errors were encountered: