Re: [ntp:questions] Trouble Simulating Leap Seconds
On Mon, Apr 06, 2015 at 01:56:48PM -0400, Jim Witschey wrote: Do I understand correctly that add_leap_second is an NTP-internal flag, while INS is a kernel flag? If so: when does the INS flag get set in the kernel? Should I expect ntpd to do so? ntpd should set the kernel flag by calling ntp_adjtime()/adjtimex() with STA_INS in the status field. You could run ntpd in strace to verify that. -- Miroslav Lichvar ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt
Hi, Any help with below issue? /ag On Sat, Apr 4, 2015 at 9:06 AM, ast guy ast...@gmail.com wrote: Hi, I have successfully tested Leap second test on one server but when I try to do the same configuration on another ntp server it reports me that the host key file is not found or corrupt. Can some please suggest what configurations I am missing? The error when I run ntpd in debug mode. getnetnum: calling getaddrinfo(127.127.1.0,...) getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1) ntp_syslogmask = 0x (=all) set info_auth_key to 0001 getnetnum: calling getaddrinfo(127.0.0.1,...) getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0) crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes read 2048 addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or corrupt the ntp.conf configurations related to crypto module. 64 # Authentication stuff 65 # 66 #keys /etc/ntp.keys 67 # path for keys file 68 trustedkey 1 69 # define trusted keys 70 requestkey 1 71 72 73 keysdir /etc/ntp/ntp.keys 74 #keys /etc/ntp 75 76 crypto randfile /dev/urandom 77 crypto pw password Listing of ntp.keys folder. :/etc/ntp/ntp.keys # ll total 56 -rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt -rw-r--r-- 1 root root 543 Apr 4 00:21 ntpkey_RSA-MD5cert_siptel.3637066871 -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel - ntpkey_RSA-MD5cert_siptel.3637066871 lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel - ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap - leap-seconds.3629577600.txt ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt
ast guy writes: Hi, Any help with below issue? Are you using chroot options? Also try 'ls -lL ntpkey_host_siptel'. H -- /ag On Sat, Apr 4, 2015 at 9:06 AM, ast guy ast...@gmail.com wrote: Hi, I have successfully tested Leap second test on one server but when I try to do the same configuration on another ntp server it reports me that the host key file is not found or corrupt. Can some please suggest what configurations I am missing? The error when I run ntpd in debug mode. getnetnum: calling getaddrinfo(127.127.1.0,...) getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1) ntp_syslogmask = 0x (=all) set info_auth_key to 0001 getnetnum: calling getaddrinfo(127.0.0.1,...) getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0) crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes read 2048 addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or corrupt the ntp.conf configurations related to crypto module. 64 # Authentication stuff 65 # 66 #keys /etc/ntp.keys 67 # path for keys file 68 trustedkey 1 69 # define trusted keys 70 requestkey 1 71 72 73 keysdir /etc/ntp/ntp.keys 74 #keys /etc/ntp 75 76 crypto randfile /dev/urandom 77 crypto pw password Listing of ntp.keys folder. :/etc/ntp/ntp.keys # ll total 56 -rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt -rw-r--r-- 1 root root 543 Apr 4 00:21 ntpkey_RSA-MD5cert_siptel.3637066871 -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel - ntpkey_RSA-MD5cert_siptel.3637066871 lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel - ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap - leap-seconds.3629577600.txt ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] ntp-4.2.8p1 ntpd unable to start as service
Hello All, I just wanted to close this topic saying that I realized that unlike ntp-4.2.6p5, we need to use the instrsrv.exe to install or remove the NTP service. Thank you. On Fri, Apr 3, 2015 at 8:12 AM, Naren P nva...@gmail.com wrote: I am not explicitly running the binary as a Windows service. But, the following command works when compiled with ntp-4.2.6p5 as x32 or x64 for Windows 7 x64bit and ntpd process runs in the background: ntpd -g -N -c ntp.conf The same command results in the mentioned error with ntp-4.2.8p1 when compiled as x32 or x64 with Windows 7 x64 bit: ntpd -g -N -c ntp.conf ntpd: unable to start as service: The service process could not connect to the service controller. Use -d, -q, -n, -?, --help or --saveconfigquit to run interactive. If I use -q, ntpd process runs but quits as expected and so I cannot that argument. Thanks again. On Thu, Apr 2, 2015 at 10:10 PM, Danny Mayer ma...@ntp.org wrote: On 4/2/2015 7:18 PM, Naren P wrote: Hello All, I was able to build ntp-4.2.6p5 dated 24-DEC-2011 with openssl-1.0.2a using VS2008 and use the same under windows 7 x64 environment without any issues. But, when I build ntp-4.2.8p1 dated 04-Feb-2015 with openssl-1.0.2a using VS2008 or VS2013 x32 or x64 bit and attempt to use the same under windows 7 x64 environment, I see the following error: ntpd -g -N -c ntp.conf ntpd: unable to start as service: The service process could not connect to the service controller. Use -d, -q, -n, -?, --help or --saveconfigquit to run interactive. There do not seem to be any changes in the ntpd arguments for the ones I am attempting to use. Could you please help me understand, what I am missing? The binary is not installed as a service. How did you set up the service? Danny -NVAP ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Trouble Simulating Leap Seconds
I've found a workaround that I believe will be good enough. I let `ntpd` deal with keeping clocks synced, and I'm using the `adjtimex` command-line tool to set the INS flag. If anyone has any insight on how to avoid having to do this, or any warnings about why this might not be a reliable simulation of leap second insertion, please let me know. Thanks, Jim ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt
I ran the command that you mentioned and here is the output. NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_host_siptel NTP:/etc/ntp/ntp.keys # Should it be like this? /ag On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn st...@ntp.org wrote: ast guy writes: Hi, Any help with below issue? Are you using chroot options? Also try 'ls -lL ntpkey_host_siptel'. H -- /ag On Sat, Apr 4, 2015 at 9:06 AM, ast guy ast...@gmail.com wrote: Hi, I have successfully tested Leap second test on one server but when I try to do the same configuration on another ntp server it reports me that the host key file is not found or corrupt. Can some please suggest what configurations I am missing? The error when I run ntpd in debug mode. getnetnum: calling getaddrinfo(127.127.1.0,...) getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1) ntp_syslogmask = 0x (=all) set info_auth_key to 0001 getnetnum: calling getaddrinfo(127.0.0.1,...) getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0) crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes read 2048 addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or corrupt the ntp.conf configurations related to crypto module. 64 # Authentication stuff 65 # 66 #keys /etc/ntp.keys 67 # path for keys file 68 trustedkey 1 69 # define trusted keys 70 requestkey 1 71 72 73 keysdir /etc/ntp/ntp.keys 74 #keys /etc/ntp 75 76 crypto randfile /dev/urandom 77 crypto pw password Listing of ntp.keys folder. :/etc/ntp/ntp.keys # ll total 56 -rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt -rw-r--r-- 1 root root 543 Apr 4 00:21 ntpkey_RSA-MD5cert_siptel.3637066871 -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel - ntpkey_RSA-MD5cert_siptel.3637066871 lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel - ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap - leap-seconds.3629577600.txt ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
[ntp:questions] Trouble Simulating Leap Seconds
Jim, Are you giving ntpd long enough to stabilize? The INS flag won't typically get set until several minutes after ntpd reports synchronization. Try setting your clock to 23:45UTC at the beginning of your test. -chris ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt
ast guy writes: I ran the command that you mentioned and here is the output. NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_host_siptel NTP:/etc/ntp/ntp.keys # Should it be like this? Yes, so the other two most likelye possibilities are that you are running the chroot option and this file is not in the chroot tree, or that the leapseconds file is corrupt. H On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn st...@ntp.org wrote: ast guy writes: Hi, Any help with below issue? Are you using chroot options? Also try 'ls -lL ntpkey_host_siptel'. H -- /ag On Sat, Apr 4, 2015 at 9:06 AM, ast guy ast...@gmail.com wrote: Hi, I have successfully tested Leap second test on one server but when I try to do the same configuration on another ntp server it reports me that the host key file is not found or corrupt. Can some please suggest what configurations I am missing? The error when I run ntpd in debug mode. getnetnum: calling getaddrinfo(127.127.1.0,...) getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1) ntp_syslogmask = 0x (=all) set info_auth_key to 0001 getnetnum: calling getaddrinfo(127.0.0.1,...) getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0) crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes read 2048 addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or corrupt the ntp.conf configurations related to crypto module. 64 # Authentication stuff 65 # 66 #keys /etc/ntp.keys 67 # path for keys file 68 trustedkey 1 69 # define trusted keys 70 requestkey 1 71 72 73 keysdir /etc/ntp/ntp.keys 74 #keys /etc/ntp 75 76 crypto randfile /dev/urandom 77 crypto pw password Listing of ntp.keys folder. :/etc/ntp/ntp.keys # ll total 56 -rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt -rw-r--r-- 1 root root 543 Apr 4 00:21 ntpkey_RSA-MD5cert_siptel.3637066871 -rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel - ntpkey_RSA-MD5cert_siptel.3637066871 lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel - ntpkey_RSAkey_siptel.3637066871 lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap - leap-seconds.3629577600.txt ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions --089e0103de4ef465ec0513229aad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable div dir=3DltrdivdivI ran the command that you mentioned and here is= the output.brbrNTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptelbr-r= w-r--r-- 1 root root 617 Apr=C2=A0 4 00:21 ntpkey_host_siptelbrNTP:/etc/n= tp/ntp.keys #brbr/divShould it be like this?brbr/div/agbrdiv= divdivbr/div/div/div/divdiv class=3Dgmail_extrabrdiv = class=3Dgmail_quoteOn Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn span d= ir=3Dltrlt;a href=3Dmailto:st...@ntp.org; target=3D_blankstenn@ntp= .org/agt;/span wrote:brblockquote class=3Dgmail_quote style=3Dma= rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1exspan class=3D= ast guy writes:br gt; Hi,br gt;=C2=A0 Any help with below issue?br br /spanAre you using chroot options?br br Also try #39;ls -lL ntpkey_host_siptel#39;.br br Hbr --br divdiv class=3Dh5gt; /agbr gt;br gt; On Sat, Apr 4, 2015 at 9:06 AM, ast guy lt;a href=3Dmailto:astguy@g= mail.comast...@gmail.com/agt; wrote:br gt;br gt; gt; Hi,br gt; gt;br gt; gt;=C2=A0 I have successfully tested Leap second test on one server b= ut when I trybr gt; gt; to do the same configuration on another ntp server it reports me = that thebr gt; gt; host key file is not found or corrupt.br gt; gt;br gt; gt; Can some please suggest what configurations I am missing?br gt; gt;br gt; gt; The error when I run ntpd in debug mode.br gt; gt;br gt; gt; getnetnum: calling getaddrinfo(127.127.1.0,...)br gt; gt; getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)br gt; gt; ntp_syslogmask =3D 0x (=3Dall)br gt; gt; set info_auth_key to 0001br gt; gt; getnetnum: calling getaddrinfo(127.0.0.1,...)br gt; gt; getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)br gt; gt; crypto_setup: OpenSSL version 90801f random seed file /dev/urando= m bytesbr gt; gt; read 2048br gt; gt; addto_syslog: crypto_setup: host key file ntpkey_host_siptel not = found orbr gt; gt; corruptbr gt; gt;br gt; gt;br gt; gt; the ntp.conf configurations related to crypto module.br gt; gt;br gt; gt;br gt; gt;br gt; gt;=C2=A0 =C2=A0 =C2=A0 64 # Authentication stuffbr gt; gt;=C2=A0 =C2=A0 =C2=A0