dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

Issue with ipv6 bind

Open guillaumeclair opened this issue 2 years ago • 3 comments

Hi there,

there is an issue with ipv6 on version 2.5.3, 2.5.4 and 2.6.0. Here is the scenario :

Creation of backend

curl -X POST --user admin:<pass> http://<host>:<port>/v2/services/haproxy/configuration/backends?version=1112 -d '{"balance": {"algorithm":"roundrobin"},"mode":"http","name":"test_backend"}' -H "Content-type: application/json" {"balance":{"algorithm":"roundrobin"},"mode":"http","name":"test_backend"}

Creation of frontend

curl -X POST --user admin:<pass> http://<host>:<port>/v2/services/haproxy/configuration/frontends?version=1113 -H "Content-type: application/json" -d '{"name": "test_frontend", "mode": "http", "default_backend": "test_backend", "maxconn": 2000}' {"default_backend":"test_backend","maxconn":2000,"mode":"http","name":"test_frontend"}

Creation of bind

curl -X POST --user admin:<pass> "http://<host>:<port>/v2/services/haproxy/configuration/binds?frontend=test_frontend&version=1114" -d '{"name": "http", "address": "2a01:c9c0:a3:8::3", "port": 80}' -H "Content-type: application/json" {"name":"http","address":"2a01:c9c0:a3:8::3","port":80}

Get Bind

curl -X GET --user admin:<pass> http://<host>:<port>/v2/services/haproxy/configuration/binds?frontend=test_frontend {"_version":1115,"data":[{"name":"http","address":"2a01"}]}

See the address: ipv6 parsing : address is incomplete, and port is not displayed !

Can you please take the issue into account for a further release please ?

thx.

guillaumeclair avatar Aug 25 '22 09:08 guillaumeclair

Up plz ?

guillaumeclair avatar Aug 29 '22 09:08 guillaumeclair

Hi @guillaumeclair , it is a bug, and we are currently working on fixing it, fix will be included in the following release.

mjuraga avatar Aug 29 '22 09:08 mjuraga

Hi this should be fixed in v2.6.1

mjuraga avatar Sep 15 '22 09:09 mjuraga