[OVSDB-200] Stale OF entries retained in br-int flow table on openstack-controller side,when VM resides on unstacked compute node Created: 01/Sep/15 Updated: 19/Oct/17 Resolved: 30/Sep/15 |
|
| Status: | Resolved |
| Project: | ovsdb |
| Component/s: | openstack.net-virt |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vasanthan Balasubramaniyan | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 4229 |
| Description |
|
Build#: Lithium-SR1 Build local.conf snip ODL custom.properites Environment Problem: 2.Unstacked the all 12 compute node 3.Check br-int OF entries on openstack controller side. Expected all OF entries needs to be removed either by OF flow expire mechanism or unstack event from compute node side. Current behaviour all 12 VM Instance OF entries retained untill openstack controller unstacked and restacked. sudo ovs-ofctl -O OpenFlow13 dump-flows br-int |
| Comments |
| Comment by Ravi Shankar S [ 01/Sep/15 ] |
|
The OVS cleanup is not initiated by the ODL controller. It is initiated by unstack.sh script. The script file /opt/stack/networking-odl/devstack/plugin.sh has a function stop_opendaylight-compute(). This function will try to delete all the ports and bridges of the OVS. This issue is not related to ODL and it should be related to openstack. |
| Comment by Vasanthan Balasubramaniyan [ 02/Sep/15 ] |
|
Attachment Controller_Node_br_int.txt has been added with description: OpenstackCOntroller_BR_INT_OFENTRIES |
| Comment by Vasanthan Balasubramaniyan [ 02/Sep/15 ] |
|
Compute node br-int OF entries and you can see stale OF entries on controller_br_int attachment |
| Comment by Vasanthan Balasubramaniyan [ 02/Sep/15 ] |
|
Attachment compute_node_br_int.txt has been added with description: openstackComputeNode_BRINT_OFEntries |
| Comment by Vasanthan Balasubramaniyan [ 02/Sep/15 ] |
|
Flow programming(i.e flow creation) done thru ODL controller,so respective flow deletion also needs to be performed thru ODL Controller. Step to recreate : This complete br-int OF entries captured and attached with defects. On Practical scenario, |
| Comment by Ravi Shankar S [ 03/Sep/15 ] |
|
As per the bug, a VM is created in each of the compute nodes. When the unstack.sh script is executed only the openstack services are disabled. The VM and the network are not deleted. When a VM/network is deleted from openstack, 2 types of event will reach ODL, Only after processing these 2 types of event, the ODL will clear the flows. When the unstack.sh scripts is executed on any node, the northbound events are not generated. This event will be generated by the openstack and that's the reason for flows not getting removed. The proper cleanup has to be initiated from openstack. The unstack.sh procedure will put ODL in a inconsistent state with respect to the flows. So, ODL cannot do anything to fix this issue. This bug will be more appropriate in openstack context. |
| Comment by Ravi Shankar S [ 07/Sep/15 ] |
|
When the unstack.sh script is run the neutron PORT DELETE southound events does not reach ODL controller. This is the reason why the stale entries are present in controller node. So, unstack.sh will not be the clean way to removes VM's and network. |
| Comment by Ravi Shankar S [ 08/Sep/15 ] |
|
The clean way to cleanup the node is to delete VM and network from openstack Horizon UI. In this way stale entry issue can be resolved. Cleanup from openstack is the preferred approach. So, could you please close the BUG? |
| Comment by Ravi Shankar S [ 10/Sep/15 ] |
|
Fixed the plugin.sh scipt to delete all the ports and then delete the OVSDB connection. |
| Comment by Ravi Shankar S [ 10/Sep/15 ] |
|
Attachment plugin.sh has been added with description: The modified Plugin.sh will solve the stale entry issue |
| Comment by Vasanthan Balasubramaniyan [ 10/Sep/15 ] |
|
1.Copied the plugin.sh (attached this bugzilla)on /opt/stack/networking-odl/devstack/ Compute node1 snip cookie=0x0, duration=311.991s, table=110, n_packets=5, n_bytes=968, tun_id=0x427,dl_dst=fa:16:3e:94:dd:6c actions=output:3 4.Unstacked the compute node-2 and vm-2 related OF entries has been removed from br-int This bug fix specific with *Openstack* side .Hence closing this issue. |
| Comment by Ravi Shankar S [ 30/Sep/15 ] |
|
This BUG is specific to openstack. Submitted a review in openstack |