Hi Willy, Baptiste On Fri, 29 Jun 2018 at 08:12 Willy Tarreau <[email protected]> wrote:
> Hi Raghu, > [...] > > [ALERT] 248/130258 (21960) : parsing [/etc/haproxy/test.cfg:53] : > 'server bla' : no method found to resolve address '(null)' > [ALERT] 248/130258 (21960) : Failed to initialize server(s) addr. > > According to Nenad : > "It's not a good way to fix the issue we were experiencing > before. It will need a bigger rewrite, because the logic in > srv_iterate_initaddr needs to be changed." > > Could you please try the example above in the commit message with and > without > your patch ? Maybe the problem is still there, or maybe the logic change > mentioned by Nenad has already been done and this is no longer a problem, > in which case we could take your patch this time. > Yes this is a problem - I missed to test this case. I have a proposal. The init-addr option only makes sense when fqdn is used. But last method is useful when using IP addresses. This patch enables the last method to work by default when IP addresses are used. Can you please review? Thanks Raghu
0001-MEDIUM-init-allow-init-addr-to-work-with-server-ip-a.patch
Description: Binary data

