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

Backend IPv6 in Consul Catalog #714

Closed
seeder opened this issue Oct 5, 2016 · 4 comments
Closed

Backend IPv6 in Consul Catalog #714

seeder opened this issue Oct 5, 2016 · 4 comments

Comments

@seeder
Copy link

seeder commented Oct 5, 2016

We are using consul_catalog with IPv6 only services.
Traefik correctly discovers their addresses, however it uses malformed http config for backend.

Backends get constructed as http://200X:XXX:XX:d3:0:242:ac11:4:8300

instead of http://[200X:XXX:XX:d3:0:242:ac11:4]:8300

and causing errors:

Error forwarding to http://200X:XXX:XX:d3:0:242:ac11:5:8080, err: dial tcp: too many colons in address 200X:XXX:XX:d3:0:242:ac11:5:8080"

@ldez ldez added the kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. label Jun 2, 2017
@seeder
Copy link
Author

seeder commented Jun 19, 2017

So , my crude attempt at passing BackendAddress with, or without square brackets depending if it's IPv4 or IPv6 address is here:

https://github.com/seeder/traefik/tree/ipv6-consul-catalog

@traefiker
Copy link
Contributor

I'll close the issue due to inactivity but feel free to re-open if needed.

@herver
Copy link
Contributor

herver commented Jun 12, 2018

Hi there,

Just got hit by this one, it is very similar to #3428 and most likely the fix is identical.

Generated backend config:

   "radosgw-0-24j0duzKFiHUlSC0ABuYpAd8jic": {
     "url": "http://2001:xxx:xxx:e3::100:13d:8080",
     "weight": 1
   }

Output of a test curl:

 curl --http1.1 -v -k -H 'Host: xxxx' http://cephxxxxx/
*   Trying 2001:xxx:xxx:e3::100:13d...
* TCP_NODELAY set
* Connected to cephxxxxx (2001:xxx:xxx:e3::100:13d) port 80 (#0)
> GET / HTTP/1.1
> Host: xxxx
> User-Agent: curl/7.60.0
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
< Date: Tue, 12 Jun 2018 08:39:57 GMT
< Content-Length: 21
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host cephxxxxx left intact

Desired backend config:

   "radosgw-0-24j0duzKFiHUlSC0ABuYpAd8jic": {
     "url": "http://[2001:xxx:xxx:e3::100:13d]:8080",
     "weight": 1
   }

PR incoming...

@ldez ldez added this to the 1.6 milestone Jun 12, 2018
@ldez ldez added kind/bug/confirmed a confirmed bug (reproducible). and removed kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. labels Jun 12, 2018
@traefiker
Copy link
Contributor

Closed by #3477.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants