Skip to content

Commit

Permalink
[PMON] Skip chassis_db_init task on Mellanox simx platform (#9017)
Browse files Browse the repository at this point in the history
Why I did it
"chassis_db_init" task of PMON should be skipped on Mellanox simx platform, since the hardware info which this task is trying to access is not available on simx platforms, It will introduce some error log.

How I did it
Add the capability for "chassis_db_init" in the template for it can be skipped by adding configuration in "pmon_daemon_control.json".
add "skip_chassis_db_init" configuration for simx platforms.
use symbol link for "pmon_daemon_control.json" since all the simx platforms share the same configuration
How to verify it
Build an image and install it on simx platform to check whether "chassis_db_init" task is skipped.

Signed-off-by: Kebo Liu <[email protected]>
  • Loading branch information
keboliu authored Oct 24, 2021
1 parent bb9c36c commit 9c4a7c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"skip_xcvrd": true,
"skip_psud": true,
"skip_pcied": true,
"skip_thermalctld": true
"skip_thermalctld": true,
"skip_chassis_db_init": true
}

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}

{% if not skip_chassis_db_init %}
[program:chassis_db_init]
command=/usr/local/bin/chassis_db_init
priority=3
Expand All @@ -51,6 +52,7 @@ stderr_logfile=syslog
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}

{% if not skip_sensors and HAVE_SENSORS_CONF == 1 %}
[program:lm-sensors]
Expand Down

0 comments on commit 9c4a7c2

Please sign in to comment.