Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show interfaces status Corresponding portchannel is not deleted when config delete the portchannel #5457

Closed
tim-rj opened this issue Sep 24, 2020 · 2 comments

Comments

@tim-rj
Copy link
Contributor

tim-rj commented Sep 24, 2020

Description

show interfaces status Corresponding portchannel is not deleted when config delete the portchannel

Steps to reproduce the issue:

  1. config a portchannel and add port as it's portchannle member
  2. config delete the portchanel

Describe the results you received:
Cannot delete LAG correctly when it is a member of a vlan,but teamd The teamd module has been deleted

root@sonic:/home/admin# config portchannel del PortChannel0011 
root@sonic:/home/admin# show int st
      Interface            Lanes    Speed    MTU    FEC               Alias             Vlan    Oper    Admin             Type    Asym PFC
---------------  ---------------  -------  -----  -----  ------------------  ---------------  ------  -------  ---------------  ----------
      Ethernet1                1      25G   9100    N/A   twentyfiveGigE0/1           routed    down       up              N/A         N/A
      Ethernet2                2      25G   9100    N/A   twentyfiveGigE0/2           routed    down       up              N/A         N/A
      Ethernet3                3      25G   9100    N/A   twentyfiveGigE0/3           routed    down       up              N/A         N/A
      Ethernet4                4      25G   9100    N/A   twentyfiveGigE0/4           routed    down       up              N/A         N/A
      Ethernet5                5      25G   9100    N/A   twentyfiveGigE0/5           routed    down       up              N/A         N/A
      Ethernet6                6      25G   9100    N/A   twentyfiveGigE0/6           routed    down       up              N/A         N/A
      Ethernet7                7      25G   9100    N/A   twentyfiveGigE0/7           routed    down       up              N/A         N/A
      Ethernet8                8      25G   9100    N/A   twentyfiveGigE0/8           routed    down       up              N/A         N/A
      Ethernet9               13      25G   9100    N/A   twentyfiveGigE0/9           routed    down       up              N/A         N/A
     Ethernet10               14      25G   9100    N/A  twentyfiveGigE0/10           routed    down       up              N/A         N/A
     Ethernet11               15      25G   9100    N/A  twentyfiveGigE0/11  PortChannel0011      up       up   SFP/SFP+/SFP28         N/A
     Ethernet12               16      25G   9100    N/A  twentyfiveGigE0/12           routed    down       up              N/A         N/A
     Ethernet13               21      25G   9100    N/A  twentyfiveGigE0/13  PortChannel0013      up       up   SFP/SFP+/SFP28         N/A
     Ethernet14               22      25G   9100    N/A  twentyfiveGigE0/14           routed    down       up              N/A         N/A
     Ethernet15               23      25G   9100    N/A  twentyfiveGigE0/15           routed    down       up              N/A         N/A
     Ethernet16               24      25G   9100    N/A  twentyfiveGigE0/16           routed    down       up              N/A         N/A
     Ethernet17               29      25G   9100    N/A  twentyfiveGigE0/17           routed    down       up              N/A         N/A
     Ethernet18               30      25G   9100    N/A  twentyfiveGigE0/18           routed    down       up              N/A         N/A
     Ethernet19               31      25G   9100    N/A  twentyfiveGigE0/19           routed    down       up              N/A         N/A
     Ethernet20               32      25G   9100    N/A  twentyfiveGigE0/20           routed    down       up              N/A         N/A
     Ethernet21               33      25G   9100    N/A  twentyfiveGigE0/21           routed    down       up              N/A         N/A
     Ethernet22               34      25G   9100    N/A  twentyfiveGigE0/22           routed    down       up              N/A         N/A
     Ethernet23               35      25G   9100    N/A  twentyfiveGigE0/23           routed    down       up              N/A         N/A
     Ethernet24               36      25G   9100    N/A  twentyfiveGigE0/24           routed    down       up              N/A         N/A
     Ethernet25               41      25G   9100    N/A  twentyfiveGigE0/25           routed    down       up              N/A         N/A
     Ethernet26               42      25G   9100    N/A  twentyfiveGigE0/26           routed    down       up              N/A         N/A
     Ethernet27               43      25G   9100    N/A  twentyfiveGigE0/27           routed    down       up              N/A         N/A
     Ethernet28               44      25G   9100    N/A  twentyfiveGigE0/28           routed    down       up              N/A         N/A
     Ethernet29               49      25G   9100    N/A  twentyfiveGigE0/29           routed    down       up              N/A         N/A
     Ethernet30               50      25G   9100    N/A  twentyfiveGigE0/30           routed    down       up              N/A         N/A
     Ethernet31               51      25G   9100    N/A  twentyfiveGigE0/31           routed    down       up              N/A         N/A
     Ethernet32               52      25G   9100    N/A  twentyfiveGigE0/32           routed    down       up              N/A         N/A
     Ethernet33               57      25G   9100    N/A  twentyfiveGigE0/33           routed    down       up              N/A         N/A
     Ethernet34               58      25G   9100    N/A  twentyfiveGigE0/34           routed    down       up              N/A         N/A
     Ethernet35               59      25G   9100    N/A  twentyfiveGigE0/35           routed    down       up              N/A         N/A
     Ethernet36               60      25G   9100    N/A  twentyfiveGigE0/36           routed    down       up              N/A         N/A
     Ethernet37               61      25G   9100    N/A  twentyfiveGigE0/37           routed    down       up              N/A         N/A
     Ethernet38               62      25G   9100    N/A  twentyfiveGigE0/38           routed    down       up              N/A         N/A
     Ethernet39               63      25G   9100    N/A  twentyfiveGigE0/39           routed    down       up              N/A         N/A
     Ethernet40               64      25G   9100    N/A  twentyfiveGigE0/40           routed    down       up              N/A         N/A
     Ethernet41               65      25G   9100    N/A  twentyfiveGigE0/41           routed    down       up              N/A         N/A
     Ethernet42               66      25G   9100    N/A  twentyfiveGigE0/42           routed    down       up              N/A         N/A
     Ethernet43               67      25G   9100    N/A  twentyfiveGigE0/43           routed    down       up              N/A         N/A
     Ethernet44               68      25G   9100    N/A  twentyfiveGigE0/44           routed    down       up              N/A         N/A
     Ethernet45               69      25G   9100    N/A  twentyfiveGigE0/45           routed    down       up              N/A         N/A
     Ethernet46               70      25G   9100    N/A  twentyfiveGigE0/46           routed    down       up              N/A         N/A
     Ethernet47               71      25G   9100    N/A  twentyfiveGigE0/47           routed    down       up              N/A         N/A
     Ethernet48               72      25G   9100    N/A  twentyfiveGigE0/48           routed    down       up              N/A         N/A
     Ethernet49      85,86,87,88     100G   9100    N/A      hundredGigE0/1           routed      up       up  QSFP28 or later          on
     Ethernet50      77,78,79,80     100G   9100    N/A      hundredGigE0/2           routed    down       up              N/A         N/A
     Ethernet51     97,98,99,100     100G   9100    N/A      hundredGigE0/3  PortChannel0001    down     down  QSFP28 or later         N/A
     Ethernet52      93,94,95,96     100G   9100    N/A      hundredGigE0/4           routed    down       up              N/A         N/A
     Ethernet53  113,114,115,116     100G   9100    N/A      hundredGigE0/5           routed    down       up              N/A         N/A
     Ethernet54  105,106,107,108     100G   9100    N/A      hundredGigE0/6           routed    down       up              N/A         N/A
     Ethernet55  121,122,123,124     100G   9100    N/A      hundredGigE0/7           routed      up       up  QSFP28 or later         N/A
     Ethernet56  125,126,127,128     100G   9100    N/A      hundredGigE0/8           routed    dow n       up              N/A         N/A
