Consul will accept an empty client_addr and not report a failure to create client services #5371
Labels
help-wanted
We encourage community PRs for these issues!
type/bug
Feature does not function as expected
Overview of the Issue
no warn/error emitted in logs when a
client_addr
directive is empty. consul continues to start up, but does not create a listening socket. Client services (dns/http) are unavailable.Reproduction Steps
Currently, i have a 3 node cluster in a VPC. Almost bog-standard adherence to the standard install guide.
Each of the three nodes is identical, as they were all spun from the same AMI.
Here is how they are configured:
I am expecting to see consul listening on port 53, on the IP address of the
dummy0
interface.E.G.:
I have given the
consul.service
the rights to bind to sockets <1024, as you can see, there is no issue when the IP address is explicitly given.I believe the core of the issue is here:
hashicorp/go-sockaddr#31
Basically, i get no warning about
client_addr
being empty, the same way i would get an error aboutbind_addr
being empty.I do not know if this is expected or intended behavior. It does not seem intuitive to me that consul would start up w/o any warning indicating that it can't provide services for clients as intended. It also does not seem intuitive that if
client_addr
is set, but empty, a fall back tobind_addr
does not happen.Operating system and Environment details
I am running on bog-standard ubuntu on intel on aws:
Log Fragments
If you need more info, i will be happy to provide. for now, there is nothing incredibly interesting in the logs (the three nodes just come up and find one another...)
The text was updated successfully, but these errors were encountered: