[NETVIRT-1357] Configured Subnet IPv4/IPv6 Address are available in Flows and FIB even after deletion of VM Created: 03/Jul/18  Updated: 24/Jul/18  Resolved: 24/Jul/18

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

Type: Bug Priority: Low
Reporter: Saravanakumar s Assignee: Somashekar B
Resolution: Cannot Reproduce Votes: 0
Labels: VPNV6
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Openstack Pike and ODL Flourine 


Priority: Lowest

 Description   

Note: This is part of NETVIRT-1213 Project Development and this was tested on a private build.

Configured Subnet IPv4/IPv6 Address are available in Flows and FIB even after deletion of VM

Steps to reproduce

1) configure two VM with different subnet IPv4/IPv6 Address(Via DHCP)

2) configure ipv4/ipv6 subnet address on VM1 and verify traffic from VM2(traffic was working)

3) Delete the VMs

 

Logs

stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21,
 cookie=0x8000003, duration=18895.602s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30d40/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe47:129e actions=group:150024
 cookie=0x8000003, duration=18889.579s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30d40/0xfffffe,ipv6_dst=2001:db5:0:3:f816:3eff:fed4:99ce actions=group:150027
 cookie=0x8000003, duration=1515.487s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:3:f816:3eff:fe83:5350 actions=group:150053
 cookie=0x8000003, duration=1515.487s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe10:951a actions=group:150049
 cookie=0x8000003, duration=850.882s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2::1212 actions=group:150058
 cookie=0x8000003, duration=849.470s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe89:b20d actions=group:150058
 cookie=0x8000003, duration=797.167s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe61:355b actions=set_field:0x186fd->tun_id,set_field:fa:16:3e:61:35:5b->eth_dst,load:0x2000->NXM_NX_REG6[],resubmit(,220)
 cookie=0x8000003, duration=18193.148s, table=21, n_packets=0, n_bytes=0, priority=138,icmp6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2::1,icmp_type=128,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:29:21:03>eth_src,move:NXM_NX_IPV6_SRC[]>NXM_NX_IPV6_DST[],set_field:2001:db5:0:2::1>ipv6_src,set_field:129->icmpv6_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
 cookie=0x8000003, duration=18185.157s, table=21, n_packets=0, n_bytes=0, priority=138,icmp6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:3::1,icmp_type=128,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:f0:03:f0>eth_src,move:NXM_NX_IPV6_SRC[]>NXM_NX_IPV6_DST[],set_field:2001:db5:0:3::1>ipv6_src,set_field:129->icmpv6_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
 cookie=0x8000003, duration=18193.124s, table=21, n_packets=131, n_bytes=11266, priority=74,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2::/64 actions=write_metadata:0x138c030dc2/0xfffffffffe,goto_table:22
 cookie=0x8000003, duration=18193.123s, table=21, n_packets=0, n_bytes=0, priority=74,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:3::/64 actions=write_metadata:0x138d030dc2/0xfffffffffe,goto_table:22
 cookie=0x8000003, duration=18181.117s, table=21, n_packets=1, n_bytes=98, priority=42,icmp,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.1,icmp_type=8,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:f5:30:14>eth_src,move:NXM_OF_IP_SRC[]>NXM_OF_IP_DST[],set_field:30.1.1.1>ip_src,set_field:0->icmp_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
 cookie=0x8000003, duration=18173.141s, table=21, n_packets=0, n_bytes=0, priority=42,icmp,metadata=0x30dc2/0xfffffe,nw_dst=40.1.1.1,icmp_type=8,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:0d:ce:93>eth_src,move:NXM_OF_IP_SRC[]>NXM_OF_IP_DST[],set_field:40.1.1.1>ip_src,set_field:0->icmp_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
 cookie=0x8000003, duration=1515.487s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=40.1.1.3 actions=group:150052
 cookie=0x8000003, duration=1515.487s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.2 actions=group:150048
 cookie=0x8000003, duration=850.882s, table=21, n_packets=1, n_bytes=98, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.9 actions=group:150059
 cookie=0x8000003, duration=850.473s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.10 actions=group:150058
 cookie=0x8000003, duration=797.167s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.8 actions=set_field:0x186fc->tun_id,set_field:fa:16:3e:61:35:5b->eth_dst,load:0x2000->NXM_NX_REG6[],resubmit(,220)
 cookie=0x8000003, duration=18193.123s, table=21, n_packets=0, n_bytes=0, priority=34,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.0/24 actions=write_metadata:0x138c030dc2/0xfffffffffe,goto_table:22
 cookie=0x8000003, duration=18193.123s, table=21, n_packets=0, n_bytes=0, priority=34,ip,metadata=0x30dc2/0xfffffe,nw_dst=40.1.1.0/24 actions=write_metadata:0x138d030dc2/0xfffffffffe,goto_table:22
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep 1212
 cookie=0x8000003, duration=877.178s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2::1212 actions=group:150058
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep 2001:db5:0:2:f816:3eff:fe89:b20d
 cookie=0x8000003, duration=930.287s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe89:b20d actions=group:150058
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep 2001:db5:0:2:f816:3eff:fe89:b20d
 cookie=0x8000003, duration=933.146s, table=21, n_packets=0, n_bytes=0, priority=138,ipv6,metadata=0x30dc2/0xfffffe,ipv6_dst=2001:db5:0:2:f816:3eff:fe89:b20d actions=group:150058
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep 30.1.1.10
 cookie=0x8000003, duration=957.304s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.10 actions=group:150058
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ sudo ovs-ofctl -OOpenflow13 dump-flows br-int | grep table=21, | grep 30.1.1.9
 cookie=0x8000003, duration=961.519s, table=21, n_packets=1, n_bytes=98, priority=42,ip,metadata=0x30dc2/0xfffffe,nw_dst=30.1.1.9 actions=group:150059
stack@openstack1:~$
stack@openstack1:~$
stack@openstack1:~$ virsh list
 Id    Name                           State
----------------------------------------------------
 147   instance-0000007c              running

stack@openstack1:~$ virsh console 147
Connected to domain instance-0000007c
Escape character is ^]

$
$
$ ifconfig
eth0      Link encap:Ethernet  HWaddr FA:16:3E:89:B2:0D
          inet addr:30.1.1.9  Bcast:30.1.1.255  Mask:255.255.255.0
          inet6 addr: 2001:db5:0:2:f816:3eff:fe89:b20d/64 Scope:Global
          inet6 addr: fe80::f816:3eff:fe89:b20d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1
          RX packets:267 errors:0 dropped:165 overruns:0 frame:0
          TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30247 (29.5 KiB)  TX bytes:9979 (9.7 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

$ ip -6 route
2001:db5:0:2::/64 dev eth0  metric 256  expires 0sec
fe80::/64 dev eth0  metric 256
default via fe80::f816:3eff:fe29:2103 dev eth0  metric 1024  expires 0sec
unreachable default dev lo  metric -1  error -101
ff00::/8 dev eth0  metric 256
unreachable default dev lo  metric -1  error -101
$
$
$
$ ip route
default via 30.1.1.1 dev eth0
30.1.1.0/24 dev eth0  src 30.1.1.9
169.254.169.254 via 30.1.1.2 dev eth0
$
$
$
stack@openstack1:~$

 



 Comments   
Comment by Saravanakumar s [ 03/Jul/18 ]

This Bug is part of NETVIRT-1213 Testing, Tested on a private build

Comment by Somashekar B [ 24/Jul/18 ]

Not able to reproduce the issue.

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