Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2123278

Summary: Reading of PHC fails and phc2sys exits [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: linuxptpAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Yalin.Li <yalli>
Severity: medium Docs Contact:
Priority: urgent    
Version: 8.4CC: blitton, bzvonar, dcain, fkrska, keyoung, kzhang, mlichvar, psklenar, pvaanane, yalli
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: linuxptp-2.0-5.el8_4.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2079129 Environment:
Last Closed: 2022-10-18 08:21:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2079129    
Bug Blocks:    

Comment 1 Bryan Litton 2022-09-21 19:05:18 UTC
@mlichvar and @yalli Is there any way we could get this merged and tested before the Batch 4 deadlines to get this fix out to our customer faster? Thanks so much for your efforts!

Comment 2 Yalin.Li 2022-09-22 05:15:37 UTC
Tested on linuxptp-2.0-5.el8_4.3, phc2sys doesn't exit when error happen.
# rpm -q linuxptp
linuxptp-2.0-5.el8_4.3.x86_64
# tail ptp4l.log 
ptp4l[4372.928]: rms    5 max   11 freq     -9 +/-   9 delay   320 +/-   1
ptp4l[4373.934]: rms    6 max   13 freq    -14 +/-  10 delay   320 +/-   0
ptp4l[4374.941]: rms    5 max   12 freq     -8 +/-   7 delay   318 +/-   1
ptp4l[4375.943]: rms    5 max   13 freq    -14 +/-   8 delay   321 +/-   1
ptp4l[4376.946]: rms    7 max   13 freq     -5 +/-  12 delay   320 +/-   1
ptp4l[4377.947]: rms    7 max   19 freq    -13 +/-  10 delay   321 +/-   0
ptp4l[4378.951]: rms    6 max   14 freq     -8 +/-  10 delay   319 +/-   1
ptp4l[4379.957]: rms    7 max   18 freq     -6 +/-  11 delay   319 +/-   1
ptp4l[4380.960]: rms    7 max   14 freq    -11 +/-  11 delay   320 +/-   2
ptp4l[4381.964]: rms    5 max    9 freq    -13 +/-   8 delay   321 +/-   0
# tail phc2syslog
phc2sys[4378.855]: CLOCK_REALTIME phc offset         5 s2 freq  -81966 delay    524
phc2sys[4378.980]: CLOCK_REALTIME phc offset         3 s2 freq  -81967 delay    522
phc2sys[4379.105]: CLOCK_REALTIME phc offset        15 s2 freq  -81954 delay    507
phc2sys[4379.230]: CLOCK_REALTIME phc offset         7 s2 freq  -81957 delay    538
phc2sys[4379.356]: CLOCK_REALTIME phc offset        -6 s2 freq  -81968 delay    558
phc2sys[4379.481]: CLOCK_REALTIME phc offset        -4 s2 freq  -81968 delay    565
phc2sys[4379.606]: CLOCK_REALTIME phc offset        -4 s2 freq  -81969 delay    525
phc2sys[4379.731]: CLOCK_REALTIME phc offset        -2 s2 freq  -81969 delay    525
phc2sys[4379.856]: CLOCK_REALTIME phc offset         8 s2 freq  -81959 delay    565
phc2sys[4379.882]: CLOCK_REALTIME phc offset        14 s2 freq  -81951 delay    519
# grep busy phc2syslog
phc2sys[4287.473]: ioctl PTP_SYS_OFFSET_EXTENDED: Device or resource busy
phc2sys[4355.298]: ioctl PTP_SYS_OFFSET_EXTENDED: Device or resource busy
phc2sys[4374.119]: ioctl PTP_SYS_OFFSET_EXTENDED: Device or resource busy

Comment 5 Ken Young 2022-09-27 17:44:36 UTC
Is this verified now?

Comment 6 Yalin.Li 2022-09-28 00:04:41 UTC
The package has been tested in comment 2. Marked as Verified.

Comment 15 errata-xmlrpc 2022-10-18 08:21:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (linuxptp bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:6988