Gateway_less_Fwd: Leaked routes were not getting removed from default routing instance when IP-Fabric provider network is deleted from VN
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Medium
|
Naveen N |
Bug Description
Leaked routes were not getting removed from default routing instance when IP-Fabric provider network is deleted from VN.
Please see the log below:
root@nodek11:~# vif --list
Vrouter Interface Table
Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3, L2=Layer 2
D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
Mnp=No MAC Proxy, Dpdk=DPDK PMD Interface, Rfl=Receive Filtering Offload, Mon=Interface is Monitored
Uuf=Unknown Unicast Flood, Vof=VLAN insert/strip offload, Df=Drop New Flows, L=MAC Learning Enabled
Proxy=MAC Requests Proxied Always, Er=Etree Root
vif0/0 OS: em1 (Speed 1000, Duplex 1)
Vrf:0 Flags:L3L2VpEr QOS:-1 Ref:6
RX packets:125658 bytes:13000624 errors:0
TX packets:38443 bytes:289801746 errors:0
vif0/1 OS: vhost0
Vrf:0 Flags:PL3DEr QOS:-1 Ref:7
RX packets:32295 bytes:289148898 errors:0
TX packets:126460 bytes:13024062 errors:0
Drops:1
vif0/2 OS: pkt0
RX packets:3869 bytes:539528 errors:0
TX packets:70942 bytes:7505785 errors:0
Drops:0
vif0/3 OS: tapa767c4dd-5d
Vrf:0 Flags:PL3L2DProxyEr QOS:-1 Ref:5 <== After configuring IP-Fabric provider network
RX packets:12190 bytes:1206352 errors:0
TX packets:4329 bytes:424556 errors:0
vif0/4350 OS: pkt3
RX packets:259 bytes:25382 errors:0
TX packets:259 bytes:21756 errors:0
Drops:0
vif0/4351 OS: pkt1
RX packets:0 bytes:0 errors:0
TX packets:0 bytes:0 errors:0
Drops:0
root@nodek11:~#
root@nodek11:~# rt --dump 0 | grep 10.10.10.3
10.10.10.3/32 32 PT - 32 -
10.10.10.10/32 0 T - 14 -
10.10.10.30/32 0 T - 14 -
10.10.10.31/32 0 T - 14 -
10.10.10.32/32 0 T - 14 -
10.10.10.33/32 0 T - 14 -
10.10.10.34/32 0 T - 14 -
10.10.10.35/32 0 T - 14 -
10.10.10.36/32 0 T - 14 -
10.10.10.37/32 0 T - 14 -
10.10.10.38/32 0 T - 14 -
10.10.10.39/32 0 T - 14 -
root@nodek11:~# rt --dump 0 | grep 10.10.10.4
10.10.10.4/32 32 PT - 21 0:25:90:
10.10.10.40/32 0 T - 14 -
10.10.10.41/32 0 T - 14 -
10.10.10.42/32 0 T - 14 -
10.10.10.43/32 0 T - 14 -
10.10.10.44/32 0 T - 14 -
10.10.10.45/32 0 T - 14 -
10.10.10.46/32 0 T - 14 -
10.10.10.47/32 0 T - 14 -
10.10.10.48/32 0 T - 14 -
10.10.10.49/32 0 T - 14 -
root@nodek11:~#
-------
Now, deleting IP-fabric provider network
-------
>>> left_vn.
>>> vnc_lib.
>>> pprint(
{'_address_
'_display_name': u'left_vn',
'_ecmp_
'_export_
'_flood_
'_id_perms': permissions = owner = admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 836979282286203
'_import_
'_is_shared': False,
'_layer2_
'_mac_aging_time': 300,
'_mac_
'_multi_
'_original_
'_pbb_
'_pbb_
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = 259f77d728324a0
'_port_
'_router_
'_server_conn': <vnc_api.
'_type': 'virtual-network',
'_uuid': u'74277a3a-
'_virtual_
'_virtual_
'fq_name': [u'default-domain', u'admin', u'left_vn'],
'name': u'left_vn',
'network_
'parent_type': u'project',
'parent_uuid': u'259f77d7-
'virtual_
>>>
root@nodek11:~# vif --get 3
Vrouter Interface Table
Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3, L2=Layer 2
D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
Mnp=No MAC Proxy, Dpdk=DPDK PMD Interface, Rfl=Receive Filtering Offload, Mon=Interface is Monitored
Uuf=Unknown Unicast Flood, Vof=VLAN insert/strip offload, Df=Drop New Flows, L=MAC Learning Enabled
Proxy=MAC Requests Proxied Always, Er=Etree Root
vif0/3 OS: tapa767c4dd-5d
Vrf:2 Flags:PL3L2DEr QOS:-1 Ref:5 <== Correct
RX packets:13649 bytes:1352085 errors:0
TX packets:5450 bytes:531709 errors:0
root@nodek11:~# rt --dump 0 | grep 10.10.10.3 <=== But, earlier leaked routes still present in IP-Fabric VRF
10.10.10.3/32 32 PT - 32 -
10.10.10.10/32 0 T - 14 -
10.10.10.30/32 0 T - 14 -
10.10.10.31/32 0 T - 14 -
10.10.10.32/32 0 T - 14 -
10.10.10.33/32 0 T - 14 -
10.10.10.34/32 0 T - 14 -
10.10.10.35/32 0 T - 14 -
10.10.10.36/32 0 T - 14 -
10.10.10.37/32 0 T - 14 -
10.10.10.38/32 0 T - 14 -
10.10.10.39/32 0 T - 14 -
root@nodek11:~# rt --dump 0 | grep 10.10.10.4
10.10.10.4/32 32 PT - 21 0:25:90:
10.10.10.40/32 0 T - 14 -
10.10.10.41/32 0 T - 14 -
10.10.10.42/32 0 T - 14 -
10.10.10.43/32 0 T - 14 -
10.10.10.44/32 0 T - 14 -
10.10.10.45/32 0 T - 14 -
10.10.10.46/32 0 T - 14 -
10.10.10.47/32 0 T - 14 -
10.10.10.48/32 0 T - 14 -
10.10.10.49/32 0 T - 14 -
root@nodek11:~# ping 10.10.10.4
PING 10.10.10.4 (10.10.10.4) 56(84) bytes of data.
^C
--- 10.10.10.4 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
root@nodek11:~# flow --match 10.10.10.4
Flow table(size 80609280, entries 629760)
Entries: Created 413 Added 413 Deleted 676 Changed 691 Processed 413 Used Overflow entries 0
(Created Flows/CPU: 24 23 15 29 25 38 18 26 7 14 10 7 1 4 3 7 5 17 46 4 26 7 20 26 0 3 0 4 1 1 0 2)(oflows 0)
Action:F=Forward, D=Drop N=NAT(S=SNAT, D=DNAT, Ps=SPAT, Pd=DPAT, L=Link Local Port)
Other:
Flags:E=Evicted, Ec=Evict Candidate, N=New Flow, M=Modified Dm=Delete Marked
TCP(r=reverse)
Listing flows matching ([10.10.10.4]:*)
Index Source:
-------
354588<=>471904 10.204.216.231:7073 1 (0)
(Gen: 1, K(nh):5, Action:F, Flags:, QOS:-1, S(nh):10, Stats:1/84, SPort 59146,
TTL 0, Sinfo 0.0.0.0)
471904<=>354588 10.10.10.4:7073 1 (0)
(Gen: 2, K(nh):5, Action:F, Flags:, QOS:-1, S(nh):21, Stats:0/0, SPort 64588,
TTL 0, Sinfo 0.0.0.0)
root@nodek11:~#
Build Info
-----------
root@nodek11:~# contrail-version
Package Version Build-ID | Repo | Package Name
-------
contrail-lib 4.1.0.0-16 16
contrail-nodemgr 4.1.0.0-16 16
contrail-setup 4.1.0.0-16 16
contrail-utils 4.1.0.0-16 16
contrail-
contrail-
contrail-
contrail-
contrail-
nova-common 2:13.0.
nova-compute 2:13.0.
nova-compute-kvm 2:13.0.
nova-compute-
python-contrail 4.1.0.0-16 16
python-
python-
python-nova 2:13.0.
python-
root@nodek11:~#
root@nodek11:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
root@nodek11:~#
summary: |
- IP_Fabric_FWD: Leaked routes were not getting removed from default + Gateway_less_Fwd: Leaked routes were not getting removed from default routing instance when IP-Fabric provider network is deleted from VN |
information type: | Proprietary → Public |
Review in progress for https:/ /review. opencontrail. org/35262
Submitter: Naveen N (<email address hidden>)