[OVSDB-47] OVSDB Fails to install flows for the first VLAN based virtual network Created: 29/Jul/14  Updated: 19/Oct/17  Resolved: 24/Sep/14

Status: Resolved
Project: ovsdb
Component/s: Neutron
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Vishal Patil Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


Issue Links:
Duplicate
duplicates OVSDB-109 Vlan flows needs merging from traditi... Resolved
External issue ID: 1448

 Description   

Summary
-------
I am running OpenStack + ODL (for vlan based virtual networks) and have found
that ODL sometimes fails to install the correct flows when I create
the first VLAN based virtual network.

I am running ODL with OVSDB debug on and am attaching the log file for the same.

Setup


I am running a 4 node Openstack setup with 1 controller node, 2 compute nodes
and 1 ODL controller node. The OS for the nodes is as follows

Linux ctrl 3.13.10-200.fc20.x86_64 #1 SMP Mon Apr 14 20:34:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

OpenStack commands
------------------

. ./openrc admin admin

export IMAGE=cirros-0.3.1-x86_64-uec

neutron net-create vlan1 --tenant_id $(keystone tenant-list | grep '\sadmin' | awk '

{print $2}') --provider:network_type vlan --provider:segmentation_id 101 --provider:physical_network physnet1

neutron subnet-create vlan1 10.200.1.0/24 --name vlan1-subnet

nova boot --flavor m1.tiny --image $(nova image-list | grep $IMAGE'\s' | awk '{print $2}

') --nic net-id=$(neutron net-list | grep 'vlan1' | awk '

{print $2}') vlan-host1 --availability_zone=nova:cmp11

nova boot --flavor m1.tiny --image $(nova image-list | grep $IMAGE'\s' | awk '{print $2}

') --nic net-id=$(neutron net-list | grep 'vlan1' | awk '

{print $2}

') vlan-host2 --availability_zone=nova:cmp12



 Comments   
Comment by Vishal Patil [ 29/Jul/14 ]

Flows
------

[odl@ctrl devstack]$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=159.574s, table=0, n_packets=0, n_bytes=0, send_flow_rem in_port=2,dl_vlan=101 actions=goto_table:20
cookie=0x0, duration=159.651s, table=0, n_packets=12, n_bytes=864, send_flow_rem in_port=1,dl_src=fa:16:3e:9d:2e:27 actions=push_vlan:0x8100,set_field:101->vlan_vid,goto_table:10
cookie=0x0, duration=159.505s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=8192,in_port=1 actions=drop
cookie=0x0, duration=159.81s, table=0, n_packets=0, n_bytes=0, send_flow_rem dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=159.755s, table=10, n_packets=1, n_bytes=90, send_flow_rem priority=8192,dl_vlan=101 actions=output:2
cookie=0x0, duration=159.415s, table=10, n_packets=11, n_bytes=774, send_flow_rem priority=16384,dl_vlan=101,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:2,goto_table:20
cookie=0x0, duration=159.916s, table=10, n_packets=0, n_bytes=0, send_flow_rem dl_vlan=101,dl_dst=fa:16:3e:9d:2e:27 actions=goto_table:20
cookie=0x0, duration=158.977s, table=20, n_packets=0, n_bytes=0, send_flow_rem priority=8192,dl_vlan=101 actions=drop
cookie=0x0, duration=159.118s, table=20, n_packets=11, n_bytes=774, send_flow_rem priority=16384,dl_vlan=101,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=strip_vlan,output:1
cookie=0x0, duration=159.245s, table=20, n_packets=0, n_bytes=0, send_flow_rem dl_vlan=101,dl_dst=fa:16:3e:9d:2e:27 actions=strip_vlan,output:1

[odl@cmp1 devstack]$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=115.629s, table=0, n_packets=8, n_bytes=1112, send_flow_rem priority=8192,in_port=1 actions=drop
cookie=0x0, duration=115.018s, table=0, n_packets=0, n_bytes=0, send_flow_rem dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=115.383s, table=20, n_packets=0, n_bytes=0, send_flow_rem priority=8192,dl_vlan=101 actions=drop
cookie=0x0, duration=115.456s, table=20, n_packets=0, n_bytes=0, send_flow_rem priority=16384,dl_vlan=101,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=strip_vlan,output:1
cookie=0x0, duration=115.55s, table=20, n_packets=0, n_bytes=0, send_flow_rem dl_vlan=101,dl_dst=fa:16:3e:81:27:b7 actions=strip_vlan,output:1

odl@cmp2 devstack]$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=391.983s, table=0, n_packets=0, n_bytes=0, send_flow_rem dl_type=0x88cc actions=CONTROLLER:65535

Comment by Sam Hague [ 24/Sep/14 ]

https://bugs.opendaylight.org/show_bug.cgi?id=2013 has fixes that also fix the issues in the bug.

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