PortChannel0001              N/A     100G   9100    N/A                 N/A            trunk    down       up              N/A         N/A
PortChannel0011              N/A      25G           N/A                 N/A           routed     N/A      N/A              N/A         N/A
PortChannel0013              N/A      25G   9100    N/A                 N/A           routed      up       up              N/A         N/A
root@sonic:/home/admin# show interfaces portchannel 
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
       S - selected, D - deselected, * - not synced
  No.  Team Dev         Protocol     Ports
-----  ---------------  -----------  -------------
 0001  PortChannel0001  LACP(A)(Dw)  Ethernet51(D)
 0013  PortChannel0013  LACP(A)(Up)  Ethernet13(S)
root@sonic:/home/admin# sudo tail -n 20 /var/log/syslog
Sep 24 16:32:17.705410 sonic ERR monit[647]: 'dialout_client' process is not running
Sep 24 16:32:17.717758 sonic ERR monit[647]: 'sflowmgrd' process is not running
Sep 24 16:33:14.238997 sonic INFO lldp#lldpd[32]: removal request for address of fe80::5a69:6cff:fefb:2122%22, but no knowledge of it
Sep 24 16:33:14.238997 sonic WARNING lldp#lldpd[32]: error while receiving frame on Ethernet11 (retry: 0): Network is down
Sep 24 16:33:14.239235 sonic INFO lldp#supervisord: lldpd 2020-09-24T16:33:14 [INFO/netlink] removal request for address of fe80::5a69:6cff:fefb:2122%22, but no knowledge of it
Sep 24 16:33:14.239251 sonic INFO lldp#supervisord: lldpd 2020-09-24T16:33:14 [WARN/interfaces] error while receiving frame on Ethernet11 (retry: 0): Network is down
Sep 24 16:33:14.240722 sonic INFO kernel: [  962.705782] PortChannel0011: Port device Ethernet11 removed
Sep 24 16:33:14.243062 sonic NOTICE swss#orchagent: :- removeLagMember: Remove member Ethernet11 from LAG PortChannel0011 lid:20000000009b7 lmid:1b0000000009ba
Sep 24 16:33:14.245008 sonic NOTICE swss#orchagent: :- setRouterIntfsMtu: Set router interface PortChannel0011 MTU to 9100
Sep 24 16:33:14.262590 sonic INFO lldp#lldpd[32]: removal request for address of fe80::5a69:6cff:fefb:2122%10, but no knowledge of it
Sep 24 16:33:14.262735 sonic INFO lldp#supervisord: lldpd 2020-09-24T16:33:14 [INFO/netlink] removal request for address of fe80::5a69:6cff:fefb:2122%10, but no knowledge of it
Sep 24 16:33:14.263567 sonic INFO lldp#lldpd[32]: removal request for address of 11.1.1.1%10, but no knowledge of it
Sep 24 16:33:14.263723 sonic INFO lldp#supervisord: lldpd 2020-09-24T16:33:14 [INFO/netlink] removal request for address of 11.1.1.1%10, but no knowledge of it
Sep 24 16:33:14.268902 sonic NOTICE swss#orchagent: message repeated 4 times: [ :- setRouterIntfsMtu: Set router interface PortChannel0011 MTU to 9100]
Sep 24 16:33:14.268902 sonic ERR swss#orchagent: :- removeLag: Failed to remove ref count 1 LAG PortChannel0011
Sep 24 16:33:14.338490 sonic NOTICE teamd#teammgrd: :- removeLag: Stop port channel PortChannel0011
Sep 24 16:33:17.744411 sonic ERR monit[647]: 'telemetry' process is not running
Sep 24 16:33:17.756629 sonic ERR monit[647]: 'dialout_client' process is not running
Sep 24 16:33:17.767726 sonic ERR monit[647]: 'sflowmgrd' process is not running
Sep 24 16:33:21.729667 sonic INFO teamd#supervisord 2020-09-24 16:33:14,285 INFO reaped unknown pid 33
root@sonic:/home/admin# show ip interfaces 
Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Ethernet49                 10.0.0.96/31         up/up         ARISTA21T0      10.10.49.10
                           10.10.49.1/24
