ossobv / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
0 stars 0 forks source link

runtime: Log spam "process-reboot-cause.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED" #15

Open wdoekes opened 2 weeks ago

wdoekes commented 2 weeks ago
Nov 06 09:25:10 leaf1.dostno.systems systemd[1]: process-reboot-cause.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 06 09:25:10 leaf1.dostno.systems systemd[1]: process-reboot-cause.service: Failed with result 'exit-code'.
Nov 06 09:25:10 leaf1.dostno.systems systemd[1]: Failed to start process-reboot-cause.service - Retrieve the reboot cause from the history files and save them to StateDB.

Log spam.

Caused by:

[Service]
Type=simple
ExecStartPre=/usr/bin/systemctl is-active database
ExecStartPre=/usr/bin/systemctl is-active determine-reboot-cause
Restart=on-failure
RestartSec=30
RemainAfterExit=yes
ExecStart=/usr/local/bin/process-reboot-cause
root@leaf1:~# /usr/bin/systemctl is-active database
active
root@leaf1:~# /usr/bin/systemctl is-active determine-reboot-cause
failed
root@leaf1:~# echo $?
3

This is rather spammy. Rather have it do all the is-actives in the ExecStart and then Restart=always ?

Right now we'll disable the job.

root@leaf1:~# systemctl disable process-reboot-cause
Removed "/etc/systemd/system/multi-user.target.wants/process-reboot-cause.service".
wdoekes commented 4 days ago
systemctl disable determine-reboot-cause.service process-reboot-cause.service
systemctl stop determine-reboot-cause.service process-reboot-cause.service

Needs fixing still.

wdoekes commented 4 days ago

Also:

root@spine2:3:~# journalctl -u system-health.service
Nov 21 11:11:35 spine2.dostno.systems systemd[1]: Started system-health.service - SONiC system health monitor.
Nov 21 11:11:36 spine2.dostno.systems healthd[2694]: Starting up...
Nov 21 11:11:36 spine2.dostno.systems healthd[2694]: System health configuration file not found, exit...
Nov 21 11:11:37 spine2.dostno.systems systemd[1]: system-health.service: Deactivated successfully.
Nov 21 11:11:37 spine2.dostno.systems systemd[1]: system-health.service: Scheduled restart job, restart counter is at 1.
Nov 21 11:11:37 spine2.dostno.systems systemd[1]: Stopped system-health.service - SONiC system health monitor.
Nov 21 11:11:37 spine2.dostno.systems systemd[1]: Started system-health.service - SONiC system health monitor.
root@spine2:2:~# /usr/local/bin/watchdogutil --help
Usage: watchdogutil [OPTIONS] COMMAND [ARGS]...

  watchdogutil - Command line utility for providing HW watchdog interface

Options:
  --help  Show this message and exit.

Commands:
  arm      Arm HW watchdog
  disarm   Disarm HW watchdog
  status   Check the watchdog status with remaining_time if it's armed
  version  Display version info
root@spine2:0:~# /usr/local/bin/watchdogutil status
root@spine2:2:~# /usr/local/bin/watchdogutil version

So, also kill these for now:

systemctl disable system-health.service watchdog-control.service
systemctl stop system-health.service watchdog-control.service
systemctl reset-failed determine-reboot-cause.service process-reboot-cause.service system-health.service watchdog-control.service