Skip to content
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

etcdctl --discovery-srv behavior differs between Mac and Linux versions #18021

Closed
4 tasks done
levin-kitty opened this issue May 17, 2024 · 2 comments
Closed
4 tasks done

Comments

@levin-kitty
Copy link

levin-kitty commented May 17, 2024

Bug report criteria

What happened?

I am trying to access the etcd cluster using --discovery-srv in etcdctl. I do not want to use TLS communication.

The Mac version succeeded, but the Linux version failed. The etcdctl version is the same, 3.5.13.

Error is
Error: dns lookup errors: lookup _etcd-client-ssl.{} on 127.0.0.53:53: no such host and lookup {} on 127.0.0.53:53: cannot unmarshal DNS message

I'm not sure if using --discovery-srv on the Linux version doesn't force you to use TLS only.

What did you expect to happen?

Like the Mac version, the Linux version uses the same

How can we reproduce it (as minimally and precisely as possible)?

  1. Configure an SRV domain that does not use TLS communication
  2. Access the Linux version of etcdctl

Anything else we need to know?

No response

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
etcdctl version: 3.5.13
API version: 3.5

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

Error: dns lookup errors: lookup _etcd-client-ssl.{} on 127.0.0.53:53: no such host and lookup {} on 127.0.0.53:53: cannot unmarshal DNS message
@ahrtr
Copy link
Member

ahrtr commented May 17, 2024

My immediate feeling it's a configuration issue, which means most likely you did not configure correctly the discovery on linux .

Refer to https://etcd.io/docs/v3.5/op-guide/clustering/#dns-discovery

@levin-kitty
Copy link
Author

@ahrtr

I'm sorry. It wasn't an issue with etcdctl, it was an issue with the DNS resolver. I've been using the systemd 239 version of the server, and in this case there is an issue with Golang not parsing the SRV records correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants