sonic-swss
sonic-swss copied to clipboard
[warm-restart] Fix teamd container warm restart issue
What I did
Fix the warm restart function of the teamd container
Why I did it
Originally, after stopping the teamd container, it will try to temove the LAG ports. When orchagent receive the modification, it will encounter error for removing the LAG ports because there are AclTable on them.
The error will be like:
May 11 02:06:16.633270 as7816-64x NOTICE swss#orchagent: :- removeLagMember: Remove member Ethernet112 from LAG PortChannel0001 lid:2000000000b10 lmid:1b000000000b14
May 11 02:06:16.634260 as7816-64x ERR swss#orchagent: :- removeLag: Failed to remove ref count 3 LAG PortChannel0001
May 11 02:06:16.634260 as7816-64x ERR swss#orchagent: :- removeLag: Failed to remove ref count 3 LAG PortChannel0002
May 11 02:06:16.634260 as7816-64x ERR swss#orchagent: :- removeLag: Failed to remove ref count 3 LAG PortChannel0003
May 11 02:06:16.634260 as7816-64x ERR swss#orchagent: :- removeLag: Failed to remove ref count 3 LAG PortChannel0004
How I verified it
- Enable the warm-restart flag by
sudo config warm_restart enable teamd
- Restart the teamd container by
sudo systemctl restart teamd
- Check the syslog and make sure no "removeLag" orchagent error
Details if related
- Check the WARM_RESTART_ENABLE_TABLE for teamd when stopping the teamsyncd. If the teamd warm restart is enabled, skip cleaning the LAG resource
/azp run
Commenter does not have sufficient privileges for PR 1810 in repo Azure/sonic-swss
/azpw run
/AzurePipelines run
Azure Pipelines successfully started running 1 pipeline(s).