vkhatri / chef-ddnsupdate

Chef cookbook to Manage Bind DDNS Records using nsupdate
https://supermarket.chef.io/cookbooks/ddnsupdate
Apache License 2.0
5 stars 1 forks source link

host_nsupdate returns 2 #11

Open bcorner13 opened 7 years ago

bcorner13 commented 7 years ago

We are updating to an AD DNS server. The first time this cookbook runs it always errors out with a code of 2. on subsequent runs it is successful, as the DNS actually was updated the first time. I have searched high and low and cannot find any lists of error codes. Any Ideas of what is going on? Do we need to allow a return code of 0,2 ?

diegofduarte commented 6 years ago

Hello!

Any luck with this @bcorner13 ? I'm suffering of the same issue here...

I'm using the version 0.2.1 with Chef 13.6.4

vkhatri commented 6 years ago

Could you please share the client-run output too?

diegofduarte commented 6 years ago

@vkhatri this problem is very hard to reproduce and its a bit random. I'll try to do it again and paste here as soon as i occur

vkhatri commented 6 years ago

Sure.

A quick fix would be to add another attribute retries and set the default value to 2?

Unless, it turned out to be a code fix, this will at least fix the random errors.

bcorner13 commented 6 years ago

Sorry, have changed companies. So can't reproduce now. retries will probably be sufficient fix for now. I suspect that there are multiple AD Servers and that one of them does not allow for unsecured DDNS.