Symptom
Trunk interface has private vlan mapping configurations as below.
interface Port-channel7
switchport trunk allowed vlan 6,48
switchport private-vlan trunk allowed vlan 1,5,48
switchport private-vlan mapping trunk 5 6
switchport private-vlan mapping trunk 48 49
switchport mode private-vlan trunk promiscuous
end
!
vlan 5
private-vlan primary
private-vlan association 6
end
When we try to remove "switchport private-vlan mapping trunk 5 6" from port-channel interface after deleting vlan 5 from database, switch undergoes a crash.
Error message seen during crash:
%PM-3-INTERNALERROR: Port Manager Internal Software Error (vpd2->vd: ../switch/pm/pm_port.c: 876: pm_port_vp_avl_compare)
-Traceback= 1#2658c6db5c37a000fba2793f7f155189 :55737DDDC000+42A74EB :55737DDDC000+B6A257C :55737DDDC000+42A82DA :55737DDDC000+42C3549 :55737DDDC000+42C32F8 :55737DDDC000+42E3C0D :55737DDDC000+42E4A04 :55737DDDC000+9C9EAC0 :55737DDDC000+4280E4C :55737DDDC000+43180ED :55737DDDC000+43112F4 :55737DDDC000+79A5131 :55737DDDC000+79A29AE :55737DDDC000+60BC84E :55737DDDC000+79C1977
Conditions
Issue seen on 16.12.4 and 17.3.2.
Deletion of vlan from database before removing the mapping on port-channel.
Workaround
1) Remove the private vlan mapping from interfaces before deleting the vlan from database.
2) If the vlan has already been deleted, then remove the private vlan mapping command from physical interface first and then followed by port-channel interfaces.
3) Remove private vlan configurations such as "private-vlan primary" and "private-vlan association 6" from vlan 5, remove the mapping from port-channel interfaces and then delete the vlan from database.
Further Problem Description