sonic-buildimage/src/sonic-ctrmgrd
Sudharsan Dhamal Gopalarathnam 14de0a1548
[containerd]Fixing container commands when mode is local and state is disabled (#9986)
Why I did it
During warm-reboot and fast-reboot the below error logs appear
Feb 3 22:05:15.187408 r-lionfish-13 ERR container: docker cmd: kill for nat failed with 404 Client Error for http+docker://localhost/v1.41/containers/nat/json: Not Found ("No such container: nat")

The container command when called for local mode doesn't check if it is enabled before calling docker kill which throws the above errors.
b6ca76b482/scripts/fast-reboot (L699)

How I did it
Checking feature state if local mode and returning error exit code along with valid debug message.

How to verify it
Manually tested with warm-reboot and fast-reboot
Added UT to verify it.
2022-03-02 19:08:06 -08:00
..
ctrmgr [containerd]Fixing container commands when mode is local and state is disabled (#9986) 2022-03-02 19:08:06 -08:00
tests [containerd]Fixing container commands when mode is local and state is disabled (#9986) 2022-03-02 19:08:06 -08:00
.gitignore First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
pytest.ini First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
README.rst First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.cfg First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.py [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00

"
This Package contains modules required for remote container management.
"