This change prevents the SM trap thread from exiting when the trap
pipe is closed or read fails, if the flag file
/var/run/.sm_no_trap_conn_loss_exit is present.
This special-case behavior supports Bare-Metal to Rook-Ceph migration,
where the trap pipe can close transiently and previously caused SM to
exit and break live migration.
With the flag present, the trap handler logs the condition and
continues, similar to handling a malformed message.
Test Plan:
PASS: Verify Standard system install
PASS: verify AIO DX System install
PASS: Verify trap handling and logging with flag file present
PASS: Verify trap handling and logging without flag file present
PASS: All test cases in the following dependent update
https://review.opendev.org/c/starlingx/ansible-playbooks/+/975697
Partial-Bug: 2140444
Change-Id: Ia258ec35baeb7f1290e430902ec5043a4161e7a2
Signed-off-by: Eric Macdonald <eric.macdonald@windriver.com>
ha
The starlingx/ha repository handles High Availability services1.
Its key component is the StarlingX Service Management (SM), which coordinates the StarlingX services.
This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest2.
References
Description
Languages
C
70.2%
Python
18.5%
Shell
7.6%
C++
3.3%
Makefile
0.4%