[VTN-126] Issue in flowfilter Import/Audit in delete and create operation when controller in DOWN state Created: 15/Mar/16 Updated: 19/Oct/17 Resolved: 18/Apr/16 |
|
| Status: | Resolved |
| Project: | vtn |
| Component/s: | ODC Driver |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | YOGA LAKSHMI SWETHA PAYYAVULA | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5530 |
| Description |
|
Issue : Issue arises when there is flowfilter created for a given vnode with multiple sequence numbers and one of them is deleted when controller is in DOWN state, or deleted in the Controller. Reproduce the scenario: Create Controller : Create vtn: Create vbr: Create interfaces: curl --user admin:adminpass -H 'content-type: application/json' -X POST -d \ Portmapping: curl --user admin:adminpass -H 'content-type: application/json' -X PUT -d \ curl --user admin:adminpass -H 'content-type: application/json' -X PUT -d \ Create Flowlist: curl --user admin:adminpass -H 'content-type: application/json' -X POST -d \ Create Flowfilter: curl --user admin:adminpass -X POST -H 'content-type: application/json' -d \ Now disable audit for the controller: Create another flowfilter with different sequence number for the same interface when controller in Down state: curl --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "231", "fl_name": "flowlist1", "action_type":"drop", "priority":"3", "dscp":"55" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_two/interfaces/if1/flowfilters/in/flowfilterentries.json curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "230", "fl_name": "flowlist1", "action_type":"drop", "priority":"3", "dscp":"55" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_two/interfaces/if1/flowfilters/in/flowfilterentries.json Delete the flowfilter with sequence number 233: curl -v --user admin:adminpass -X DELETE -H 'content-type: application/json' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_two/interfaces/if1/flowfilters/in/flowfilterentries/233.json Now enable audit in controller: curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT http://127.0.0.1:8083/vtn-webapi/controllers/controller1.json -d '{"controller": {"controller_id": "controller1", "ipaddr":"10.106.138.191", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' When flowfilter is fetched in coordinator:
When flowfitler is fetched in the ODL controller: curl --user "admin":"admin" -H "Content-type: application/json" -X GET http://localhost:8181/restconf/operational/vtn:vtns/ ,"vbridge":[{"name":"vbr_two","vbridge-config": {"age-interval":600},"bridge-status": {"state":"DOWN","path-faults":0},"vinterface":[{"name":"if1","vinterface-status": {"state":"DOWN","entity-state":"UNKNOWN"},"port-map-config": {"vlan-id":0,"node":"openflow:3","port-name":"s3-eth1"},"vinterface-config": {"description":"if_desc1","enabled":true},"vinterface-input-filter":{"vtn-flow-filter":[{"index":230,"condition":"flowlist1","vtn-flow-action":[{"order":1,"vtn-set-inet-dscp-action":{"dscp":55}},{"order":2,"vtn-set-vlan-pcp-action":{"vlan-pcp":3}}],"vtn-drop-filter":{}},{"index":233,"condition":"flowlist1","vtn-flow-action":[{"order":1,"vtn-set-inet-dscp-action":{"dscp":55}},{"order":2,"vtn-set-vlan-pcp-action":{"vlan-pcp":3}}],"vtn-drop-filter":{}},{"index":231,"condition":"flowlist1","vtn-flow-action":[{"order":1,"vtn-set-inet-dscp-action":{"dscp":55}},{"order":2,"vtn-set-vlan-pcp-action":{"vlan-pcp":3}}],"vtn-drop-filter":{}}]}},{"name":"if2","vinterface-status": {"state":"DOWN","entity-state":"UNKNOWN"},"port-map-config": {"vlan-id":0,"node":"openflow:2","port-name":"s2-eth1"},"vinterface-config":{"description":"if_desc1","enabled":true}}]}]}]}}[root@uncrhel64 data]# The flowfilter for Interface if2 with sequence number 233 is not deleted in the vtn manager. |
| Comments |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 18/Apr/16 ] |
|
The patch for this bug has been pushed and merged in Master: Stable/beryllium: |