sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[warm-restart] Fix teamd container warm restart issue

Open kuanyu99 opened this issue 3 years ago • 5 comments

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

  1. Enable the warm-restart flag by sudo config warm_restart enable teamd
  2. Restart the teamd container by sudo systemctl restart teamd
  3. 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

kuanyu99 avatar Jun 29 '21 02:06 kuanyu99

/azp run

kuanyu99 avatar Jul 16 '21 08:07 kuanyu99

Commenter does not have sufficient privileges for PR 1810 in repo Azure/sonic-swss

azure-pipelines[bot] avatar Jul 16 '21 08:07 azure-pipelines[bot]

/azpw run

kuanyu99 avatar Oct 06 '21 08:10 kuanyu99

/AzurePipelines run

mssonicbld avatar Oct 06 '21 08:10 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 06 '21 08:10 azure-pipelines[bot]