[OPNFLWPLUG-378] of-flow: http status 500 returned for sal services (add, update, delete flow) Created: 12/Mar/15  Updated: 27/Sep/21  Resolved: 13/Mar/15

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Peter Gubka Assignee: Vaclav Demcak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: Text File karaf.log    
Issue Links:
Blocks
blocks OPNFLWPLUG-377 of-flow: unable to configure flows; h... Resolved
External issue ID: 2821

 Description   

when i use sal services, even the required action is done well, http status 500 is returned

odl:http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.3.0-SNAPSHOT//distribution-karaf-0.3.0-20150312.085342-602.tar.gz

used default settings (heap, perm size)

installed feature: odl-openflowplugin-all

host VM: fedora 18 with 16G of ram

java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

used data:
POST on /restconf/operations/sal-flow:add-flow

used xml:
<input xmlns="urn:opendaylight:flow:service"> <strict>false</strict> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <dec-nw-ttl /> </action> </apply-actions> </instruction> </instructions> <table_id>2</table_id> <cookie_mask>255</cookie_mask> <installHw>false</installHw> <match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <ipv4-destination>10.0.1.0/24</ipv4-destination> </match> <cookie>1</cookie> <flow-name>FooXf1</flow-name> <priority>1</priority> <barrier>false</barrier> <node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:1"]</node></input>

switch:
OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x1, duration=30.104s, table=2, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, priority=1,ip,nw_dst=10.0.1.0/24 actions=dec_ttl mininet>

but http 500 returned



 Comments   
Comment by Peter Gubka [ 12/Mar/15 ]

Attachment karaf.log has been added with description: karaf.log

Comment by Vaclav Demcak [ 12/Mar/15 ]

Rpc calls schema node hasn't any child (RpcDefinition) only input and output ContainerSchemaNode. So we have to add extra check functionality for Rpc Schema Node and mark input/output ContainerSchmemaNode as a parent SchemaNode definition in BodyWriter rest @Provider (xml and json).

Fix is available in https://git.opendaylight.org/gerrit/#/c/16322

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