Skip to content

Commit 7693dc1

Browse files
authored
Merge pull request sonic-net#74 from Praveen524/HW_watchdog
Hw watchdog
2 parents ac9782f + 3966bf6 commit 7693dc1

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# HW Watchdog Test Plan
2+
3+
# SONiC 3.1.1 Project and Buzznik_plus_MR Release
4+
5+
[TOC]
6+
7+
# Test Plan Revision History
8+
9+
| Rev | Date | Author | Change Description |
10+
| :--: | :--------: | :------------------: | :----------------: |
11+
| 0.1 | 10/06/2020 | Praveen Kumar Kota | Initial version |
12+
13+
# List of Reviewers
14+
15+
| Function | Name |
16+
| :------: | :------------------: |
17+
| Dev | Kalimuthu |
18+
| QA | Babu Rajaram |
19+
| QA | Anil Kumar Kolkaleti |
20+
21+
# List of Approvers
22+
23+
| Function | Name | Date Approved |
24+
| :------: | :------------------: | :-----------: |
25+
| Dev | Kalimuthu | |
26+
| QA | Babu Rajaram | |
27+
28+
29+
30+
# 1 Topologies
31+
32+
## 1.1 Topology
33+
34+
#### <span style="color:red"> </span>
35+
36+
![Topology:1](HW_Watchdog_TOPOLOGY.png "Figure: HW_Watchdog ")
37+
38+
39+
# 2 Functional
40+
41+
### 2.1.1 Verify the watchdog reset by killing the watchdog daemon process/hardware hung simulation.
42+
43+
| **Test ID** | **Tescase1** |
44+
| -------------- | :----------------------------------------------------------- |
45+
| **Test Name** | **Verify the watchdog reset by killing the watchdog daemon process/hardware hung simulation.** |
46+
| **Test Setup** | **Topology** |
47+
| **Type** | **Functional** |
48+
| **Steps** | **<br/>Procedure:<br/>1) Pause the watchdog util timer using "watchdogutil pause".<br/>2) Check the status of of watchdogutil using "watchdogutil status".<br/>3) Wait untill the expiry of watchdog timer.<br/>4) Check whether systems get reset after WDT expiry.<br/>Expected Result:<br/>1) Verify that command got executed properly. <br/>2) Verify the status is paused.<br/>3) Verify that WDT got expired.<br/>4) Verify that watchdog reset by killing the watchdog daemon process/hardware hung simulation.** |
49+
50+
51+
### 2.1.2 Verify the reboot reason when system reboots because of watchdog timeout.
52+
53+
| **Test ID** | **Tesctase2** |
54+
| -------------- | :----------------------------------------------------------- |
55+
| **Test Name** | **Verify the reboot reason when system reboots because of watchdog timeout.** |
56+
| **Test Setup** | **Topology** |
57+
| **Type** | **Functional** |
58+
| **Steps** | **<br/>Procedure:<br/>1) Pause the watchdog util timer using "watchdogutil pause".<br/>2) Check the status of of watchdogutil using "watchdogutil status".<br/>3) Wait untill the expiry of watchdog timer.<br/>4) Check whether systems get reset after WDT expiry.<br/>5) Check the reboot reason.<br/>Expected Result:<br/>1) Verify that command got executed properly. <br/>2) Verify the status is disarmed.<br/>3) Verify that WDT got expired.<br/>4) Verify that watchdog reset by killing the watchdog daemon process/hardware hung simulation.<br/>5) Verify the reboot reason is shown as exact reason.** |
59+
60+
61+
### 2.1.3 Verify the watchdog enable/disable support.
62+
63+
| **Test ID** | **Tesctase3** |
64+
| -------------- | :----------------------------------------------------------- |
65+
| **Test Name** | **Verify the watchdog enable/disable support.** |
66+
| **Test Setup** | **Topology** |
67+
| **Type** | **Functional** |
68+
| **Steps** | **<br/>Procedure:<br/>1) Check whether watchdog can be disabled or not using "watchdogutil disarm"<br/>2) Check whether the status is shown as disarmed or not.<br/>3) Revert back the watchdog config by enabling back using "watchdogutil arm"<br/>4) Check wherther the status is shown as armed or not.<br/>Expected Result:<br/>1) Verify that command got executed properly.<br/>2) Verify the status is disarmed.<br/>3) Verify the command got executed properly.<br/>4) Verify the watchdog can be enable/disable.** |
69+
70+
71+
### 2.1.4 Verify the watchdog disable during kdump collection.
72+
| **Test ID** | **Tesctase4** |
73+
| -------------- | :----------------------------------------------------------- |
74+
| **Test Name** | **Verify the watchdog disable during kdump collection.** |
75+
| **Test Setup** | **Topology** |
76+
| **Type** | **Functional** |
77+
| **Steps** | **<br/>Procedure:<br/>1) Try to get kdump collection using " echo c>/proc/sysrq-trigger".<br/>2) Check watchdog get disable.<br/>3) Check whether system get reset and get reboot reason.<br/>4Collect kdump status.<br/>Expected Result:<br/>1) Verify the step executed successfully.<br/>2,3) Verify that system gets reset and reboot cause is shown appropriate message.<br/>4) Verify the watchdog disable during kdump collection.** |
78+
79+
80+
### 2.1.5 Verify the watchdog reading of watchdog timeout value.
81+
| **Test ID** | **Tesctase5** |
82+
| -------------- | :----------------------------------------------------------- |
83+
| **Test Name** | **Verify the watchdog reading of watchdog timeout value.** |
84+
| **Test Setup** | **Topology** |
85+
| **Type** | **Functional** |
86+
| **Steps** | **<br/>Procedure:<br/>1) Check the watchdog reading of watchdog timeout value using "watchdogutil timeout".<br/>Expected Result:<br/>1) Verify the watchdog reading of watchdog timeout value.** |
87+
88+
89+
### 2.1.6 Verify the 2.0 API interface.
90+
| **Test ID** | **Tesctase6** |
91+
| -------------- | :----------------------------------------------------------- |
92+
| **Test Name** | **Verify the 2.0 API interface.** |
93+
| **Test Setup** | **Topology** |
94+
| **Type** | **Functional** |
95+
| **Steps** | **<br/>Procedure:<br/>1) Check the Watchdogtutil and systemctl status watchdog-control should show running status.<br/>Expected Result:<br/>1) Verify that Watchdogtutil and systemctl status watchdog-control are shown in show running status.** |
96+
97+
98+
# 3.Reference
99+
http://gerrit-lvn-07.lvn.broadcom.net:8083/plugins/gitiles/sonic/documents/+/refs/changes/06/23706/3/platforms/watchdog/watchdog.md
100+
101+
102+
Loading

0 commit comments

Comments
 (0)