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

[RHEL8] chrony service fails to start at boot on Azure VMs if udev has not finished creating /dev/ptp_hyperv symbolic link #3038

Open
yuxisun1217 opened this issue Feb 6, 2024 · 3 comments
Assignees

Comments

@yuxisun1217
Copy link

yuxisun1217 commented Feb 6, 2024

Description of problem:
On Azure VMs with systemd systemd-239-53.el8 or later(BZ#1991834) chronyd will fail to start at system boot if udev has not completed the creation of the /dev/ptp_hyperv symbolic link.
We want to add this solution(udev rule and chrony conf file) into the WALinuxAgent-udev package:

$ cat /etc/udev/rules.d/99-ptp.rules
SUBSYSTEM=="ptp", TAG+="systemd"
$ cat /etc/systemd/system/chronyd.service.d/override.conf
[Unit]
BindsTo=dev-ptp_hyperv.device
After=dev-ptp_hyperv.device

Version-Release number of selected component (if applicable):

  • RHEL-8.6+
  • WALinuxAgent-udev-2.7.0.6-8.el8_8.noarch

How reproducible:
Sporadic occurrences.

Steps to Reproduce

  1. Deploy Azure VM at RHEL 8.6 or later for systemd-239-53.el8 or greater.
  2. Configure refclock in /etc/chrony.conf to reference /dev/
    refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0
  3. Reboot system.
@narrieta
Copy link
Member

narrieta commented Feb 7, 2024

@anhvoms could you take a look?

@jepio
Copy link
Member

jepio commented Apr 5, 2024

@yuxisun1217:
the udev rule is part of systemd upstream https://github.com/systemd/systemd/pull/28973/files since v255. Maybe backport that change?

The chronyd.service.d/override.conf can only safely be applied when chrony.conf contains the entry you specified
(refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0). Which package installs your chrony.conf?

@yuxisun1217
Copy link
Author

Hi @jepio ,

Sorry I just saw your message. I think this chrony.conf comes from the Microsoft document: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/time-sync#chrony

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants