sonic-buildimage/platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform
Dmytro Lytvynenko 0711aea3aa
[bfn]: Fix sigterm processing (#12952)
Why I did it
SIGTERM takes more than 10 seconds to be processed, so psud is stopped by SIGKILL, this causes unexpected behavior since data base is not cleared

How I did it
Decorate get_presence api to cancel it on SIGTERM signal in order to avoid long processing.

How to verify it
test_pmon_psud_stop_and_start_status
test_pmon_psud_term_and_start_status
2022-12-06 23:38:23 -08:00
..
bfn_extensions [platform][barefoot] Use urllib.parse.quote (#7010) 2021-03-12 11:52:47 -08:00
pltfm_mgr_rpc [BFN] Updated syseeprom platform plugin to use onie-eeprom (#10556) 2022-09-29 15:13:46 -07:00
__init__.py [barefoot][platform] Platform API fixups (#5613) 2020-10-14 11:35:36 -07:00
chassis.py [BFN] Reworked BFN platform thermals plugin (#11723) 2022-10-11 09:12:28 +08:00
component.py [BFN] Reworked BFN platform thermals plugin (#11723) 2022-10-11 09:12:28 +08:00
eeprom.py Add missing import (#12624) 2022-11-10 10:46:49 +08:00
fan_drawer.py [BFN] Fixed FANs indexing for multi-drawer case (#12491) 2022-11-07 22:06:52 +08:00
fan.py [BFN] Fixed FANs indexing for multi-drawer case (#12491) 2022-11-07 22:06:52 +08:00
logging.conf BFN platform API 2.0 support (#4766) 2020-10-03 13:46:21 -07:00
platform_thrift_client.py [BFN] Move qsfp eeprom reading to new cached api (#9909) 2022-09-29 15:12:01 -07:00
platform_utils.py [BFN] Canceling PSU platform API calls on SIGTERM (#10720) 2022-09-29 15:18:43 -07:00
platform.py BFN platform API 2.0 support (#4766) 2020-10-03 13:46:21 -07:00
psu.py [bfn]: Fix sigterm processing (#12952) 2022-12-06 23:38:23 -08:00
sfp.py [BFN] Reworked BFN platform thermals plugin (#11723) 2022-10-11 09:12:28 +08:00
thermal.py [BFN] Reworked BFN platform thermals plugin (#11723) 2022-10-11 09:12:28 +08:00