[Bug 2077779] Re: PTP device symlink missing after running udevadm trigger command

Chengen Du 2077779 at bugs.launchpad.net
Tue Dec 17 01:05:30 UTC 2024


The -proposed version in Jammy has been thoroughly tested and confirmed
to function without any issues.

[Jammy]
root at ptp-jammy:~# apt policy udev
udev:
  Installed: 249.11-0ubuntu3.14
  Candidate: 249.11-0ubuntu3.14
  Version table:
 *** 249.11-0ubuntu3.14 100
        100 /var/lib/dpkg/status
     249.11-0ubuntu3.13 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
     249.11-0ubuntu3.12 500
        500 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     249.11-0ubuntu3.7 500
        500 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     249.11-0ubuntu3 500
        500 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root at ptp-jammy:~# ll /dev/ptp*
crw------- 1 root root 246, 0 Dec 17 00:54 /dev/ptp0
crw------- 1 root root 246, 1 Dec 17 00:54 /dev/ptp1
lrwxrwxrwx 1 root root      4 Dec 17 00:54 /dev/ptp_hyperv -> ptp0
root at ptp-jammy:~# udevadm trigger
root at ptp-jammy:~# ll /dev/ptp*
crw------- 1 root root 246, 0 Dec 17 00:56 /dev/ptp0
crw------- 1 root root 246, 1 Dec 17 00:56 /dev/ptp1
lrwxrwxrwx 1 root root      4 Dec 17 00:56 /dev/ptp_hyperv -> ptp0

** Tags removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2077779

Title:
  PTP device symlink missing after running udevadm trigger command

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Focal:
  Triaged
Status in systemd source package in Jammy:
  Fix Committed
Status in systemd source package in Noble:
  Fix Committed
Status in systemd source package in Oracular:
  Fix Released

Bug description:
  [Impact]
  PTP device symlink creation rules are executed only when the udev action is 'add'.
  If the rules are reloaded and the udevadm trigger command is run to reapply changes, the symlink may be deleted.
  This can prevent the chronyd service from restarting properly.

  [Fix]
  Upstream has a patch to fix this issue.

  commit 6bd12be3fa7761f190e17efdbdbff4440da7528b
  Author:     Chengen Du <chengen.du at canonical.com>
  CommitDate: Thu Aug 15 15:38:46 2024 +0900

      udev: Handle PTP device symlink properly on udev action 'change'

      PTP device symlink creation rules are currently executed only when the
      udev action is 'add'. If a user reloads the rules and runs the udevadm
      trigger command to reapply changes, the symlink may be deleted, which
      can prevent the chronyd service from restarting properly.

      Signed-off-by: Chengen Du <chengen.du at canonical.com>

  [Test Plan]
  1. Create a VM with a PTP device.
  2. Verify that the PTP device symlink is present:
  > ll /dev/ptp*
  crw------- 1 root root 246, 0 Oct 14 02:26 /dev/ptp0
  lrwxrwxrwx 1 root root      4 Oct 14 02:26 /dev/ptp_hyperv -> ptp0
  2. Run the `udevadm trigger` command.
  3. Verify again that the PTP device symlink is still present.

  [Where problems could occur]
  The patch allows PTP device symlink creation rules to be executed when the udev action is 'change'.
  This update primarily affects services that rely on the PTP device symlink, such as chronyd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2077779/+subscriptions




More information about the foundations-bugs mailing list