-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add reboot-cause information to telemetry #669
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jleveque
suggested changes
Sep 3, 2020
jleveque
suggested changes
Sep 4, 2020
prsunny
reviewed
Sep 17, 2020
jleveque
suggested changes
Sep 18, 2020
@jleveque Can you please review this HLD again? |
jleveque
reviewed
Oct 8, 2020
jleveque
suggested changes
Oct 9, 2020
jleveque
suggested changes
Oct 13, 2020
jleveque
suggested changes
Oct 15, 2020
jleveque
suggested changes
Oct 15, 2020
jleveque
suggested changes
Oct 15, 2020
jleveque
suggested changes
Oct 16, 2020
jleveque
approved these changes
Oct 21, 2020
This was referenced Oct 23, 2020
Closed
This was referenced Sep 8, 2021
wangxin
pushed a commit
to sonic-net/sonic-mgmt
that referenced
this pull request
Sep 17, 2021
…est_reboot.py (#4270) This is to add test case in sonic-mgmt/tests/platform_tests/test_reboot.py to cover new feature reboot-cause history introduced in sonic-net/SONiC#669. Example: show reboot-cause history Name Cause Time User Comment ------------------- ------------- ------------------------------- ------ --------- 2021_09_09_14_15_13 Power Loss () N/A N/A N/A 2021_09_09_14_06_17 reboot Thu 09 Sep 2021 02:05:17 PM UTC admin N/A 2021_09_09_13_59_11 Watchdog () N/A N/A N/A 2021_09_09_13_52_13 Power Loss () N/A N/A N/A 2021_09_09_13_45_18 warm-reboot Thu 09 Sep 2021 01:44:14 PM UTC admin N/A 2021_09_09_13_37_58 fast-reboot Thu 09 Sep 2021 01:37:09 PM UTC admin N/A 2021_09_09_13_30_52 soft-reboot Thu 09 Sep 2021 01:30:24 PM UTC admin N/A 2021_09_09_13_24_17 reboot Thu 09 Sep 2021 01:23:17 PM UTC admin N/A What is the motivation for this PR? In order to verify reboot-cause history function, add new checker for "show reboot-cause history" into reboot tests How did you do it? Add one new function of check_reboot_cause_history in sonic-mgmt/tests/platform_tests/test_reboot.py. In test_reboot.py, there are 8 different reboot tests. In order to save test execution time, we leverage the reboot-cause history generated by them to test it. 1. Verify the reboot-cause history title 2. Verify reboot-cause output are sorted in reverse chronological order
vmittal-msft
pushed a commit
to vmittal-msft/sonic-mgmt
that referenced
this pull request
Sep 28, 2021
…est_reboot.py (sonic-net#4270) This is to add test case in sonic-mgmt/tests/platform_tests/test_reboot.py to cover new feature reboot-cause history introduced in sonic-net/SONiC#669. Example: show reboot-cause history Name Cause Time User Comment ------------------- ------------- ------------------------------- ------ --------- 2021_09_09_14_15_13 Power Loss () N/A N/A N/A 2021_09_09_14_06_17 reboot Thu 09 Sep 2021 02:05:17 PM UTC admin N/A 2021_09_09_13_59_11 Watchdog () N/A N/A N/A 2021_09_09_13_52_13 Power Loss () N/A N/A N/A 2021_09_09_13_45_18 warm-reboot Thu 09 Sep 2021 01:44:14 PM UTC admin N/A 2021_09_09_13_37_58 fast-reboot Thu 09 Sep 2021 01:37:09 PM UTC admin N/A 2021_09_09_13_30_52 soft-reboot Thu 09 Sep 2021 01:30:24 PM UTC admin N/A 2021_09_09_13_24_17 reboot Thu 09 Sep 2021 01:23:17 PM UTC admin N/A What is the motivation for this PR? In order to verify reboot-cause history function, add new checker for "show reboot-cause history" into reboot tests How did you do it? Add one new function of check_reboot_cause_history in sonic-mgmt/tests/platform_tests/test_reboot.py. In test_reboot.py, there are 8 different reboot tests. In order to save test execution time, we leverage the reboot-cause history generated by them to test it. 1. Verify the reboot-cause history title 2. Verify reboot-cause output are sorted in reverse chronological order
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To support the reboot-cause information sending via telemetry agent, this HLD proposes the state-DB schema and how to process the reboot-cause information during the reboot-cause-process.