Ethernet55                 55.1.1.0/31          up/up         master          55.1.1.1
Loopback0                  10.1.0.1/32          up/up         N/A             N/A
PortChannel0013            13.1.1.1/31          up/up         N/A             N/A
Vlan2                      12.1.1.1/16          up/down       N/A             N/A
Vlan3                      3.3.3.1/16           up/down       N/A             N/A
docker0                    240.127.1.1/24       up/down       N/A             N/A
eth0                       172.28.58.174/24     up/up         N/A             N/A
lo                         127.0.0.1/8          up/up         N/A             N/A
root@sonic:/home/admin# 

Describe the results you expected:
show interfaces status Corresponding portchannel is deleted when configdelete the portchannel

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```

root@sonic:/home/admin# show version

SONiC Software Version: SONiC.HEAD.182-75068f3a
Distribution: Debian 9.13
Kernel: 4.9.0-11-2-amd64
Build commit: 75068f3
Build date: Tue Sep 15 20:56:19 UTC 2020
Built by: johnar@jenkins-worker-7

Platform: x86_64-ruijie_b6510-48vs8cq-r0
HwSKU: B6510-48VS8CQ
ASIC: broadcom
Serial Number: G1W10072
Uptime: 15:32:00 up 8 min, 1 user, load average: 0.56, 2.74, 1.68

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm HEAD.182-75068f3a e0a8a1e70567 436MB
docker-syncd-brcm latest e0a8a1e70567 436MB
docker-platform-monitor HEAD.182-75068f3a 7a0b4c32e32a 357MB
docker-platform-monitor latest 7a0b4c32e32a 357MB
docker-router-advertiser HEAD.182-75068f3a 5b68a457b247 289MB
docker-router-advertiser latest 5b68a457b247 289MB
docker-fpm-frr HEAD.182-75068f3a d68563ab47ff 334MB
docker-fpm-frr latest d68563ab47ff 334MB
docker-sflow HEAD.182-75068f3a efaf9fdec8fb 314MB
docker-sflow latest efaf9fdec8fb 314MB
docker-lldp-sv2 HEAD.182-75068f3a eb734d856002 311MB
docker-lldp-sv2 latest eb734d856002 311MB
docker-orchagent HEAD.182-75068f3a 31ab84cddd9b 333MB
docker-orchagent latest 31ab84cddd9b 333MB
docker-dhcp-relay HEAD.182-75068f3a 0416f768a8aa 299MB
docker-dhcp-relay latest 0416f768a8aa 299MB
docker-database HEAD.182-75068f3a 6be94df5546f 289MB
docker-database latest 6be94df5546f 289MB
docker-snmp-sv2 HEAD.182-75068f3a 7f94958e28db 347MB
docker-snmp-sv2 latest 7f94958e28db 347MB
docker-teamd HEAD.182-75068f3a d1db1b60ffec 314MB
docker-teamd latest d1db1b60ffec 314MB
docker-nat HEAD.182-75068f3a a08bed4749c5 316MB
docker-nat latest a08bed4749c5 316MB
docker-sonic-mgmt-framework HEAD.182-75068f3a 4f9ba411a805 430MB
docker-sonic-mgmt-framework latest 4f9ba411a805 430MB
docker-sonic-telemetry HEAD.182-75068f3a ad6b2e2569f2 353MB
docker-sonic-telemetry latest ad6b2e2569f2 353MB
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
@anshuv-mfst
Copy link

Please re-test with this change
sonic-net/sonic-utilities#1062

@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 6, 2020

fixed, close this.

@tim-rj tim-rj closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants