<p dir="ltr"><br>
On Feb 11, 2014 4:12 AM, "Martin Kosek" <<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>> wrote:<br>
><br>
> On 02/10/2014 10:08 PM, Mauricio Tavares wrote:<br>
> > On Mon, Feb 10, 2014 at 3:40 PM, Dmitri Pal <<a href="mailto:dpal@redhat.com">dpal@redhat.com</a>> wrote:<br>
> >> On 02/09/2014 09:52 PM, Mauricio Tavares wrote:<br>
> >>><br>
> >>> On Sun, Feb 9, 2014 at 9:07 PM, Steve Dainard<<a href="mailto:sdainard@miovision.com">sdainard@miovision.com</a>><br>
> >>> wrote:<br>
> >>>><br>
> >>>> I've noticed if ntpd is already running on the client when you run the<br>
> >>>> ipa-client-install, you will get that error. I'm guessing its using<br>
> >>>> ntpdate<br>
> >>>> IP ADDRESS to sync time, and cannot do so when the daemon is running.<br>
> >>>><br>
> >>>> I've noticed if ntpd is already running on the client when you run the<br>
> >>>> ipa-client-install, you will get that error. I'm guessing its using<br>
> >>>> ntpdate<br>
> >>>> IP ADDRESS to sync time, and cannot do so when the daemon is running.<br>
> >>>><br>
> >>>        Now that you mentioned that I would agree with you in that it is<br>
> >>> failing because ntpd is running already; I could not see it because of<br>
> >>> the option "-s" in<br>
> >>><br>
> >>> [root@centos64 ~]# service ntpd status<br>
> >>> ntpd (pid  3721) is running...<br>
> >>> [root@centos64 ~]# /usr/sbin/ntpdate -U ntp -s -b -v <a href="http://auth.in.domain.com">auth.in.domain.com</a><br>
> >>> [root@centos64 ~]#<br>
> >>><br>
> >>> I could not find what all of those arguments mean in the centos 6.5<br>
> >>> ntpdate man page, but here is what I found under ubuntu's:<br>
> >>><br>
> >>>         -b     Force  the  time  to  be stepped using the settimeofday()<br>
> >>> system<br>
> >>>                call, rather than slewed (default) using  the  adjtime()<br>
> >>> system<br>
> >>>                call. This option should be used when called from a startup<br>
> >>> file<br>
> >>>                at boot time.<br>
> >>><br>
> >>>         -s     Divert logging output from the standard output (default) to<br>
> >>> the<br>
> >>>                system  syslog  facility.  This is designed primarily for<br>
> >>> conve‐<br>
> >>>                nience of cron scripts.<br>
> >>><br>
> >>>         -v     Be verbose. This option will cause ntpdate's version<br>
> >>> identifica‐<br>
> >>>                tion string to be logged.<br>
> >>><br>
> >>> In other words, -s is sending the output to syslog. And, if we check<br>
> >>> /var/log/messages we will find that<br>
> >>><br>
> >>> Feb  9 21:17:06 centos64 ntpdate[8275]: the NTP socket is in use, exiting<br>
> >>><br>
> >>> as you expected. Now, how did it detect the ntpdate failed?<br>
> >>><br>
> >>>> Steve<br>
> >>>><br>
> >>>><br>
> >>>> On Sat, Feb 8, 2014 at 8:34 AM, Mauricio Tavares<<a href="mailto:raubvogel@gmail.com">raubvogel@gmail.com</a>><br>
> >>>> wrote:<br>
> >>>>><br>
> >>>>>        Even though I already have a ntp server, I setup my newly<br>
> >>>>> created freeipa kdc to do that too (it is a slave to my primary ntp).<br>
> >>>>><br>
> >>>>> I then build a centos host to be the test client. Just to make sure it<br>
> >>>>> can see and use auth's ntp, I tested with ntpdate:<br>
> >>>>><br>
> >>>>> [root@centos64 ~]# ntpdate auth<br>
> >>>>>   8 Feb 08:13:35 ntpdate[3251]: adjust time server 10.0.0.11 offset<br>
> >>>>> -0.003097 sec<br>
> >>>>> [root@centos64 ~]#<br>
> >>>>><br>
> >>>>> so far so good, so how about running ipa-client-install?<br>
> >>>>><br>
> >>>>> [root@centos64 ~]# hostname<br>
> >>>>> centos64<br>
> >>>>> [root@centos64 ~]# ipa-client-install --hostname=`hostname -f`<br>
> >>>>> Discovery was successful!<br>
> >>>>> Hostname: <a href="http://centos64.in.domain.com">centos64.in.domain.com</a><br>
> >>>>> Realm: <a href="http://DOMAIN.COM">DOMAIN.COM</a><br>
> >>>>> DNS Domain: <a href="http://domain.com">domain.com</a><br>
> >>>>> IPA Server: <a href="http://auth.in.domain.com">auth.in.domain.com</a><br>
> >>>>> BaseDN: dc=domain,dc=com<br>
> >>>>><br>
> >>>>> [so far so good!]<br>
> >>>>><br>
> >>>>> Continue to configure the system with these values? [no]: yes<br>
> >>>>> User authorized to enroll computers: admin<br>
> >>>>> Synchronizing time with KDC...<br>
> >>>>> Unable to sync time with IPA NTP server, assuming the time is in sync.<br>
> >>>>> Please check that 123 UDP port is opened.<br>
> >>>>> Password for <a href="mailto:admin@DOMAIN.COM">admin@DOMAIN.COM</a>:<br>
> >>>>><br>
> >>>>> But, it had not problems using ntpdate against auth.  to add insult to<br>
> >>>>> injury, the log claims it is using ntpdate:<br>
> >>>>><br>
> >>>>> 2014-02-08T13:14:31Z DEBUG args=/usr/sbin/ntpdate -U ntp -s -b -v<br>
> >>>>> <a href="http://auth.in.domain.com">auth.in.domain.com</a><br>
> >>>>> 2014-02-08T13:14:31Z DEBUG stdout=<br>
> >>>>> 2014-02-08T13:14:31Z DEBUG stderr=<br>
> >>>>> 2014-02-08T13:14:31Z WARNING Unable to sync time with IPA NTP server,<br>
> >>>>> assuming the time is in sync. Please check that 123 UDP port is<br>
> >>>>> opened.<br>
> >>>>><br>
> >>>>> Could it be it is pissed because it was in sync to begin with? I mean,<br>
> >>>>> if we run the exact command the log file claims to have run,<br>
> >>>>><br>
> >>>>> [root@centos64 ~]# /usr/sbin/ntpdate -U ntp -s -b -v <a href="http://auth.in.domain.com">auth.in.domain.com</a>|<br>
> >>>>> echo $?<br>
> >>>>> 0<br>
> >>>>> [root@centos64 ~]#<br>
> >>>>><br>
> >>>>> We see it was successful.<br>
> >>>>><br>
> >>>>> I am feeling rather clueless here...<br>
> >>>>><br>
> >>>>> _______________________________________________<br>
> >>>>> Freeipa-users mailing list<br>
> >>>>> <a href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br>
> >>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> >>>><br>
> >>>><br>
> >>> _______________________________________________<br>
> >>> Freeipa-users mailing list<br>
> >>> <a href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br>
> >>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> >><br>
> >><br>
> >> This sounds like a bug to me but I would wait for European gurus to chime in<br>
> >> the morning.<br>
> >> If it is a bug we need a ticket.<br>
> >><br>
> >       I dunno where to file a ticket but here is my suggestion:<br>
> ><br>
> > in /usr/lib/python2.6/site-packages/ipaclient/ntpconf.py, function def<br>
> > synconce_ntp(server_fqdn):<br>
> ><br>
> > replace<br>
> ><br>
> >         cmd = [ntpdate, "-U", "ntp", "-s", "-b", "-v", server_fqdn]<br>
> ><br>
> > with<br>
> ><br>
> >         cmd = [ntpdate, "-U", "ntp", "-s", "-b", "-v", "-u", server_fqdn]<br>
> ><br>
> > Reasoning:<br>
> ><br>
> > [root@centos64 ~]# date +%T -s "10:13:13"<br>
> > 10:13:13<br>
> > [root@centos64 ~]# date<br>
> > Mon Feb 10 10:13:15 EST 2014<br>
> > [root@centos64 ~]# /usr/sbin/ntpdate -U ntp -s -b -v -u auth<br>
> > [root@centos64 ~]# date<br>
> > Mon Feb 10 16:05:49 EST 2014<br>
> > [root@centos64 ~]# service ntpd status<br>
> > ntpd (pid  8870) is running...<br>
> > [root@centos64 ~]#<br>
><br>
> Just to close the loop - this is the filed Bugzilla:<br>
><br>
> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1063512">https://bugzilla.redhat.com/show_bug.cgi?id=1063512</a><br>
><br>
> I will clone it upstream so that we can triage it.</p>
<p dir="ltr">Sorry. I didn't know I could submit a patch and how. It's already impressive I did the bugzilla thing. I can also do the patch, but would it then be redundant?<br>
><br>
> Martin<br>
</p>