From: Jonas Theisen <j.theisen@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH common/manager/widget-toolkit 00/16] partially fix #3809: configure and monitor NTP in the node time panel
Date: Thu, 26 Nov 2026 14:39:57 +0100 [thread overview]
Message-ID: <20261126134128.316681-1-j.theisen@proxmox.com> (raw)
This series allows configuring the NTP servers of a node via the API
and GUI, instead of having to edit the configuration of the time
synchronization service on the shell. As correct time is important for
clusters and Ceph, it also adds ways to check that synchronization
works after a change:
- show whether the system clock is synchronized
- open the log of the NTP service from the time panel
- synchronize the clock immediately ("Sync now")
- list the sources currently in use, including pool members, with
their state, reachability and offset
Supported are chrony, the default on new installations, and
systemd-timesyncd. Custom sources are written to drop-ins, and once
all are removed, the service uses its default sources again. For
chrony, the default pool lines in chrony.conf are commented out with
a marker while custom sources are set, as a drop-in cannot disable
them, and restored afterwards. Pools are only supported with chrony,
as systemd-timesyncd only uses single servers.
On cluster nodes, an immediate synchronization can make the clock
jump and disrupt services such as Ceph, so the API requires the new
'force' parameter there, and the GUI asks for an explicit
acknowledgement before passing it.
The toolkit components are shared with other products, so all new
rows and buttons are only shown if the time API reports the respective
support. The PUT parameters are optional, including the time zone, so
existing API callers are not affected.
Dependencies:
- proxmox-widget-toolkit and pve-manager need a bumped
libpve-common-perl for the PVE::Systemd helpers
- the pve-manager GUI change needs a bumped proxmox-widget-toolkit
for the 'useJournalLog' option of the time view
pve-common:
Jonas Theisen (4):
systemd: add helpers to get and set NTP servers
systemd: add helper to query clock synchronization status
systemd: add helpers to synchronize the clock immediately
systemd: add helper to list the current NTP sources
src/PVE/Systemd.pm | 388 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 388 insertions(+)
proxmox-widget-toolkit:
Jonas Theisen (7):
node: time: do not open the editor for the server time row
partially fix #3809: node: time: show and edit NTP servers if
supported
node: time: show clock synchronization status
window: add reusable service log window
node: time: add button to open the NTP service log
node: time: add button to synchronize the clock immediately
node: time: add window listing the current NTP sources
src/Makefile | 2 +
src/node/ServiceView.js | 26 +---
src/node/TimeEdit.js | 285 ++++++++++++++++++++++++++++++++++++---
src/node/TimeView.js | 242 +++++++++++++++++++++++++++++++--
src/window/NTPSources.js | 155 +++++++++++++++++++++
src/window/ServiceLog.js | 45 +++++++
6 files changed, 704 insertions(+), 51 deletions(-)
create mode 100644 src/window/NTPSources.js
create mode 100644 src/window/ServiceLog.js
pve-manager:
Jonas Theisen (5):
partially fix #3809: api: nodes: time: allow configuring NTP servers
api: nodes: time: report clock synchronization status
ui: node: time: use journal for the NTP service log
api: nodes: time: add endpoint to synchronize the clock immediately
api: nodes: time: add endpoint to list the current NTP sources
PVE/API2/Nodes.pm | 256 +++++++++++++++++++++++++++++++++++-
www/manager6/node/Config.js | 1 +
2 files changed, 253 insertions(+), 4 deletions(-)
Summary over all repositories:
9 files changed, 1345 insertions(+), 55 deletions(-)
--
Generated by murpp 0.12.1
next reply other threads:[~2026-11-26 13:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 13:39 Jonas Theisen [this message]
2026-11-26 13:39 ` [PATCH common 01/16] systemd: add helpers to get and set NTP servers Jonas Theisen
2026-11-26 13:39 ` [PATCH common 02/16] systemd: add helper to query clock synchronization status Jonas Theisen
2026-11-26 13:40 ` [PATCH common 03/16] systemd: add helpers to synchronize the clock immediately Jonas Theisen
2026-11-26 13:40 ` [PATCH common 04/16] systemd: add helper to list the current NTP sources Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 05/16] node: time: do not open the editor for the server time row Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 06/16] partially fix #3809: node: time: show and edit NTP servers if supported Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 07/16] node: time: show clock synchronization status Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 08/16] window: add reusable service log window Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 09/16] node: time: add button to open the NTP service log Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 10/16] node: time: add button to synchronize the clock immediately Jonas Theisen
2026-11-26 13:40 ` [PATCH widget-toolkit 11/16] node: time: add window listing the current NTP sources Jonas Theisen
2026-11-26 13:40 ` [PATCH manager 12/16] partially fix #3809: api: nodes: time: allow configuring NTP servers Jonas Theisen
2026-11-26 13:40 ` [PATCH manager 13/16] api: nodes: time: report clock synchronization status Jonas Theisen
2026-11-26 13:40 ` [PATCH manager 14/16] ui: node: time: use journal for the NTP service log Jonas Theisen
2026-11-26 13:40 ` [PATCH manager 15/16] api: nodes: time: add endpoint to synchronize the clock immediately Jonas Theisen
2026-11-26 13:40 ` [PATCH manager 16/16] api: nodes: time: add endpoint to list the current NTP sources Jonas Theisen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126134128.316681-1-j.theisen@proxmox.com \
--to=j.theisen@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox