[NETVIRT-1079] Host Route:Do not add a static route to Ubuntu VM when nexthop IP is set to its own VM IP Created: 06/Feb/18  Updated: 05/Apr/18  Resolved: 28/Feb/18

Status: Verified
Project: netvirt
Component/s: None
Affects Version/s: Nitrogen
Fix Version/s: Oxygen

Type: Bug Priority: Medium
Reporter: Arunkumar Murukesan Assignee: Arun Sharma
Resolution: Done Votes: 1
Labels: netvirt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Priority: Normal

 Description   

Problem description:

A static route is getting configured to Ubuntu VM when nexthop IP is set to its own VM IP. Due to this extra route in VM, traffic loss seen when trying to ping between different subnets.

 

 

 



 Comments   
Comment by Arun Sharma [ 28/Feb/18 ]

Fixed by https://git.opendaylight.org/gerrit/68350

Comment by Arunkumar Murukesan [ 05/Apr/18 ]

Tested with build - karaf-0.8.0-20180309.023057-1679:
-----------------------------------------------------

openstack subnet show SUBNET1
--------------------------------------------------------------------------+

Field Value

--------------------------------------------------------------------------+

allocation_pools 10.10.10.2-10.10.10.254
cidr 10.10.10.0/24
created_at 2018-04-04T08:32:05Z
description  
dns_nameservers  
enable_dhcp True
gateway_ip 10.10.10.1
host_routes destination='10.20.20.0/24', gateway='10.10.10.7'
id 56e1d700-abc3-46cc-98e6-642b72fa0e76
ip_version 4
ipv6_address_mode None
ipv6_ra_mode None
name SUBNET1
network_id 9f6c07b0-97d3-4591-b4f6-0ce710777a99
project_id b3a69510790c4f6a9e3aaa1428263087
revision_number 6
segment_id None
service_types  
subnetpool_id None
tags  
updated_at 2018-04-04T09:26:50Z
use_default_subnet_pool None

--------------------------------------------------------------------------+
openstack subnet show SUBNET2
--------------------------------------------------------------------------+

Field Value

--------------------------------------------------------------------------+

allocation_pools 10.20.20.2-10.20.20.254
cidr 10.20.20.0/24
created_at 2018-04-04T08:46:45Z
description  
dns_nameservers  
enable_dhcp True
gateway_ip 10.20.20.1
host_routes destination='10.10.10.0/24', gateway='10.20.20.8'
id 847db728-46a6-4162-9e19-e953a5795e9d
ip_version 4
ipv6_address_mode None
ipv6_ra_mode None
name SUBNET2
network_id 0dae21a6-0185-4d82-8bbe-3d3745aa114d
project_id b3a69510790c4f6a9e3aaa1428263087
revision_number 1
segment_id None
service_types  
subnetpool_id None
tags  
updated_at 2018-04-04T09:07:44Z
use_default_subnet_pool None

--------------------------------------------------------------------------+
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether fa:16:3e:42:78:11 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.7/24 brd 10.10.10.255 scope global eth0
inet6 fe80::f816:3eff:fe42:7811/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether fa:16:3e:cf:2b:ba brd ff:ff:ff:ff:ff:ff
inet 10.20.20.8/24 brd 10.20.20.255 scope global eth1
inet6 fe80::f816:3eff:fecf:2bba/64 scope link
valid_lft forever preferred_lft forever
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.20.20.1 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.20.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

 

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