-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks #7596
Conversation
PR title mentions |
Whoops, copied from the internal system prior to the name change, thanks. Up to date now. |
@robocoder99 as the dependent PR is merged, please check submodule is updated and then we can move forward with the merge process. |
Submodule bump PR is here #7709 may proceed once this merge completes. Please let me know if anything else is needed. |
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc3 Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <[email protected]>
…asks (sonic-net#7596) I added `chassis_db_init` to the startup tasks for the `docker-platform-monitor` docker so that the script is run on startup of the switch and the chassis info is correctly provisioned to STATE_DB. Depends on sonic-net/sonic-platform-daemons#183
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc3 Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <[email protected]>
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc3 Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <[email protected]>
Why I did it
I added
chassis_db_init
to the startup tasks for thedocker-platform-monitor
docker so that the script is run on startup of the switch and the chassis info is correctly provisioned to STATE_DB.NOTE: THIS DEPENDS ON sonic-net/sonic-platform-daemons#183 DO NOT MERGE
How I did it
I modified the supervisord template in order to define the new task to be started.
How to verify it
Run
sudo redis-cli -n 6 hgetall "CHASSIS_INFO|chassis 1"
Expected output (exact values will differ per platform)
Description for the changelog
[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks
A picture of a cute animal (not mandatory but encouraged)