[Freeipa-devel] [PATCH] 0645 ipa-replica-prepare: Wait for the DNS entry to be resolvable

Petr Viktorin pviktori at redhat.com
Thu Sep 25 13:32:00 UTC 2014


On 09/25/2014 03:23 PM, Petr Spacek wrote:
> On 25.9.2014 14:56, Petr Viktorin wrote:
>> On 09/24/2014 02:07 PM, Petr Viktorin wrote:
>>> On 09/24/2014 01:54 PM, Petr Spacek wrote:
>>>> On 24.9.2014 13:47, Petr Viktorin wrote:
>>>>> On 09/23/2014 06:00 PM, Petr Spacek wrote:
>>>>>> On 22.9.2014 14:09, Petr Viktorin wrote:
>>>>>>> On 09/22/2014 01:48 PM, Petr Spacek wrote:
>>>>>>>> On 22.9.2014 10:38, Martin Kosek wrote:
>>>>>>>>> On 09/22/2014 10:31 AM, Petr Spacek wrote:
>>>>>>>>>> On 22.9.2014 10:14, Martin Kosek wrote:
>>>>>>>>>>> On 09/19/2014 07:29 PM, Petr Viktorin wrote:
>>>>>>>>>>>> https://fedorahosted.org/freeipa/ticket/4551
>>>>>>>>>>>>
>>>>>>>>>>>> See ticket & commit message for details.
>>>>>>>>>>>
>>>>>>>>>>> Shouldn't we add a 1 sec sleep between tries? Wouldn't current
>>>>>>>>>>> version just
>>>>>>>>>>> hammer DNS server with as many DNS queries as it can send?
>>>>>>>>>>
>>> [...]
>>>>
>>>> LGTM except one nitpick I didn't see before:
>>>>
>>>>> +        if not options.wait_for_dns or self.check_dns(replica_fqdn):
>>>>> +            self.log.debug('%s A/AAAA record resolvable',
>>>>> replica_fqdn)
>>>>> +            return
>>>>
>>>> This will print message
>>>> '%s A/AAAA record resolvable', replica_fqdn
>>>> even if I use switch --no-wait-for-dns
>>>>
>>>> This is sooo minor detail that it can be deferred, please open a ticket
>>>> if you don't plan to send new version of the patch.
>>>
>>> You're right.
>>> Let's do it correctly now; this isn't worth the overhead of a ticket.
>>>
>>
>> Based on discussion more with Petr, I extended the list of handled
>> exceptions.
>
> ACK, it works even in corner cases like YXDOMAIN* answer and the like.
>
> * "Some name that ought not to exist, does exist." [RFC2136]
>

Thanks for the review!
Pushed to:
master: ffe4417c630537b1fd51292c86877fbea66862fb
ipa-4-1: ee4a023cf1d2cf5f3d10386979d00d96410e9e80
ipa-4-0: 179423761eb297dd62f0fa9bc33a4aa849d8bb34


-- 
Petr³




More information about the Freeipa-devel mailing list