[chrony-users] 'reload sources' fails when maxpoll is decreased |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] 'reload sources' fails when maxpoll is decreased
- From: Thomas Lange <thomas@xxxxxxxxxxxx>
- Date: Mon, 11 Sep 2023 11:39:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corelatus.se; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; t=1694425150; x=1694511550; bh=vu YFf5bs3ifM4K2DilBBE03IsIRp/8KzsXvffNC0LwE=; b=brgfIN2lZAFgI1swNI hyFLzw9Uh9Zce6zZBRkB/2YiuKdhH3Z7nPfUYLxZlHV8GEps0vbZWyWfNgbBV64U uva96wReMut/1/lYfpBMWvjpHimMpJiozXHdeA2KfIrqyzMByiFrbrpxEN3AjOTN cKWtC7iG42IaTz1Lj4J7d7T7ZpLtri/H2G/RTJo9DEfZv52cP9IuY7X6L2GP1rz7 s08n4lpWaIDX20Dt3l0XNxVuUMAdxgX2Tg5PE/0Pwv4QGRXbrqG6a9UURF6ut9qB qpbZFVO11sWl2P9F5D00/eNh7hhO7y0vbM/QgUDfGEDD0xY169GVI7tv1bgY810C eYmQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1694425150; x=1694511550; bh=vuYFf5bs3ifM4 K2DilBBE03IsIRp/8KzsXvffNC0LwE=; b=2q6yPgA1fffimkBZ2djU7WNBFTaUS LgGwDIBdyZlfBu9o1nC+i4/ANXyeL9KgX5HHayKRGEPnfaaLXF1nUv8Cd5hsDUYi Uj8igjbHG6TNUGQkJSRmhQ/iKOIh8aqicKWXYBRb+0nT/2xfx2K6Dqz5J/VEXJnh WXoAgJoknmXZrq678JVJ0VPLPRZaTPJcl5JN4SZtT7Nt4TiYQ/sT7eu4M3NnURFR 0DtpQGkXcUp+VQTPFpLVvC1SE/RXQ07W6O+C9NTZG4RlAnm88344Uap8Wf9kiIev zgIRuR8XPX0ZP6xsEM7XYFouEzrIBGMOBYCZQ/i5vsUFUJ3fPDFqjGteA==
- Feedback-id: ia69946ac:Fastmail
Hi,
'reload sources' fails if the maxpoll value is decreased for an existing source.
Running 'reload sources' a second time seems to readd the source.
Logs and comments below.
/Thomas
-------
Configured with --sysconfdir=/tmp --disable-ipv6 --disable-readline --without-editline --without-nettle --without-nss --without-tomcrypt --disable-nts --without-gnutls --disable-phc --disable-rtc --disable-asyncdns --disable-forcednsretry
--------
# cat /tmp/chrony.conf
driftfile /var/lib/chrony/drift
makestep 0.1 -1
rtcsync
acquisitionport 123
log statistics tracking measurements
logdir /var/log/chrony
sourcedir /tmp/chrony
hwtimestamp * minpoll 4
-------
# ./chronyd -d
2023-09-11T09:07:15Z chronyd version 4.4 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND -ASYNCDNS -NTS -SECHASH -IPV6 +DEBUG)
2023-09-11T09:07:15Z Enabled HW timestamping on eth0
2023-09-11T09:07:15Z Enabled HW timestamping on eth1
2023-09-11T09:07:15Z Running with root privileges
2023-09-11T09:07:15Z Frequency 1.084 +/- 0.377 ppm read from /var/lib/chrony/drift
2023-09-11T09:07:15Z Added source 172.16.1.2
2023-09-11T09:07:21Z Selected source 172.16.1.2
<maxpoll reduced, 'reload sources' called>
2023-09-11T09:09:11Z Could not add source 172.16.1.2
2023-09-11T09:09:11Z Removed source 172.16.1.2
2023-09-11T09:09:11Z Can't synchronise: no selectable sources
<'reload sources' rerun>
2023-09-11T09:11:20Z Added source 172.16.1.2
2023-09-11T09:11:26Z Selected source 172.16.1.2
-------
# pwd
/tmp
# cat chrony/chrony.sources
server 172.16.1.2 burst iburst minpoll 6 maxpoll 10 xleave
# /tmp/chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 172.16.1.2 2 6 37 52 +7338ns[+6266ns] +/- 14ms
<edit, reduce maxpoll>
# cat chrony/chrony.sources
server 172.16.1.2 burst iburst minpoll 6 maxpoll 9 xleave
# /tmp/chronyc reload sources
200 OK
# /tmp/chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
# /tmp/chronyc reload sources
200 OK
# /tmp/chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 172.16.1.2 2 6 17 3 +6194ns[ -103us] +/- 14ms
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.