[VTN-98] VTN Dataflows GET operation error Created: 14/Jan/16 Updated: 19/Oct/17 Resolved: 10/Feb/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: | 4965 |
| Description |
|
Issue Scenario:Issue in Fetching VTN Dataflows, 500 internal server error returned when GET operation is performed using Query string from VTN Coordinator. Reproduce the BUG: Controller: curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller": {"controller_id": "odc", "ipaddr":"10.106.138.191", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' http://127.0.0.1:8083/vtn-webapi/controllers.json VTN: curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vtn" : {"vtn_name":"vtn1","description":"test VTN" }}' http://127.0.0.1:8083/vtn-webapi/vtns.json VBRIDGE: curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vbridge" : {"vbr_name":"vBridge1","controller_id":"odc","domain_id":"(DEFAULT)","description": "creating vbrif update" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges.json INTERFACES: curl --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if2","description": "if_desc1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces.json curl --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if1","description": "if_desc1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces.json PORTMAPPING: curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:2-s2-eth1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if2/portmap.json curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:3-s3-eth1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap.json THEN Give Ping in mininet (topo tree-2 level script) for h1 to h3: Now GET command with Query string: curl -v -X GET -H 'content-type: application/json' --user 'admin:adminpass' -H 'ipaddr:127.0.0.1' "http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/dataflows?vnode_name=vBridge1&srcmacaddr=4690.da0b.3a29&no_vlan_id=true" THE COORDINATOR LOGS: 2016-01-14 23:31:02.613480: [26799]: INFO: odcdriver: write to cache succes 2016-01-14 23:31:02.613823: [26799]: DEBUG: dataflow: 14. [VAL_FLOW_MATCH: match_type: 1 ] 2016-01-14 23:31:02.613856: [26799]: DEBUG: dataflow: 15. [VAL_FLOW_MATCH_DL_ADDR: dl_addr: 4690.da0b.3a29, v_mask: 0, dl_addr_mask: 0000.0000.0000 ] 2016-01-14 23:31:02.613868: [26799]: DEBUG: dataflow: 16. [VAL_FLOW_MATCH: match_type: 2 ] 2016-01-14 23:31:02.613878: [26799]: DEBUG: dataflow: 17. [VAL_FLOW_MATCH_DL_ADDR: dl_addr: 6e9e.c20d.b568, v_mask: 0, dl_addr_mask: 0000.0000.0000 ] 2016-01-14 23:31:02.613886: [26799]: TRACE: dataflow: inside sessOutDataflow fn sending actions after match struct sessout. 2016-01-14 23:31:02.613914: [26799]: DEBUG: dataflow: Return value 0 |
| Comments |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 03/Feb/16 ] |
|
Fixed the bug in the below patch for stable/beryllium: |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 10/Feb/16 ] |
|
Vtn_dataflows Response after resolving the bug: {"dataflows":[{"reason":"success","controller_domain_dataflows":[{"egress_domain_id":"(DEFAULT)","egress_if_name":"if1","ingress_domain_id":"(DEFAULT)","pathinfos":[ {"in_if_name":"if2","in_vnode_name":"vBridge1","out_vnode_name":"vBridge1","status":"normal","vlink_flag":"not_exists","out_if_name":"if1"}, {"in_if_name":"if2","in_vnode_name":"vBridge1","out_vnode_name":"vBridge1","status":"normal","vlink_flag":"exists","out_if_name":"if1"}],"idletimeout":"300","egress_port_name":"s3-eth1","ingress_port_name":"s2-eth1","controller_id":"odc","flow_id":"24","ingress_switch_id":"openflow:2","createdtime":"2147483647","match": {"macsrcaddr":["ca3d.6726.a1bc"],"macdstaddr":["8ee0.a24d.3689"]},"egress_logical_port_id":"PP-openflow:3-s3-eth1","controller_type":"odc","ingress_logical_port_id":"PP-openflow:2-s2-eth1","egress_vnode_name":"vBridge1","ingress_vnode_name":"vBridge1","egress_switch_id":"openflow:3","ingress_if_name":"if2","hardtimeout":"0"}]}]}[root@u12 odcdriver]# This Patch is merged in the Master in the below given link: |