Welcome! Log In Create A New Profile

Advanced

BUG/MINOR: fix server's resolver checking at configuration validation step

Posted by Baptiste 
Hi there,

In attachment, a patch to fix a bug reported by Marcos on the ML during the
summer.
The bug is that "haproxy -c -f cfgfile" don't check for if a server's
resolver section exist, despite "haproxy -f cfgfile" does it.
The issue, is that init scripts are not able to detect a mis configuration
and production can be impacted. (In Marocs case, the tool which builds the
configuration forgot to set the resolvers section).

This patch aims at fixing this issue and now, if a resolvers section
pointed by a server can't be found, then "haproxy -c -f cfgfile" will fail
too:
[ALERT] 247/111027 (28758) : config : backend 'bk_pouet', server 'bla':
unable to find required resolvers 'dns'
[ALERT] 247/111027 (28758) : Fatal errors found in configuration.

Baptiste
On Wed, Sep 05, 2018 at 11:27:13AM +0200, Baptiste wrote:
> Hi there,
>
> In attachment, a patch to fix a bug reported by Marcos on the ML during the
> summer.
(...)

applied, thank you Baptiste.

Willy
Sorry, only registered users may post in this forum.

Click here to login