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

Failed to delete LAG when it is a member of a vlan #5456

Open
tim-rj opened this issue Sep 24, 2020 · 3 comments · May be fixed by sonic-net/sonic-utilities#1220
Open

Failed to delete LAG when it is a member of a vlan #5456

tim-rj opened this issue Sep 24, 2020 · 3 comments · May be fixed by sonic-net/sonic-utilities#1220

Comments

@tim-rj
Copy link
Contributor

tim-rj commented Sep 24, 2020

Description

Cannot delete LAG correctly when it is a member of a vlan

Steps to reproduce the issue:

  1. config a portchannel and add it into vlan meber
  2. config delete the portchanel
admin@sonic:~$ sudo su
root@sonic:/home/admin# show vlan config 
Name      VID  Member           Mode
------  -----  ---------------  --------
Vlan2       2  PortChannel0001  untagged
Vlan3       3
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)
 0011  PortChannel0011  LACP(A)(Up)  Ethernet11(S)
 0013  PortChannel0013  LACP(A)(Up)  Ethernet13(S)
root@sonic:/home/admin# config portchannel del PortChannel0001
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
-----  ---------------  -----------  -------------
 0011  PortChannel0011  LACP(A)(Up)  Ethernet11(S)
 0013  PortChannel0013  LACP(A)(Up)  Ethernet13(S)
root@sonic:/home/admin# show vlan config                      
Name      VID  Member           Mode
------  -----  ---------------  --------
Vlan2       2  PortChannel0001  untagged
Vlan3       3
root@sonic:/home/admin# sudo tail -n 20 /var/log/syslog       
Sep 24 15:49:53.293301 sonic INFO systemd[1]: Started Serial Getty on ttyS0.
Sep 24 15:50:01.724103 sonic NOTICE swss#orchagent: :- flush: performing log rotate
Sep 24 15:50:24.059366 sonic INFO systemd[1]: Started Reboot cause determination service.
Sep 24 15:50:24.199169 sonic INFO process-reboot-cause: Starting up...
Sep 24 15:50:24.200012 sonic INFO process-reboot-cause: No reboot cause found from /proc/cmdline
Sep 24 15:50:26.164604 sonic INFO process-reboot-cause: No reboot cause found from platform api
Sep 24 15:50:26.165736 sonic INFO process-reboot-cause: /host/reboot-cause/reboot-cause.txt indicates the reboot cause: User issued 'reboot' command [User: admin, Time: Thu Sep 24 15:47:48 UTC 2020]
Sep 24 15:50:26.166623 sonic INFO process-reboot-cause: Previous reboot cause: User issued 'reboot' command [User: admin, Time: Thu Sep 24 15:47:48 UTC 2020]
Sep 24 15:50:41.367686 sonic NOTICE swss#orchagent: :- removeLagMember: Remove member Ethernet51 from LAG PortChannel0001 lid:20000000009b6 lmid:1b0000000009b9
Sep 24 15:50:41.367775 sonic NOTICE swss#orchagent: :- setHostIntfsStripTag: Set SAI_HOSTIF_VLAN_TAG_STRIP to host interface: Ethernet51
Sep 24 15:50:41.368420 sonic INFO kernel: [  107.801658] device Ethernet51 left promiscuous mode
Sep 24 15:50:41.368433 sonic INFO kernel: [  107.802169] PortChannel0001: Port device Ethernet51 removed
Sep 24 15:50:41.388439 sonic INFO kernel: [  107.822781] Bridge: port 2(PortChannel0001) entered disabled state
Sep 24 15:50:41.388461 sonic INFO kernel: [  107.822978] device PortChannel0001 left promiscuous mode
Sep 24 15:50:41.388464 sonic INFO kernel: [  107.822980] Bridge: port 2(PortChannel0001) entered disabled state
Sep 24 15:50:41.405165 sonic WARNING lldp#lldpd[31]: removal request for PortChannel0001, but no knowledge of it
Sep 24 15:50:41.405300 sonic INFO lldp#supervisord: lldpd 2020-09-24T15:50:41 [WARN/netlink] removal request for PortChannel0001, but no knowledge of it
Sep 24 15:50:41.409023 sonic ERR swss#orchagent: :- removeLag: Failed to remove LAG PortChannel0001, it is still in VLAN
Sep 24 15:50:41.465796 sonic NOTICE teamd#teammgrd: :- removeLag: Stop port channel PortChannel0001
Sep 24 15:50:42.904684 sonic INFO teamd#supervisord 2020-09-24 15:50:41,433 INFO reaped unknown pid 25
root@sonic:/home/admin# 

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


Sep 24 15:50:41.409023 sonic ERR swss#orchagent: :- removeLag: Failed to remove LAG PortChannel0001, it is still in VLAN

Describe the results you expected:
show ipv6 bgp summary can work when add a BGPV6 neighbor in the FRR module

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 change sonic-net/sonic-utilities#1062

@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 6, 2020

VLAN_MEMBER still exist portchannel, i will try to fix this!

@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 6, 2020

@anshuv-mfst help forward the new pr, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants