Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[net/chrony] makestep parameter configurable #4461

Open
iqt4 opened this issue Jan 11, 2025 · 1 comment
Open

[net/chrony] makestep parameter configurable #4461

iqt4 opened this issue Jan 11, 2025 · 1 comment
Labels
incomplete Issue template missing info

Comments

@iqt4
Copy link
Contributor

iqt4 commented Jan 11, 2025

Problem situation
We are running OPNsense (HA) in a virtualised environments with chrony as ntp client. The OPNsense clock is getting synchronised after starting the VM (a. the VM internal clock is synched to the host, and b. kept in sync with chrony). So far so good. But during weekly backups of the VMs (initiated by the host), the VM with OPNsense is stopped and resumed for a few seconds and the clock is getting out of sync. The normal slewing process from chrony takes too long to correct the clock again.

With this patch #2350, the makestep 1 3 option was introduced with fixed values of threshold (1) and limit (3). Thus, instead of slewing the clock is stepped but only if there were no more clock updates since chronyd was started than the specified limit.

Suggested solution
I suggest to make threshold and limit parameters configurable in the WebGUI as they depend on the environment (see also
https://chrony-project.org/faq.html#_is_chronyd_allowed_to_step_the_system_clock
For VMs makestep 1 -1 would be an option.

A workaround would be to set up a cron job with chronyc makestep to set the clock manually, however we don't know when the backup ends and there might be other cases where the VM is getting suspended.

Additional context
N.b. We observed a flickering of traffic graph (as described here https://forum.opnsense.org/index.php?topic=41755.msg205207#msg205207) if the clock is out of sync. As soon as we correct the clock the flickering is gone.

@OPNsense-bot
Copy link

Thank you for creating an issue.
Since the ticket doesn't seem to be using one of our templates, we're marking this issue as low priority until further notice.

For more information about the policies for this repository,
please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.

The easiest option to gain traction is to close this ticket and open a new one using one of our templates.

@OPNsense-bot OPNsense-bot added the incomplete Issue template missing info label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete Issue template missing info
Development

No branches or pull requests

2 participants