-
Bug
-
Resolution: Done
-
None
-
unspecified
-
None
-
Operating System: All
Platform: All
-
9174
Flowlistentry creation is failing for "port-from" and "port-to" in VTN Coordinator
Steps to reproduce the bug:
- 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
- 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
- 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
- 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
- curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if2","description": "if_desc2"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces.json
- curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:72621089949254-veth1_ovs"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap
- curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:72621089949254-veth1_ovs"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if2/portmap
- 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
- curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlistentry": {"seqnum":"1","ipproto":"6","l4dstport":"5","l4dstendport":"8"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries.json
- 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
- 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
{"error":Unknown macro: {"err_msg"}}
Coordinator logs:
2017-09-18 16:18:33.734537: [14119]: DEBUG: restjsonutil: User name and password is taken from conf file
2017-09-18 16:18:33.734573: [14119]: DEBUG: restjsonutil: http://10.106.138.150:8181/restconf/operations/vtn-flow-condition:set-flow-condition-match Url formed
2017-09-18 16:18:33.734580: [14119]: DEBUG: restjsonutil: HTTP_METHOD_POST
2017-09-18 16:18:33.734587: [14119]: DEBUG: restjsonutil: Request Body : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":
} ] } }
2017-09-18 16:18:33.734591: [14119]: INFO: restjsonutil: requestbody : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":
} ] } }
2017-09-18 16:18:33.799612: [14119]: DEBUG: restjsonutil: Allocates Memory ............
2017-09-18 16:18:33.799667: [14119]: ERROR: odcdriver: post is not success , resp_code 400
2017-09-18 16:18:33.799756: [14119]: ERROR: odcdriver: Flowlistentry Create Failed
2017-09-18 16:18:33.799766: [14119]: DEBUG: vtndrvintf: deleted config_cmd_ptr
2017-09-18 16:18:33.799773: [14119]: DEBUG: vtndrvintf: 6,execute_cmd not success
2017-09-18 16:18:33.799787: [14119]: DEBUG: tclib: TcLibWriteControllerInfo 450 Write controller info involved for controller_id controllerone
2017-09-18 16:18:33.799812: [14119]: INFO: tclib: TcLibWriteKeyValueDataInfo 683 write data succcess keytype 6 ctrlid controllerone
2017-09-18 16:18:33.799819: [14119]: ERROR: vtndrvintf: VOTE Failure in driver, ret 1
2017-09-18 16:18:33.799822: [14119]: DEBUG: vtndrvintf: Exiting HandleCommitVoteRequest
2017-09-18 16:18:33.799826: [14119]: DEBUG: vtndrvintf: ~ControllerFwUtil--oper_type:4
2017-09-18 16:18:33.799830: [14119]: DEBUG: vtndrvintf: Write completed set write_in_progress_ FALSE
2017-09-18 16:18:33.799836: [14119]: DEBUG: vtndrvintf: write count:0
Flowlistentry Creation failed with ERROR: odcdriver: post is not success , resp_code 400
so the next step gave an internal server error
- 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
{"error":Unknown macro: {"err_msg"}}