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
chrony: use /dev/ptp_hyperv instead of /dev/ptp0 #1355
Conversation
|
(Didn't test this; I need to dust off my Azure creds and CLI. If someone has warm access to it, would appreciate a check!) |
For general interest, that udev rule is part of systemd: So indeed we could probably hack this by backporting to our config overlay, but we also need to be careful here because "rhcos" == "rhel8" right now but not necessarily in the future... |
overlay.d/20platform-chrony/usr/lib/systemd/system-generators/coreos-platform-chrony
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
The udev rules is already being backported to RHEL8 (8.6 likely), see https://bugzilla.redhat.com/show_bug.cgi?id=1991834. |
|
Booted in azure on a Should I test on other instance types? Which ones? |
From the last paragraph in: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/time-sync#check-for-ptp-clock-source > In Linux VMs with Accelerated Networking enabled, you may see multiple > PTP devices listed because the Mellanox mlx5 driver also creates a > /dev/ptp device. Because the initialization order can be different > each time Linux boots, the PTP device corresponding to the Azure host > might be /dev/ptp0 or it might be /dev/ptp1, which makes it difficult > to configure chronyd with the correct clock source. To solve this > problem, the most recent Linux images have a udev rule that creates > the symlink /dev/ptp_hyperv to whichever /dev/ptp entry corresponds to > the Azure host. Chrony should be configured to use this symlink > instead of /dev/ptp0 or /dev/ptp1. See: coreos/fedora-coreos-tracker#1031
78fcb15
to
9090bf1
Compare
This will create the `/dev/ptp_hyperv` symlink. We'll need this once our chrony generator uses it: coreos/fedora-coreos-config#1355
This will create the `/dev/ptp_hyperv` symlink. We'll need this once our chrony generator uses it: coreos/fedora-coreos-config#1355
This will create the `/dev/ptp_hyperv` symlink. We'll need this once our chrony generator uses it: coreos/fedora-coreos-config#1355
From the last paragraph in:
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/time-sync#check-for-ptp-clock-source
See: coreos/fedora-coreos-tracker#1031
As mentioned there, we might have to backport udev rules to RHCOS as
well to make sure that symlink gets created there too.