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

[action] [PR:16612] [armhf][Nokia-7215] Enable Watchdog service #17704

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

mssonicbld
Copy link
Collaborator

Why I did it

Enable watchdog for Nokia 7215 platform

Work item tracking
  • Microsoft ADO (number only): 24981141

How I did it

Implement service which arm's the watchdog and send keep alive every minute.
start service be default on boot up

How to verify it

Verify Watchdog is enabled on boot up:
"sudo systemctl status cpu_wdt.service" should show that service as active
admin@sonic:~$ sudo watchdogutil status
Status: Armed
Time remaining: 138 seconds

Stop Service and verify watchdog is disarmed:
admin@sonic:$ sudo systemctl stop cpu_wdt.service
admin@sonic:$ sudo watchdogutil status
Status: Unarmed

Logs added to notify service being armed/Disarmed and for every keep alive(every 55 seconds)

2430:2023-10-13T01:42:11.077639+00:00 sonic Watchdog: CPUWDT Enabled: watchdog armed=True
2988:Oct 13 01:43:06.132343 sonic INFO Watchdog: CPUWDT keepalive
11925:Oct 13 01:44:01.186558 sonic INFO Watchdog: CPUWDT keepalive
12418:Oct 13 01:44:56.240061 sonic INFO Watchdog: CPUWDT keepalive

47159:Oct 13 02:27:15.490356 sonic NOTICE Watchdog: CPUWDT Disabled: watchdog armed=False

Also verified OC test suits and created seperate PR to uptate sonic-mgmt
sonic-net/sonic-mgmt#10082

https://github.com/sonic-net/sonic-mgmt/blob/master/tests/platform_tests/api/test_watchdog.py
https://github.com/sonic-net/sonic-mgmt/blob/master/tests/common/helpers/platform_api/watchdog.py

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Enable watchdog service for Nokia-7215 platform

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link
Collaborator Author

Original PR: #16612

@mssonicbld mssonicbld merged commit 64e5b82 into sonic-net:202205 Jan 8, 2024
9 checks passed
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.

2 participants