Re: Do you want to 2x your trade with our engaging audience?
Hi Sir, Are you interested in guest posts?
Re: [PR] BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip()
Hi Oto! On Wed, Mar 01, 2023 at 01:23:02PM +0100, PR Bot wrote: > Dear list! > > Author: Oto Valek > Number of patches: 2 > > This is an automated relay of the Github pull request: >BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in >req.hdr_ip() > > Patch title(s): >BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in > req.hdr_ip() >REGTEST: added tests covering smp_fetch_hdr_ip() Look good now, I've merged it. Thank you! Willy
Re: stick-table replication not working anymore after Version-Upgrade
> Yes, your assumption is correct. I've now added "localpeer" global > option to the config to make this more robust/more independent from the OS. Glad to know you were able to work around it. Thanks for confirming Regards, Aurelien
[PR] BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip()
Dear list! Author: Oto Valek Number of patches: 2 This is an automated relay of the Github pull request: BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip() Patch title(s): BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip() REGTEST: added tests covering smp_fetch_hdr_ip() Link: https://github.com/haproxy/haproxy/pull/2063 Edit locally: wget https://github.com/haproxy/haproxy/pull/2063.patch && vi 2063.patch Apply locally: curl https://github.com/haproxy/haproxy/pull/2063.patch | git am - Description: Fixes haproxy/haproxy#2054 To comply with [RFC7239](https://www.rfc-editor.org/rfc/rfc7239.html#section-6.1) and [RFC3986](https://www.rfc-editor.org/rfc/rfc3986.html#section-3.2.2), the `req.hdr_ip()` should recognize IPv6 addresses in square brackets. As the `inet_pton()` call does not support this format, the `smp_fetch_hdr_ip()` function was changed to trim possible `'['` and `']'` before calling `inet_pton()`. New reg test cases were added to cover all 4 branches of smp_fetch_hdr_ip(). Instructions: This github pull request will be closed automatically; patch should be reviewed on the haproxy mailing list (haproxy@formilux.org). Everyone is invited to comment, even the patch's author. Please keep the author and list CCed in replies. Please note that in absence of any response this pull request will be lost.
Re: stick-table replication not working anymore after Version-Upgrade
Am Mi., 1. März 2023 um 11:49 Uhr schrieb Aurelien DARRAGON < adarra...@haproxy.com>: > > In the HAProxy configuration i'm using the FQDN name, and it seems > > HAProxy is just using the short hostname. > This seems to be true indeed, "localpeer" default value is retrieved > thanks to gethostname() in haproxy > > However, since no obvious changes around "localpeer" handling occurred > between 2.4.15 and 2.4.22 it looks like your previous system (ubuntu > 18.04) behaved differently and used to return "s017.domain.local" with > gethostname() and 'hostname' command (without the -f) > > (Please note that hostname command relies on uname() internally, and not > on gethostname(), but the manual confirms that hostname command without > arguments "will print the name of the system as returned by the > gethostname(2) function.") > > Could you confirm? > > Thanks > Yes, your assumption is correct. I've now added "localpeer" global option to the config to make this more robust/more independent from the OS. - Mit freundlichen Grüßen / Best regards Bjoern
Re: stick-table replication not working anymore after Version-Upgrade
> In the HAProxy configuration i'm using the FQDN name, and it seems > HAProxy is just using the short hostname. This seems to be true indeed, "localpeer" default value is retrieved thanks to gethostname() in haproxy However, since no obvious changes around "localpeer" handling occurred between 2.4.15 and 2.4.22 it looks like your previous system (ubuntu 18.04) behaved differently and used to return "s017.domain.local" with gethostname() and 'hostname' command (without the -f) (Please note that hostname command relies on uname() internally, and not on gethostname(), but the manual confirms that hostname command without arguments "will print the name of the system as returned by the gethostname(2) function.") Could you confirm? Thanks
Re: stick-table replication not working anymore after Version-Upgrade
Am Mi., 1. März 2023 um 10:49 Uhr schrieb Lukas Tribus : > On Wed, 1 Mar 2023 at 10:09, bjun...@gmail.com wrote: > > > > Hi, > > > > i've upgraded from HAProxy 2.4.15 (OS: Ubuntu 18.04) to 2.4.22 (OS: > Ubuntu 22.04). Now the stick-table synchronization between peers isn't > working anymore. > > > > The peers listener is completely not existing (lsof output). > > > > HAProxy config: > > > > peers LB > > peer s017.domain.local 192.168.120.207:1234 > > peer s018.domain.local 192.168.120.208:1234 > > Is it possible the kernel rejects the bind to those IP addresses after > the OS upgrade? > > Can you bind to those ports with something like nc? > > nc -l -s 192.168.120.207 -p 1234 > > > > Lukas > Hi Lukas, yes, i can perfectly bind to those ports/ips. I've also rebooted the hosts to rule out other possibly issues. I've found something in the haproxy logs: haproxy[16083]: [WARNING] (16083) : Removing incomplete section 'peers LB' (no peer named 's017'). Maybe it's some sort of hostname/FQDN lookup "issue": # hostname s017 # hostname -f s017.domain.local In the HAProxy configuration i'm using the FQDN name, and it seems HAProxy is just using the short hostname. - Mit freundlichen Grüßen / Best regards Bjoern
Re: stick-table replication not working anymore after Version-Upgrade
On Wed, 1 Mar 2023 at 10:09, bjun...@gmail.com wrote: > > Hi, > > i've upgraded from HAProxy 2.4.15 (OS: Ubuntu 18.04) to 2.4.22 (OS: Ubuntu > 22.04). Now the stick-table synchronization between peers isn't working > anymore. > > The peers listener is completely not existing (lsof output). > > HAProxy config: > > peers LB > peer s017.domain.local 192.168.120.207:1234 > peer s018.domain.local 192.168.120.208:1234 Is it possible the kernel rejects the bind to those IP addresses after the OS upgrade? Can you bind to those ports with something like nc? nc -l -s 192.168.120.207 -p 1234 Lukas
stick-table replication not working anymore after Version-Upgrade
Hi, i've upgraded from HAProxy 2.4.15 (OS: Ubuntu 18.04) to 2.4.22 (OS: Ubuntu 22.04). Now the stick-table synchronization between peers isn't working anymore. The peers listener is completely not existing (lsof output). HAProxy config: peers LB peer s017.domain.local 192.168.120.207:1234 peer s018.domain.local 192.168.120.208:1234 backend be_redis stick-table type ip size 10 peers LB stick on dst server s021.domain.local 192.168.120.212:6379 maxconn 1000 on-marked-down shutdown-sessions track be_redis_tracking/s021.domain.local server s022.domain.local 192.168.120.213:6379 maxconn 1000 on-marked-down shutdown-sessions track be_redis_tracking/s022.domain.local backup -- Best regards Bjoern