[NETVIRT-1223] Stale flows not removed for many data stores and OVS flows/Groups Created: 23/Apr/18  Updated: 21/Aug/18  Resolved: 30/Jul/18

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

Type: Bug Priority: High
Reporter: RajaRajan Manickam Assignee: nithi thomas
Resolution: Done Votes: 0
Labels: VPNV6
Remaining Estimate: 0 minutes
Time Spent: 3 days
Original Estimate: Not Specified

Attachments: File csi_output_2018_05_10.06_44_13.tar.gz     HTML File test    
Priority: High

 Description   

Stale flows not removed for many data stores and OVS flows/Groups

 
prerequisite:
 
 1. Collect Dump-flows and Dump-groups before starting the test on all compute nodes.

     Flows: sudo ovs-ofctl -OOpenflow13 dump-flows br-int

    Groups: sudo ovs-ofctl -OOpenflow13 dump-groups br-int

 

*+Security Group Configuration(X is CUSTM_GROUP): --> Below one is simple
+*

openstack security group create X
openstack security group rule create X --egress --dst-port 1:65535 --protocol tcp
openstack security group rule create X --egress --dst-port 1:65535 --protocol udp
openstack security group rule create X --egress --protocol icmp
openstack security group rule create X --ethertype IPv6 --egress --dst-port 1:65535 --protocol tcp
openstack security group rule create X --ethertype IPv6 --egress --dst-port 1:65535 --protocol udp
openstack security group rule create X --ethertype IPv6 --egress --protocol icmp
openstack security group rule create X --ingress --dst-port 1:65535 --protocol tcp
openstack security group rule create X --ingress --dst-port 1:65535 --protocol udp
openstack security group rule create X --ingress --protocol icmp
openstack security group rule create X --ethertype IPv6 --ingress --dst-port 1:65535 --protocol tcp
openstack security group rule create X --ethertype IPv6 --ingress --dst-port 1:65535 --protocol udp
openstack security group rule create X --ethertype IPv6 --ingress --protocol icmp
 

Steps:

  1. Create  Network1 with each Subnet(ipv4 and IPv6)and boot VM.
  2. Create  Network2 with each Subnet(ipv4 and IPv6)and boot VM.
  3. Create Router
  4. Associate Subnet to it.  --> Check FIB entries Observed
  5. Dissociate subnet from Router --> Check FIB entries removed.
  6. Repeat associate and dissociate multiple time(5 times) and validate data path
  7. Delete all network,port,subnet, Router and check flows and data stores.

Verification has to be done following points.

      1. All Config Data stores.

      2. All Operational Data stores.

      3. FIB Entries.

      4. Dump-flows. – > Verify with Dump-flows which was taken before testing

      5.Dump-groups.-> . – > Verify with Dump-Groups which was taken before testing

 

Commands Used:

neutron router-create R1

neutron net-create mynet1
neutron subnet-create mynet1 10.1.1.0/24 --enable-dhcp --name net1-snet1
neutron port-create mynet1 --name myport11 --security-group=CUSTM_SGP
neutron port-create mynet1 --name myport21 --security-group=CUSTM_SGP
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport11' | awk '{print $2}') myhost11 --availability-zone nova:compute-0-4.domain.tld
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport21' | awk '{print $2}') myhost21 --availability-zone nova:compute-0-5.domain.tld

neutron subnet-create mynet1 2001:db8:1111::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --name net1-snet2
neutron router-create R1
neutron router-interface-add R1 net1-snet2
neutron port-create mynet1 --name myport12 --security-group=CUSTM_SGP
neutron port-create mynet1 --name myport22 --security-group=CUSTM_SGP
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport12' | awk '{print $2}') myhost12 --availability-zone nova:compute-0-4.domain.tld
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport22' | awk '{print $2}') myhost22 --availability-zone nova:compute-0-5.domain.tld

neutron net-create mynet2
neutron subnet-create mynet2 10.1.2.0/24 --enable-dhcp --name net2-snet1
neutron port-create mynet1 --name myport13 --security-group=CUSTM_SGP
neutron port-create mynet1 --name myport23 --security-group=CUSTM_SGP
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport13' | awk '{print $2}') myhost13 --availability-zone nova:compute-0-4.domain.tld
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport23' | awk '{print $2}') myhost23 --availability-zone nova:compute-0-5.domain.tld

neutron subnet-create mynet2 2001:d58:2222::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --name net2-snet2
neutron router-interface-add R2 net2-snet2
neutron port-create mynet1 --name myport14 --security-group=CUSTM_SGP
neutron port-create mynet1 --name myport24 --security-group=CUSTM_SGP
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport14' | awk '{print $2}') myhost14 --availability-zone nova:compute-0-4.domain.tld
nova boot --image cirros --flavor myhuge --nic port-id=$(neutron port-list | grep 'myport24' | awk '{print $2}') myhost24 --availability-zone nova:compute-0-5.domain.tld



 Comments   
Comment by nithi thomas [ 31/May/18 ]

This defect is fixed as part of below gerrit link for NETVIRT-1235

https://git.opendaylight.org/gerrit/#/c/71563/

NETVIRT-1223 has been verified with the fix given as part of the above gerrit link. The  issue is not seen and all the stale data-stores and data-flows are gettig deleted after testing with the fix.

              This  issue can be verified once the above gerrit link is merged.

Comment by RajaRajan Manickam [ 19/Jun/18 ]

Reproducible

Comment by nithi thomas [ 20/Jun/18 ]

Hi Rajarajan,

    This defect is duplicate of NETVIRT-1235

This defect is fixed as part of below gerrit link for NETVIRT-1235 and it is merged on june 15 

https://git.opendaylight.org/gerrit/#/c/71563/

Could you please confirm whether the issue is verified in the build with the above fix merged.

 

Regards

Nithi

Comment by RajaRajan Manickam [ 20/Jun/18 ]

Nithi,

  NETVIRT-1235 is duplicate of  NETVIRT-1223. Till now merge didnt happen not downstream.

  Will confirm the same once it is verified in downstream.

Comment by RajaRajan Manickam [ 03/Jul/18 ]

Reproducible with latest build.

Comment by nithi thomas [ 20/Jul/18 ]

The fix is merged into oxygen branch , awaiting for merge in flourine. 

Will resolve  the defect once merged in fluorine.

Comment by nithi thomas [ 30/Jul/18 ]

Fix is merged into fluorine.

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