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

[fast/warm-reboot] Put ERR message in syslog when a failure is seen #3186

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

vaibhavhd
Copy link
Contributor

What I did

MSFT ADO: 26918588

This change is to add ERR logs generated during warm-reboot script to syslog.

Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog.

This makes it difficult to debug issues when stdout is not readily available.

How I did it

Modified existing error function to add the log entry to syslog.

How to verify it

Verified manually on physical device

W/o this fix:

Simulated a failure and confirmed that error is not captured in syslog.

Mar  1 23:56:22.060584 str2-7060cx-32s-29 NOTICE admin: Starting warm-reboot
Mar  1 23:56:23.756585 str2-7060cx-32s-29 NOTICE admin: Saving counters folder before warmboot...
Mar  1 23:56:26.049133 str2-7060cx-32s-29 NOTICE admin: warm-reboot failure (1) cleanup ...
Mar  1 23:56:27.076923 str2-7060cx-32s-29 NOTICE admin: Cancel warm-reboot: code (0)

W/ this change:

Mar  1 23:57:36.638452 str2-7060cx-32s-29 NOTICE admin: Starting warm-reboot
Mar  1 23:57:38.076240 str2-7060cx-32s-29 NOTICE admin: Saving counters folder before warmboot...
Mar  1 23:57:40.015017 str2-7060cx-32s-29 ERR admin: Error seen during warm-reboot shutdown process: Docker exec on radv timedout
Mar  1 23:57:40.024768 str2-7060cx-32s-29 NOTICE admin: warm-reboot failure (1) cleanup ...
Mar  1 23:57:40.916501 str2-7060cx-32s-29 NOTICE admin: Cancel warm-reboot: code (0)

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@vaibhavhd vaibhavhd merged commit 5f0ffcc into sonic-net:master Mar 2, 2024
5 checks passed
@vaibhavhd vaibhavhd deleted the fast-reboot-log branch March 2, 2024 00:58
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Mar 11, 2024
…onic-net#3186)

MSFT ADO: 26918588

This change is to add ERR logs generated during warm-reboot script to syslog.
Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog.
This makes it difficult to debug issues when stdout is not readily available.

How I did it
Modified existing error function to add the log entry to syslog.

How to verify it
Verified manually on physical device
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #3206

mssonicbld pushed a commit that referenced this pull request Mar 11, 2024
…3186)

MSFT ADO: 26918588

This change is to add ERR logs generated during warm-reboot script to syslog.
Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog.
This makes it difficult to debug issues when stdout is not readily available.

How I did it
Modified existing error function to add the log entry to syslog.

How to verify it
Verified manually on physical device
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Mar 21, 2024
…onic-net#3186)

MSFT ADO: 26918588

This change is to add ERR logs generated during warm-reboot script to syslog.
Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog.
This makes it difficult to debug issues when stdout is not readily available.

How I did it
Modified existing error function to add the log entry to syslog.

How to verify it
Verified manually on physical device
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3228

mssonicbld pushed a commit that referenced this pull request Mar 21, 2024
…3186)

MSFT ADO: 26918588

This change is to add ERR logs generated during warm-reboot script to syslog.
Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog.
This makes it difficult to debug issues when stdout is not readily available.

How I did it
Modified existing error function to add the log entry to syslog.

How to verify it
Verified manually on physical device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants