feat(time-sync): servers and zone through OpenMediaVault's own settings
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 17s
driver / types (pull_request) Successful in 1m15s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / lowest (pull_request) Successful in 30s
driver / build (pull_request) Successful in 34s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m58s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 17s
driver / types (pull_request) Successful in 1m15s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / lowest (pull_request) Successful in 30s
driver / build (pull_request) Successful in 34s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m58s
driver / publish (pull_request) Skipped
napalm-linux now brings napalm-device-types' PosixTimeSyncMixin (4.35.0). Its write -- a chrony drop-in with every other source commented out, timedatectl set-timezone -- is the wrong way in on OpenMediaVault: OMV generates chrony.conf and the zone from conf.system.time through Salt and would take the change back on its next deploy, the web UI would keep showing its own servers, and netOrk's automatic alignment would rewrite on every poll (NetOrk/netork#2370). OmvTimeSyncMixin reads the servers and the zone from System.getTimeSettings (no servers while NTP is off) and keeps the host's reading for whether the clock is synchronised and by which client. Both values are written through System.setTimeSettings, NTP switched on for servers, and only the modules that change made dirty are applied, plus chrony and timezone if already dirty, as set_hostname does. A value OMV already has is not written again, so a second write changes nothing. The floor rises to napalm-device-types 4.35.0.
This commit is contained in:
1 parent
aa362ee905
commit
70ad7883bc
6 files changed
+487
-4
No files matched your search
+12
-1
@@ -7,6 +7,17 @@ All notable changes to this driver. The format follows
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Time sync through OpenMediaVault's own settings (NetOrk/netork#2370). napalm-linux brings
|
||||
napalm-device-types' `PosixTimeSyncMixin` (4.35.0), whose write -- a chrony drop-in with
|
||||
the other sources commented out, `timedatectl set-timezone` -- OMV would take back the
|
||||
next time it deploys `conf.system.time`. `get_time_sync()` reads the servers and the zone
|
||||
of the web UI (`System.getTimeSettings`; no servers while NTP is switched off) and the
|
||||
host's own word on whether the clock is synchronised and by which client.
|
||||
`configure_time_sync()` writes both through `System.setTimeSettings` (switching NTP on
|
||||
for servers) and deploys only the modules that made dirty, plus `chrony` and `timezone`
|
||||
if they already were (`Config.applyChanges`); changes pending in the web UI for other
|
||||
modules stay pending. A value OMV already has is not written again, and nothing is
|
||||
written to the host's files.
|
||||
- Personal accounts on OpenMediaVault follow what the person changes
|
||||
(NetOrk/netork#2013): `add_local_account(..., replaces=[...])` takes the old keys out of
|
||||
OMV's own key store (through `UserMgmt.setUser`, applying only what that made dirty) and
|
||||
@@ -20,7 +31,7 @@ All notable changes to this driver. The format follows
|
||||
sudo. The account stays open and in `_ssh`.
|
||||
|
||||
### Changed
|
||||
- Needs napalm-device-types 4.29.0 and napalm-linux 0.17.0.
|
||||
- Needs napalm-device-types 4.35.0 and napalm-linux 0.17.0.
|
||||
|
||||
### Added
|
||||
- Scheduled jobs (NetOrk/netork#1933, #18), on top of napalm-linux's reading and writers.
|
||||
|
||||
Reference in new issue
Block a user