Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-31422: PTP container logs lack severity information #286

Merged
merged 1 commit into from Mar 26, 2024

Conversation

aneeshkp
Copy link
Contributor

@aneeshkp aneeshkp commented Mar 26, 2024

Enable log severity via message_tag the log severity will be suffixed to message tag and available in container logs
example : ptp4l[2464681.628]: [ptp4l.1.config:7] master offset -4 s2 freq -26835 path delay 525

ptp4l[2485169.871]: [ptp4l.0.config:3] increasing tx_timestamp_timeout or increasing kworker priority may correct this issue, but a driver bug likely causes it
ptp4l[2485169.871]: [ptp4l.0.config:3] port 1 (ens2f0): send delay request failed
ptp4l[2485169.871]: [ptp4l.0.config:5] port 1 (ens2f0): SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[2485169.880]: [ptp4l.1.config:6] master offset -1 s2 freq -26803 path

3=Error ;5=Warning 6=Debug

@openshift-ci openshift-ci bot requested review from dcbw and jzding March 26, 2024 20:00
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2024
@aneeshkp aneeshkp force-pushed the fix-log-severity branch 3 times, most recently from 2ba1596 to f3d2901 Compare March 26, 2024 20:17
@aneeshkp aneeshkp changed the title disaply log severity level in linuxptp container logs OCPBUGS-31422: PTP container logs lack severity information Mar 26, 2024
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Mar 26, 2024
@openshift-ci-robot
Copy link
Contributor

@aneeshkp: This pull request references Jira Issue OCPBUGS-31422, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (hhassid@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Enable log severity via message_tag the log severity will be suffixed to message tag and available in container logs
example : ptp4l[2464681.628]: [ptp4l.1.config:7] master offset -4 s2 freq -26835 path delay 525

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
Copy link
Contributor

@aneeshkp: This pull request references Jira Issue OCPBUGS-31422, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (hhassid@redhat.com), skipping review request.

In response to this:

Enable log severity via message_tag the log severity will be suffixed to message tag and available in container logs
example : ptp4l[2464681.628]: [ptp4l.1.config:7] master offset -4 s2 freq -26835 path delay 525

ptp4l[2485169.871]: [ptp4l.0.config:3] increasing tx_timestamp_timeout or increasing kworker priority may correct this issue, but a driver bug likely causes it
ptp4l[2485169.871]: [ptp4l.0.config:3] port 1 (ens2f0): send delay request failed
ptp4l[2485169.871]: [ptp4l.0.config:5] port 1 (ens2f0): SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[2485169.880]: [ptp4l.1.config:6] master offset -1 s2 freq -26803 path

3=Error ;5=Warning 6=Debug

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.

@aneeshkp
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@aneeshkp: This pull request references Jira Issue OCPBUGS-31422, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (hhassid@redhat.com), skipping review request.

In response to this:

/jira refresh

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.

@@ -451,7 +453,7 @@ func (dn *Daemon) applyNodePtpProfile(runID int, nodeProfile *ptpv1.PtpProfile)
socketPath = fmt.Sprintf("/var/run/ptp4l.%d.socket", runID)
configFile = fmt.Sprintf("ts2phc.%d.config", runID)
configPath = fmt.Sprintf("/var/run/%s", configFile)
messageTag = fmt.Sprintf("[ts2phc.%d.config]", runID)
messageTag = fmt.Sprintf("[ts2phc.%d.config]:{level}", runID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ts2phc.%d.config:{level}]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opps! good find

Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
Copy link
Contributor

@josephdrichard josephdrichard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approved

Copy link
Contributor

openshift-ci bot commented Mar 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aneeshkp, josephdrichard

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [aneeshkp,josephdrichard]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 26, 2024
Copy link
Contributor

openshift-ci bot commented Mar 26, 2024

@aneeshkp: all tests passed!

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 00bc142 into openshift:master Mar 26, 2024
6 checks passed
@openshift-ci-robot
Copy link
Contributor

@aneeshkp: Jira Issue OCPBUGS-31422: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-31422 has been moved to the MODIFIED state.

In response to this:

Enable log severity via message_tag the log severity will be suffixed to message tag and available in container logs
example : ptp4l[2464681.628]: [ptp4l.1.config:7] master offset -4 s2 freq -26835 path delay 525

ptp4l[2485169.871]: [ptp4l.0.config:3] increasing tx_timestamp_timeout or increasing kworker priority may correct this issue, but a driver bug likely causes it
ptp4l[2485169.871]: [ptp4l.0.config:3] port 1 (ens2f0): send delay request failed
ptp4l[2485169.871]: [ptp4l.0.config:5] port 1 (ens2f0): SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[2485169.880]: [ptp4l.1.config:6] master offset -1 s2 freq -26803 path

3=Error ;5=Warning 6=Debug

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-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-linuxptp-daemon-container-v4.16.0-202403261946.p0.g00bc142.assembly.stream.el9 for distgit linuxptp-daemon.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants