ha/service-mgmt/sm-common
Kyale, Eliud 9e2ff82411 Add failover state of peer to heartbeat msg
- add failover state to heartbeat message ( 4 bits )
- add logic to survived_state to use peer's
  failover state to determine whether to exit survived state
  and enter normal state
- throttle peer is normal events with a threshold of 10
  used to ensure the peer is normal and stable
- change fsm->send_event() log to debug from info log level
- a few logging improvements; debug send_event logs
- update copyright year 2023

Test plan:
PASS - AIO-DX: iso install
PASS - AIO-DX: crash the sm as indicated in bug
               and observe swact to standby
PASS - AIO-DX: manual swact
PASS - AIO-DX: power off active controller
PASS - AIO-SX: install and basic sanity check
PASS - AIO-SX: upgrade test to verify sm heartbeat
               messages changes still function when
               controllers are running different loads

Closes-Bug: 2012519

Signed-off-by: Kyale, Eliud <Eliud.Kyale@windriver.com>
Change-Id: I1f86dcb8c9d9dbaf436b9240867f61adc405e88c
2023-04-14 08:14:07 -04:00
..
centos Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:32 +00:00
debian Update debian package versions to use git commits 2023-02-10 10:14:48 -08:00
opensuse Remove sm-watchdog service since NFS is now stable 2022-08-19 19:57:43 +00:00
scripts Debian: Remove conf files from etc-pmon.d 2022-09-26 13:40:41 +00:00
src Add failover state of peer to heartbeat msg 2023-04-14 08:14:07 -04:00
LICENSE Remove version from sm-common folder 2019-09-26 12:00:43 -05:00
Makefile Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:32 +00:00