chrony: make default pools optional#3770
Conversation
|
A repository maintainer needs to approve these workflow run(s). To approve, maintainers can either: • Submit an approval review on this pull request, OR • Submit a review comment starting with Then re-run the failed job(s) via the Checks tab above. Reviews must be on the specific commit SHA of the workflow run to be considered. |
4 similar comments
|
A repository maintainer needs to approve these workflow run(s). To approve, maintainers can either: • Submit an approval review on this pull request, OR • Submit a review comment starting with Then re-run the failed job(s) via the Checks tab above. Reviews must be on the specific commit SHA of the workflow run to be considered. |
|
A repository maintainer needs to approve these workflow run(s). To approve, maintainers can either: • Submit an approval review on this pull request, OR • Submit a review comment starting with Then re-run the failed job(s) via the Checks tab above. Reviews must be on the specific commit SHA of the workflow run to be considered. |
|
A repository maintainer needs to approve these workflow run(s). To approve, maintainers can either: • Submit an approval review on this pull request, OR • Submit a review comment starting with Then re-run the failed job(s) via the Checks tab above. Reviews must be on the specific commit SHA of the workflow run to be considered. |
|
A repository maintainer needs to approve these workflow run(s). To approve, maintainers can either: • Submit an approval review on this pull request, OR • Submit a review comment starting with Then re-run the failed job(s) via the Checks tab above. Reviews must be on the specific commit SHA of the workflow run to be considered. |
Move the baked-in `resinio.pool.ntp.org` entries out of `chrony.conf` and into `balena-ntp-config` so they can be suppressed by setting `ntpServers` to "null". Custom config entries keep using `added_config.sources` while defaults now live in `default.sources`, matching the DHCP split. The README now explains the unset/"null"/custom behaviors. Fixes: balena-os#3680 Change-type: patch Signed-off-by: Shaun Cooley <365611+shaunco@users.noreply.github.com>
|
Thanks @ycardaillac! |
|
hey @Timple thanks for your comment. Allowing applications to directly access hostOS configuration is not how the current product is designed to work. HostOS configuration is performed either via It's a conscious design decision that trades off reproducibility, maintenance and security versus flexibility. It also allows to maintain a good automated OS tests coverage without the exponential increase of configuration changes. #1526 is a good example. Providing access to The approach we would take instead is to provide the needed hostOS configuration via the supervisor, properly test the feature works, add an automated test to make sure it does not break, and then release it. So it becomes a known to work, production ready supported feature. Why do you say this change will not address #3680 and #3005?
|
|
Thank you for your comment. I was not saying it was not solving those. In a new project we have at the moment it's really undesired to do a makestep. Yet that is the default config and cannot be undone. to the configuration. That, in combination with the GPS source (of a different project) leads me to the suggestion: Please give full control of the chrony configuration. Of course the implementation is debatable. But you are shifting the line bit-by-bit at the moment:
This is a bit whack-a-mole with approximately a two-year interval. Perhaps we can go directly to |
|
hi @Timple would stopping the hostOS chronyd via dbus and running the NTP server in the application won't work? That gives a production tested time sync until application start, and then the application can take over with a custom chrony configuration. |
|
Yes that works. That is exactly how we do it now: But it feels kind of hacky and a lot of work for just modifying a config file. And we needed hacks like these to get it robust: nobleo/balena-chrony#7 and nobleo/balena-chrony#9 |
Summary
resinio.pool.ntp.orgpools fromchrony.confntpServersis"null", keeping defaults and custom lists in separate chrony source filesntpServersbehaviours inREADME.mdFixes #3680
Change-type: patch
Contributor checklist
Change-typepresent on at least one commitSigned-off-byis presentReviewer Guidelines