You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of operating system are you using?
I'm using Ubuntu 18.04.
What version of docker are you running?
I'm using Docker version 19.03.12, build 48a66213fe.
What version of registrator are you running?
I'm using the Docker image gliderlabs/registrator:master.
Did you build a custom version of registrator? If so, what is that image?
No. I'm not building a custom version.
What is the exact command you are running registrator with?
See the Steps to Reproduce section for my script that reproduces the issue (not sure if this is a bug or a by-design behavior).
What is the exact command you are running your container with?
See the Steps to Reproduce section.
A log capture of all the docker events before, during, and after the issue.
N/A
If relevant, Dockerfile for application that is having issues.
N/A
Description of the problem
I'm using registrator to register my Docker containers to Consul. The Docker containers have TCP health checks. When an IPv6 address is used to register the containers, the health checks always fail with the error (Note that 32789 is the published port):
dial tcp: address 2601:547:980:b3e0::172f:32789: too many colons in address
How reproducible
Always reproducible.
Steps to Reproduce
Run the Shell script I put in Reproduce script section in a terminal.
In the browser, open http://localhost:8500/.
Open the redis-service page to show the "Health Checks".
Actual Results
The "Serf Health Status" is shown as normal (in green).
The "Service 'redis-service' check" fails with output dial tcp: address 2601:547:980:b3e0::172f:32789: too many colons in address.
Note: When the service is just started up, the Output area may be still empty. Need to wait about a few minutes to have the error message show up.
Expected Results
The IPv6 address should be properly wrapped before the port number is appended.
Additional info
This issue can be worked around by wrapping the IPv6 address with [] in the -ip argument.
Initially, I thought this is an issue in Consul so I posted a question here. After discussing with Consul's product manager, we thought it looks more like a bug in Registrator.
Overview
What version of operating system are you using?
I'm using
Ubuntu 18.04
.What version of docker are you running?
I'm using
Docker version 19.03.12, build 48a66213fe
.What version of registrator are you running?
I'm using the Docker image
gliderlabs/registrator:master
.Did you build a custom version of registrator? If so, what is that image?
No. I'm not building a custom version.
What is the exact command you are running registrator with?
See the
Steps to Reproduce
section for my script that reproduces the issue (not sure if this is a bug or a by-design behavior).What is the exact command you are running your container with?
See the
Steps to Reproduce
section.A log capture of all the docker events before, during, and after the issue.
N/A
If relevant,
Dockerfile
for application that is having issues.N/A
Description of the problem
I'm using
registrator
to register my Docker containers toConsul
. The Docker containers have TCP health checks. When an IPv6 address is used to register the containers, the health checks always fail with the error (Note that32789
is the published port):How reproducible
Always reproducible.
Steps to Reproduce
Reproduce script
section in a terminal.http://localhost:8500/
.redis-service
page to show the "Health Checks".Actual Results
dial tcp: address 2601:547:980:b3e0::172f:32789: too many colons in address
.Output
area may be still empty. Need to wait about a few minutes to have the error message show up.Expected Results
The IPv6 address should be properly wrapped before the port number is appended.
Additional info
[]
in the-ip
argument.Consul
so I posted a question here. After discussing withConsul
's product manager, we thought it looks more like a bug in Registrator.Consul
post, the product manager pointed out the lines that possibly cause the bug:IP and Port
documentation.Reproduce script
The script that reproduces the bug is listed below. Please update the variable
IPv6_Addr
to use your IPv6 address.The text was updated successfully, but these errors were encountered: