OCPBUGS-109637: Fix phc2sys / chrony stale metric - #739
Conversation
Fix phc2sys / chrony stale metric by cleaning up the old metric, so there is only exactly oneCLOCK_REALTIME metric on the system at all times Assisted by Cursor
|
@vitus133: This pull request references Jira Issue OCPBUGS-109637, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vitus133 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/verified later @klaskosk |
|
@vitus133: This PR has been marked to be verified later by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/label backport-risk-assessed |
|
/jira refresh |
|
@vitus133: This pull request references Jira Issue OCPBUGS-109637, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: klaskosk. Note that only redhat-cne members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Summary
Backport of the fix for OCPBUGS-98227 to release-4.22.
With the ntpfailover plugin,
openshift_ptp_clock_state{iface="CLOCK_REALTIME", ...}could report stale values for the process (phc2sys/chronyd) that had just gone inactive, since the old metric was never cleared when switching between phc2sys and chronyd as the active CLOCK_REALTIME source. This meant two CLOCK_REALTIME metrics could exist simultaneously, one of them stale, and the actual state was unrelated to which process was active.Cherry-picked commit
319c7b29"Fix phc2sys / chrony stale metric" (OCPBUGS-98227: Fix phc2sys / chrony stale metric #725, merged to main)Cleans up the old CLOCK_REALTIME metric so exactly one exists at all times, corresponding to whichever process (phc2sys or chronyd) is actually active.
Cherry-pick applied cleanly
Jira: https://redhat.atlassian.net/browse/OCPBUGS-109637