[Freeipa-devel] [PATCH] 0019 Sync time with NTP before joining the domain
Rob Crittenden
rcritten at redhat.com
Wed Oct 5 20:42:38 UTC 2011
Alexander Bokovoy wrote:
> On Wed, 05 Oct 2011, Rob Crittenden wrote:
>> In synconce_ntp() ipautil.run is going to raise an exception when a
>> ntpupdate returns non-zero so the retry code isn't going to work.
>> You need to add raiseonerr=False to the call.
>>
>> It looks like you changed your mind on the retries variable too.
> Right.
>
> I ended up not using raiseonerr=False as all I needed is a way to
> break out of the loop on success so that will come sequentially if
> there is no exception.
>
> Patch attached.
This works but there is a noticeable pause on my system when ntpdate is
being run. I think it would be handy to output a message saying that the
date is being updated.
Is it necessary to sync the date when a one-time password is being used?
It doesn't hurt but it does pause a second or three.
rob
More information about the Freeipa-devel
mailing list