wazo-setupd: handle error when there are more than 3 DNS resolvers


Given I have a network configuration that contains more than 3 resolvers
When I try to pass the setup
Then I get a 500 error from setupd because confd raises an error related to the presence of more than 3 resolvers.
Expected setupd should return a comprehensible error message.

  • Please see Zendesk Support tab for further comments and attachments.


Mathias Wolff
February 28, 2020, 6:54 PM

just improve the message !

François Blackburn
February 28, 2020, 6:31 PM

The status code 500 is correct .. I can improve the message but it’s not what the client want. The client want to not return 500…

Technically, the nameservers are populated automatically by the discover endpoint. If the discover return 3 resolvers, I can raise an exception in setupd, but the correct code is 500

500: The server encountered an unexpected condition which prevented it from fulfilling the request.

If you want to correct the 3 resolvers, you must add correction on your server, that's what the error code says

So the only thing I can do is to improve the message, but the code will stay the same…



François Blackburn


Zendesk Support for Jira




Pascal Cadotte