Re: [chrony-users] Problem when removing all sources

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


On 2023-11-23 10:27, Thomas Lange wrote:
On 2023-11-21 12:51, Miroslav Lichvar wrote:
On Mon, Nov 20, 2023 at 04:17:47PM +0100, Miroslav Lichvar wrote:
On Mon, Nov 20, 2023 at 11:14:00AM +0100, Thomas Lange wrote:
<chronyc reload sources>

2023-11-19T17:43:20Z Removed source 103.242.68.69
2023-11-19T17:43:20Z Removed source 162.159.200.123
2023-11-19T17:43:20Z Removed source 194.58.202.148
2023-11-19T17:43:20Z Selected source 194.58.206.20
2023-11-19T17:43:20Z Removed source 194.58.206.20
2023-11-19T17:43:20Z Removed source 217.75.106.216
2023-11-19T17:43:20Z Removed source 91.209.0.17

<Missing "Can't synchronise: no selectable sources" >

It depends on the order of removed sources and the reselection that
can happen.

The message is logged only when a source is already selected and
newly executed source selection doesn't find a selectable source.
In your example the last selected source is 194.58.206.20. It is
removed, i.e. nothing is selected, and with the two remaining sources
there is no successful selection.

The issue actually was in the removal of the source. If it was
reselected due to becoming offline, the log message was logged. If it
was kept selected even as offline (due to other sources not being
better), it would not be logged.

The latest development code now has a fix to make it consistent.
TL>
TL> Thanks, I like consistency. I reran my tests using 4.5-pre1 and my test case
TL> seems to work now.
I may have jumped the gun a bit. When retesting the original test case
(where all sources are dropped) using 4.5-pre1 once again, I don't get the
"Can't synchronise: no selectable sources" message.
I've retried many times.

AFAIK nothing has changed in my setup, so I can't explain why it worked
this morning but not now.

/Thomas

--
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.


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