Bug 2047308 - Remove metrics and events for master port offsets
Summary: Remove metrics and events for master port offsets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Native Events
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Aneesh Puttur
QA Contact: obochan
URL:
Whiteboard:
Depends On:
Blocks: 2050737
TreeView+ depends on / blocked
 
Reported: 2022-01-27 15:05 UTC by Aneesh Puttur
Modified: 2022-08-10 10:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2050737 (view as bug list)
Environment:
Last Closed: 2022-08-10 10:23:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-cne cloud-event-proxy pull 94 0 None Merged Bug 2047308:Remove metrics and events for master port offsets 2022-04-07 14:41:21 UTC
Red Hat Product Errata RHSA-2022:5070 0 None None None 2022-08-10 10:24:00 UTC

Description Aneesh Puttur 2022-01-27 15:05:03 UTC
Description of problem:
phc2sys reports offset for master ports and the  PTP events generate events for those offsets.

phc2sys[859300.541]: [ptp4l.0.config] ens3f1 rms   52 max   52 freq  -3081 +/-   0 delay  2542 +/-   0

Since the offsets for master ports are not clearly understood, the events generated for that ports are not valid .

Actual results:
Generates offset events and metrics for master ports 


Expected results:
Do not show offset metrics and events for master ports

Additional info:

Comment 4 obochan 2022-06-07 14:14:39 UTC
issue is verified in:

[obochan@obochan ~]$ oc version 
Client Version: 4.8.0
Server Version: 4.11.0-0.nightly-2022-05-25-193227
Kubernetes Version: v1.23.3+ad897c4


[obochan@obochan ~]$ oc exec -it linuxptp-daemon-tqbbh -n openshift-ptp cloud-event-proxy  -- curl 127.0.0.1:9091/metrics  | grep openshift_ptp_clock_state
Defaulted container "cloud-event-proxy" out of: cloud-event-proxy, kube-rbac-proxy, linuxptp-daemon-container
# HELP openshift_ptp_clock_state 0 = FREERUN, 1 = LOCKED, 2 = HOLDOVER
# TYPE openshift_ptp_clock_state gauge
openshift_ptp_clock_state{iface="CLOCK_REALTIME",node="cnfde4.ptp.lab.eng.bos.redhat.com",process="phc2sys"} 1
openshift_ptp_clock_state{iface="ens1fx",node="cnfde4.ptp.lab.eng.bos.redhat.com",process="ptp4l"} 1
openshift_ptp_clock_state{iface="ens4fx",node="cnfde4.ptp.lab.eng.bos.redhat.com",process="ptp4l"} 1

Comment 8 errata-xmlrpc 2022-08-10 10:23:42 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 (Moderate: OpenShift Container Platform 4.11.0 extras and security 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/RHSA-2022:5070


Note You need to log in before you can comment on or make changes to this bug.