Open FroggyFlox opened 3 years ago
@FroggyFlox Nice find. And yes I think a move to chronyd is on the cards, plus NTP is now pretty dated actually.
Also see: https://github.com/rockstor/rockstor-core/issues/2098 "[openSUSE] add chronyc tracking output within Web-UI" #2098
for another reason to settle on chronyd/chronyc: more fancy capabilities; from that issue we have: "Chronyd/Chronyc are more modern variants of ntpd and are the default since openSUSE Leap 15."
Not sure if we should completely drop NTP and it's associated config though. But given our stance on simplicity it may well be the way to go to avoid having, as you say, un-required (for almost all users) redundancy.
Plus we establish a config in our ISO for chronyd: https://github.com/rockstor/rockstor-installer/blob/master/config.sh#L122-L124 but we had some early issues with it that I believe are not sorted via an update.
If we were to switch to chronyd
/chronyc
exclusively, would we still expose a server selection option for it? Or just use the upstream defaults and remove "time server configuration" as a service from the WebUI?
In both Leap and TW the /etc/chrony.conf
has the reference to the "include" under /etc/chrony.d active, and there both contain the pool.conf
file that points to the
pool 2.opensuse.pool.ntp.org iburst
So any config we would offer or create would be applicable for both LEAP and TW flavors. I assume, we can then use a similar approach like we're planning for SSH (albeit distro independent at this time) to either add new directives in a separate file, and/or comment out what's already there ...
In general, I would be in favor for the simple, chronyd
only approach, without WebUI exposure since upstream already provides basic, working setup that probably covers a large majority of use cases. Users that do need special circumstances should know where to look (or we would point it out in the documentation). Downside of that of course is, that special chrony
setups would not be part of a config backup ...
I too like going to the simpler approach. However, to the best of my knowledge, the NTP configuration option we offer now is critical to other services such as AD/LDAP or anything where 2 servers need to communicate really... they need to be on the same time server so our users may want to be able to configure this easily as we currently do.
ok, that could then mean to at least expose (or document) the time server config that comes standard in the include file ...
During my preparation of #2235, I noticed a "redundancy" between
ntpd
andchronyd
on the system when the user toggles the NTP service ON. Briefly,chronyd
is active by default, and configuring and turning the NTP service ON leads to the deactivation ofchronyd
and activation ofntpd
. Turning the NTP service OFF, leads to the deactivation ofntpd
and activation ofchronyd
.Everything behaves as intended, I believe, so no pressing matter here. I do wonder, however, whether or not we should consider switching fully to chrony as a replacement for NTP (chrony is the default in openSUSE afterall).
Here are some details below:
Fresh install (Rockstor 4.0.5 ISO)
chronyd
is activated by default:Configure & Start NTP service
journald
logs show the deactivation ofchronyd
and activation ofntpd
:Stop NTP service
journald
shows the deactivation ofntpd
and activation ofchronyd
: