Skip to content

Add Virtual CLOCK_REALTIME (VRT) support for Kind/netdevsim - #1

Merged
edcdavid merged 3 commits into
mainfrom
vrt
Aug 8, 2026
Merged

edcdavid merged 3 commits into
mainfrom
vrt

Conversation

@edcdavid

@edcdavid edcdavid commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add VRT detection and UI badges (Processes / Node / clock diagram) when /var/run/vrt/device is present in the linuxptp-daemon pod.
  • Treat VRT-wrapped phc2sys.real (/proc/comm) as running phc2sys for process status and kill (wrapper keeps argv0/process=phc2sys for metrics/logs).
  • Document VRT behavior in the user guide and glossary; clarify OS-clock sync inference from phc2sysOpts/phc2sysConf.

Related

Test plan

  • On Kind+VRT BC node (kind-netdevsim-worker): Processes page shows phc2sys Running and VRT active → /dev/ptpN
  • Metrics still show openshift_ptp_process_status{process="phc2sys"}=1 / CLOCK_REALTIME
  • Kill phc2sys from the UI succeeds against comm=phc2sys.real
  • Baremetal / non-VRT node: no VRT badge; normal comm=phc2sys still works

- Probe /var/run/vrt/device in linuxptp-daemon pods to detect the active VRT stand-in and simulated netdevsim/fakepci nodes.
- Display VRT badges in the node header, clock diagram, process graph, and process status panels.
- Improve phc2sys/CLOCK_REALTIME detection to handle bare `-a -r` options via new profile helpers.
- Add VRT glossary entry and update README/USER_GUIDE documentation.
- Add a VS Code workspace file for related PTP repositories.
The VRT wrapper execs /usr/sbin/phc2sys.real with argv0=phc2sys, so
/proc/comm is phc2sys.real. Accept that name in process status and kill.
Collect all observed clock states per node before computing the worst
state, defaulting to FREERUN only when no samples are available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant