[chrony-dev] Re: [chrony-users] Changing hostnames for chronyc sources and sourcestats results

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


> On Dec 12, 2019, at 9:28 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> 
> On Wed, Nov 13, 2019 at 07:54:32PM +0000, Kohr, Alexander wrote:
>> I have run into what I consider confusing operation/a bug of chronyc for the server name results it returns.  When I run chronyc sourcestats or chronyc sources the "Name/IP address" field doesn't always list the hostname/s that are entered into my chrony.conf file.
> 
> The latest code in git now has a -N option to print the original
> names. For example, the output of the sources command for a pool
> specified as "pool pool.ntp.org" is:
> 
> MS Name/IP address         Stratum Poll Reach LastRx Last sample               
> ===============================================================================
> ^? pool.ntp.org                  2   6     3    16  -2854us[-2854us] +/-   82ms
> ^? pool.ntp.org                  2   6     3    16  +1349us[+1349us] +/-   94ms
> ^? pool.ntp.org                  2   6     3    16  +4623us[+4623us] +/-   88ms
> ^? pool.ntp.org                  2   6     3    16  -1952us[-1952us] +/-   70ms

I gave "master" a try, this is Fantastic! No more 10 second hangs when pool reverse DNS is misconfigured, while still displaying human readable info.

Additionally, time.cloudflare.com will show "time.cloudflare.com" using -N instead of "162.159.200.123".


I ran across a couple little issues while testing.

1) startup errors for IPv6-related "Could not open ..." when built with --disable-ipv6 on a IPv6 capable system (long story).

# chronyd
--
Dec 12 15:35:48 pbx4 daemon.info chronyd[3519]: chronyd version DEVELOPMENT starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -SECHASH -IPV6 -DEBUG)
Dec 12 15:35:48 pbx4 daemon.err chronyd[3519]: Could not open NTP socket on [0000:0000:0000:0000:0000:0000:0000:0000]:123
Dec 12 15:35:48 pbx4 daemon.info chronyd[3519]: Frequency -17.710 +/- 0.145 ppm read from /var/lib/ntp/chrony.drift
Dec 12 15:35:53 pbx4 daemon.info chronyd[3519]: Selected source 10.10.50.4
--
and
# chronyd -q -t 8 'server time.cloudflare.com iburst'
2019-12-12T21:56:28Z chronyd version DEVELOPMENT starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -SECHASH -IPV6 -DEBUG)
2019-12-12T21:56:28Z Could not open command socket on [0000:0000:0000:0000:0000:0000:0000:0001]:323
2019-12-12T21:56:28Z Initial frequency -17.480 ppm
2019-12-12T21:56:33Z System clock wrong by 0.001743 seconds (step)
2019-12-12T21:56:33Z chronyd exiting


2) When building (cross-compiling via Buildroot) the install fails with "asciidoctor" not found. (BTW, asciidoctor is not installed)
I'm not sure how this is different from chrony 3.5, but 3.5 builds fine.
--
/usr/bin/make -C doc install
make[2]: Entering directory `/home/dev/astlinux/trunk/output/build/chrony-master/doc'
asciidoctor  -b manpage -o chrony.conf.man.in chrony.conf.adoc
make[2]: asciidoctor: Command not found
make[2]: *** [chrony.conf.man.in] Error 127
make[2]: Leaving directory `/home/dev/astlinux/trunk/output/build/chrony-master/doc'
make[1]: *** [install] Error 2
--
In our case Buildroot removes all the docs anyway, so a --disable-docs build option would be useful if you want.


3) Friendly reminder, additional chronyc tab completion entries ...
* add "sourcename" to base_commands[]
* add "pool" to add_options[]


Lonnie






--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/