[NETVIRT-304] no rules in table 26 for default route Created: 29/Nov/16  Updated: 15/Dec/16  Resolved: 15/Dec/16

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Carbon
Fix Version/s: None

Type: Bug
Reporter: zan cohen Assignee: Olga Schukin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
is duplicated by NETVIRT-295 Missing table 21 rule as part of ovs ... Resolved
is duplicated by NETVIRT-341 missing default route rule from T21 t... Resolved
External issue ID: 7260

 Description   

Setup
*****
Devstuck newton v2
Host1=controller+compute
Host2=compute

Description
************
2 vm's+different computes+L2:
vm_X=sg1
All Icmp - ingress&egress
Custom Tcp port 80 - Egress
vm_y=sg2
All Icmp - ingress&egress
Custom Tcp port 22 - ingress

**Try to wget from vm1 to external server(wget http://10.0.1.55)

Resaults
********
wget fail to connect to server(connection failed cause of timeout)

Defect
*******
it can be seen in pipe-line that there are no rules in table 26 for ip default route.

Table 21
*********
root@devstack-man21-zan:~# ovs-ofctl dump-flows -OOpenFlow13 br-int table=21

cookie=0x8000004, duration=72067.449s, table=21, n_packets=192, n_bytes=14208, priority=10,ip,metadata=0x222e0/0xfffffffe actions=goto_table:26

Table 26
*********
root@devstack-man21-zan:~# ovs-ofctl dump-flows -OOpenFlow13 br-int table=2

OFPST_FLOW reply (OF1.3) (xid=0x2):



 Comments   
Comment by zan cohen [ 29/Nov/16 ]

Logs:
\\10.0.1.216\pub\zan_cohen\Bugzila_7260

Comment by zan cohen [ 29/Nov/16 ]

vm1 ip=10.0.123.3,FIP=10.64.121.4

Comment by Olga Schukin [ 08/Dec/16 ]

From the karaf log:

2016-11-28 17:51:35,068 | ERROR | pool-47-thread-2 | InterfacemgrProvider | 308 - org.opendaylight.genius.interfacemanager-impl - 0.1.2.SNAPSHOT | Interface 47a55c35-4166-4f66-8f38-2c229251934d is not present
2016-11-28 17:51:35,068 | WARN | pool-47-thread-2 | ElanInterfaceManager | 325 - org.opendaylight.netvirt.elanmanager-impl - 0.3.2.SNAPSHOT | Interface 47a55c35-4166-4f66-8f38-2c229251934d is removed from Interface Oper DS due to port down
2016-11-28 17:51:37,151 | ERROR | pool-47-thread-2 | InterfaceManagerRpcService | 308 - org.opendaylight.genius.interfacemanager-impl - 0.1.2.SNAPSHOT | Retrieval of datapath id for the key

{32ed23f4-1a1c-4b04-b6f0-d5cd6e586596}

failed due to missing Interface-state
2016-11-28 17:51:37,152 | ERROR | pool-47-thread-2 | NatUtil | 326 - org.opendaylight.netvirt.natservice-impl - 0.3.2.SNAPSHOT | NAT Service : Could not retrieve DPN Id for interface 32ed23f4-1a1c-4b04-b6f0-d5cd6e586596
2016-11-28 17:51:37,152 | ERROR | pool-47-thread-2 | FloatingIPListener | 326 - org.opendaylight.netvirt.natservice-impl - 0.3.2.SNAPSHOT | NAT Service : No DPN for interface 32ed23f4-1a1c-4b04-b6f0-d5cd6e586596. NAT flow entries for ip mapping InternalToExternalPortMap{getExternalId=Uuid [_value=c3fa0138-bad9-4921-a151-c64d6c934007], getExternalIp=10.64.121.4, getInternalIp=10.0.123.3, augmentations={}} will not be installed

Comment by Olga Schukin [ 11/Dec/16 ]

The root cause is that the model of router gateway wasn't written to MDSAL due to the following null exception:
--------------------------------------------------
2016-11-28 17:00:12,479 | ERROR | pool-47-thread-1 | NeutronvpnNatManager | 321 - org.opendaylight.netvirt.neutronvpn-impl - 0.3.2.SNAPSHOT | Creation of extrouters failed for router fb2d63f1-4381-426a-8a1a-6d6cba67551a failed with null
--------------------------------------------------
config/odl-nat:ext-routers
{
"errors": {
"error": [

{ "error-message": "Request could not be completed because the relevant data model content does not exist ", "error-tag": "data-missing", "error-type": "application" }

]
}
}

Comment by Olga Schukin [ 13/Dec/16 ]

review https://git.opendaylight.org/gerrit/49280

Generated at Wed Feb 07 20:21:13 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.