[VTN-165] UDP L4 match details of source and destination creation failure in Flowlistentry Created: 25/Sep/17  Updated: 30/Oct/17

Status: Verified
Project: vtn
Component/s: ODC Driver
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Y Ananth Assignee: Y Ananth
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 9208

 Description   

In VTN Coordinator UDP L4 match details of source and destination creation fails in Flowlistentry.
It accepts ipproto value as 17 but shows tcp source and destination values in logs.

Steps to reproduce the bug:

  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller":{"controller_id": "odc1", "ipaddr":"127.0.0.1", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' http://127.0.0.1:8083/vtn-webapi/controllers
  1. 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
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vbridge" : {"vbr_name":"vBridge1","controller_id":"controllerone","domain_id":"(DEFAULT)" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges.json
  1. curl -v --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
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:72931086629252-veth1_ovs"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlist": {"fl_name": "flowlist1", "ip_version":"IP"}}' http://127.0.0.1:8083/vtn-webapi/flowlists.json
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlistentry": {"seqnum":"1","ipproto":"17","l4dstport":"400","l4dstendport":"600"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries.json
  1. curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilter" : {"ff_type": "in"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/flowfilters.json
  1. curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "1", "fl_name": "flowlist1", "action_type":"pass","priority":"1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/flowfilters/in/flowfilterentries.json

In Coordinator logs:

2017-09-25 22:30:18.332050: [14099]: DEBUG: vtndrvintf: execute_cmd: Translate Create Command string
2017-09-25 22:30:18.332079: [14099]: INFO: odcdriver: Filling Inet Match Details
2017-09-25 22:30:18.332088: [14099]: INFO: odcdriver: Filling L4 Match Details
2017-09-25 22:30:18.332095: [14099]: INFO: odcdriver: Filling L4 tcp Match Details
2017-09-25 22:30:18.332147: [14099]: DEBUG: restjsonutil: User name and password is taken from conf file
2017-09-25 22:30:18.332209: [14099]: DEBUG: restjsonutil: http://10.106.138.150:8181/restconf/operations/vtn-flow-condition:set-flow-condition-match Url formed
2017-09-25 22:30:18.332220: [14099]: DEBUG: restjsonutil: HTTP_METHOD_POST
2017-09-25 22:30:18.332234: [14099]: DEBUG: restjsonutil: Request Body : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

{ "port-from": 400, "port-to": 600 }

} ] } }
2017-09-25 22:30:18.332241: [14099]: INFO: restjsonutil: requestbody : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

{ "port-from": 400, "port-to": 600 }

} ] } }
2017-09-25 22:30:18.362467: [14099]: DEBUG: restjsonutil: Allocates Memory ............
2017-09-25 22:30:18.362495: [14099]: DEBUG: restjsonutil: Reallocate Memory...............
2017-09-25 22:30:18.362672: [14099]: DEBUG: vtndrvintf: deleted config_cmd_ptr
2017-09-25 22:30:18.362689: [14099]: DEBUG: vtndrvintf: 30,keytype
2017-09-25 22:30:18.362705: [14099]: DEBUG: odcdriver: UNC_VBRIF_FLOW_FILTER_ENTRY key type received
2017-09-25 22:30:18.362716: [14099]: DEBUG: vtndrvintf: keytype:30, config_operation:1
2017-09-25 22:30:18.362723: [14099]: DEBUG: vtndrvintf: execute_cmd: Translate Create Command string
2017-09-25 22:30:18.362748: [14099]: DEBUG: restjsonutil: User name and password is taken from conf file
2017-09-25 22:30:18.362806: [14099]: DEBUG: restjsonutil: http://10.106.138.150:8181/restconf/operational/vtn:vtns/vtn/vtn1 Url formed
2017-09-25 22:30:18.395919: [14099]: DEBUG: restjsonutil: Allocates Memory ............
2017-09-25 22:30:18.395949: [14099]: DEBUG: restjsonutil: Reallocate Memory...............

In logs it shows as
{ "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

{ "port-from": 400, "port-to": 600 }

} ] } }



 Comments   
Comment by Y Ananth [ 25/Oct/17 ]

patch for the bug has been merged in

stable/carbon:
https://git.opendaylight.org/gerrit/#/c/64232/

stable/nitrogen:
https://git.opendaylight.org/gerrit/#/c/64328/

master:
https://git.opendaylight.org/gerrit/#/c/64327/

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