Roger Oberholtzer
2011-07-18 07:00:28 UTC
On Sat, 2011-07-16 at 02:43 +0200, Carlos E. R. wrote:
> When ntp is running, it will adjust the clock very slowly, so slow that you
> will not notice it is changing. If there is one minute error it may take
> hours to correct.
>
> However, if you restart the daemon, using the script, the first step is
> jump-set the clock, even by hours if needed, and after that it will run the
> daemon to keep it correct.
So, there is a flaw in the ntp start logic when the network interface on
which it's server lives only becomes available some time after ntp
starts. It seems never to re-check that a server that was initially not
available later becomes available.
IMO, the problem is ntp, not the system start stuff. Since I have
effectively removed my network from the system startup environment, I
would find it hard to see that environment being able to solve ordering
or dependency issues. How could a system service know that some user
will, via their own non-system configuration, eventually, maybe start a
network where an interesting server lives?
Hence chrony. It does not give up so easily as ntp seems to do. Since it
has as a core assumption that time servers may not always be present (to
an apparently stronger degree than does ntp), it will try again.
I am fully aware that ntp is well tested and understood, while chrony is
less prevalent. But I think (don't know yet) chrony uses much logic from
ntp after it has located a server.
> Ntp does check, but it can not jump-set the clock once it is running. As
> documented.
'As documented' is not always the same thing as 'As I need' :(
> If the users move around time zones, and _they_ set the clock, weird things
> will happen. For this to work, bios must keep UTC time. The linux
> timesetting logic is not designed for people on the move. The original
> design is for stable machines, server type.
The box does keep UTC. It is possible that they change the timezone as
they move around to different countries. I suspect it depends on how
long they will be in a country. I will have to investigate user
activity.
> > Nope! The init scripts CANNOT make my wireless connection available to
> > ntp. They have no connection to networks brought up outside the
> > traditional ifup method. Like KDE/GNOME Network Manager-type
> > initialization.
>
> Then you have to make sure that NTP is restarted later, no matter what.
So I would have to make ntp start SUID or something so it would start
when a user does something. Not my preferred solution.
> >> Ah! Perhaps 'systemd' will be able to cure that :-)
> >
> > Nope. See my comment above.
>
> It might, if it can restart services on events (network goes up).
That sounds interesting. Of course, this will not help my installed
systems. Our current 'official' platform is openSUSE 11.2. We are always
a little behind in our use of releases...
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
***@ramboll.se
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
> When ntp is running, it will adjust the clock very slowly, so slow that you
> will not notice it is changing. If there is one minute error it may take
> hours to correct.
>
> However, if you restart the daemon, using the script, the first step is
> jump-set the clock, even by hours if needed, and after that it will run the
> daemon to keep it correct.
So, there is a flaw in the ntp start logic when the network interface on
which it's server lives only becomes available some time after ntp
starts. It seems never to re-check that a server that was initially not
available later becomes available.
IMO, the problem is ntp, not the system start stuff. Since I have
effectively removed my network from the system startup environment, I
would find it hard to see that environment being able to solve ordering
or dependency issues. How could a system service know that some user
will, via their own non-system configuration, eventually, maybe start a
network where an interesting server lives?
Hence chrony. It does not give up so easily as ntp seems to do. Since it
has as a core assumption that time servers may not always be present (to
an apparently stronger degree than does ntp), it will try again.
I am fully aware that ntp is well tested and understood, while chrony is
less prevalent. But I think (don't know yet) chrony uses much logic from
ntp after it has located a server.
> Ntp does check, but it can not jump-set the clock once it is running. As
> documented.
'As documented' is not always the same thing as 'As I need' :(
> If the users move around time zones, and _they_ set the clock, weird things
> will happen. For this to work, bios must keep UTC time. The linux
> timesetting logic is not designed for people on the move. The original
> design is for stable machines, server type.
The box does keep UTC. It is possible that they change the timezone as
they move around to different countries. I suspect it depends on how
long they will be in a country. I will have to investigate user
activity.
> > Nope! The init scripts CANNOT make my wireless connection available to
> > ntp. They have no connection to networks brought up outside the
> > traditional ifup method. Like KDE/GNOME Network Manager-type
> > initialization.
>
> Then you have to make sure that NTP is restarted later, no matter what.
So I would have to make ntp start SUID or something so it would start
when a user does something. Not my preferred solution.
> >> Ah! Perhaps 'systemd' will be able to cure that :-)
> >
> > Nope. See my comment above.
>
> It might, if it can restart services on events (network goes up).
That sounds interesting. Of course, this will not help my installed
systems. Our current 'official' platform is openSUSE 11.2. We are always
a little behind in our use of releases...
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
***@ramboll.se
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org