allow-dup-ip
is ignored if server has resolvers
and backend has default-server
#2559
Labels
2.0
This issue affects the HAProxy 2.0 stable branch.
2.2
This issue affects the HAProxy 2.2 stable branch.
2.4
This issue affects the HAProxy 2.4 stable branch.
2.6
This issue affects the HAProxy 2.6 stable branch.
2.8
This issue affects the HAProxy 2.8 stable branch.
2.9
This issue affects the HAProxy 2.9 stable branch.
status: fixed
This issue is a now-fixed bug.
type: bug
This issue describes a bug.
Detailed Description of the Problem
Hi -- I noticed that
allow-dup-ip
is ignored when:resolvers
associated with it ( either explicitly, or via a default ), ANDdefault-server
line in it.Expected Behavior
That the global
default-server resolve-opts
are not reset by adefault-server
in a backend.Steps to Reproduce the Behavior
The following config should illustrate the behavior:
default-server backup
is applied to all serversdefaults
weight42
is applied to all servers.defaults
fieldresolve-opts allow-dup-ip
is not applied ( stats page shows serverapp2
in maintenance mode )the weight of the servers is overridden with
42
Do you have any idea what may have caused this?
In
src/server.c
the resolve opts seem to get reset to hard-coded values when the above conditions are met, the other option that is reset isresolve-prefer
.Do you have an idea how to solve the issue?
No response
What is your configuration?
Output of
haproxy -vv
Last Outputs and Backtraces
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: