- 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
Reviewed: https:/ /review. opendev. org/c/starlingx /ha/+/878274 /opendev. org/starlingx/ ha/commit/ 9e2ff8241103c16 79ef7f6e5098bc9 5275db39fe
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9e2ff8241103c16 79ef7f6e5098bc9 5275db39fe
Author: Kyale, Eliud <email address hidden>
Date: Wed Mar 22 10:06:37 2023 -0400
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:
and observe swact to standby
messages changes still function when
controller s are running different loads
PASS - AIO-DX: iso install
PASS - AIO-DX: crash the sm as indicated in bug
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
Closes-Bug: 2012519
Signed-off-by: Kyale, Eliud <email address hidden> af436b9240867f6 1adc405e88c
Change-Id: I1f86dcb8c9d9db