Commit 21b6334
authored
[swss] Restart countersyncd after unexpected exit (#2056)
#### Why I did it
Backport public SONiC PR sonic-net/sonic-buildimage#26147 to the
`202412` branch.
`swss:countersyncd` in orchagent is started through dependent-startup,
but the current supervisor stanza leaves it at `EXITED` after an
unexpected exit instead of recovering it.
##### Work item tracking
- Microsoft ADO **(number only)**: N/A
#### How I did it
- cherry-pick the original backport-safe changes from
sonic-net/sonic-buildimage#26147
- change `countersyncd` supervisor policy from `autorestart=false` to
`autorestart=unexpected`
- set `startsecs=10`
- set `startretries=3`
#### How to verify it
Validated on 202412 DUT image `20241212.54`.
Equivalent live-patched supervisor settings were applied on DUT
`str4-sn5640-2`, then HFT telemetry validation was rerun successfully.
Relevant result:
-
`high_frequency_telemetry/test_high_frequency_telemetry.py::test_hft_port_counters`
- result: `1 passed`
- `swss:countersyncd` remained `RUNNING` after telemetry capture
#### Which release branch to backport (provide reason below if selected)
- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305
Base branch of this PR is already `202412`.
#### Tested branch (Please provide the tested image version)
- [x] 20241212.54
#### Description for the changelog
Restart `swss:countersyncd` automatically after unexpected exits.
#### Link to config_db schema for YANG module changes
N/A
#### A picture of a cute animal (not mandatory but encouraged)
🦦
---------
Signed-off-by: Ze Gan <ganze718@gmail.com>1 parent 0649005 commit 21b6334
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
0 commit comments