Azure / Azure/WALinuxAgent

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

Open
#3,038 3 comments 0 reactions 1 assignee Claimed by @anhvoms View on GitHub
provisioning
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.