[CONTROLLER-1285] Clustering : random "Error creating data" when writing flows to config DS Created: 28/Apr/15  Updated: 25/Jul/23  Resolved: 02/Jun/15

Status: Resolved
Project: controller
Component/s: clustering
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Martin Bobak Assignee: Martin Bobak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File flow-mod-exception.rtf    
External issue ID: 3080
Priority: Highest

 Description   

I tried to POST xml files from integration test suite. I randomly ran into error described in next text. When I try to POST same data right away after receiving error POST succeeds. I was not able to trace any log data in karaf.log. This seems to be one of reasons of failing robot tests.

martin@ncc1701e:~/programs/odlRestyScripts$ POST < /integration/test/csit/variables/xmls//f7.xml
{"errors":{"error":[

{"error-type":"application","error-tag":"operation-failed","error-message":"Error creating data"}

]}}
martin@ncc1701e:~/programs/odlRestyScripts$ POST < /integration/test/csit/variables/xmls//f9.xml
{"errors":{"error":[

{"error-type":"application","error-tag":"operation-failed","error-message":"Error creating data"}

]}}
martin@ncc1701e:~/programs/odlRestyScripts$ POST < /integration/test/csit/variables/xmls//f11.xml
{"errors":{"error":[

{"error-type":"application","error-tag":"operation-failed","error-message":"Error creating data"}

]}}



 Comments   
Comment by Martin Bobak [ 28/Apr/15 ]

URL to which I posted data is : http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/

Comment by Vaclav Demcak [ 07/May/15 ]

I've added patch for a deep logging in restconf:

https://git.opendaylight.org/gerrit/#/c/19712/

Comment by Kamal Rameshan [ 11/May/15 ]

Attachment flow-mod-exception.rtf has been added with description: flow-mod-exception

Comment by Kamal Rameshan [ 11/May/15 ]

I tried with the integration f7 xml and am consistently getting the Error.

There is an exception during parsing of the flow xml. I have attached the exception log.

I have used the openflowplugin-all-li (lithium) feature to install on a single node setup.

Anyway this does not seem to be related to clustering/datastore.

f7.xml
-------
http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/FooXf7

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<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>
<id>130</id>
<cookie_mask>255</cookie_mask>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
<ethernet-destination>
<address>ff:ff:ff:ff:ff:aa</address>
</ethernet-destination>
<ethernet-source>
<address>00:00:00:11:23:ae</address>
</ethernet-source>
</ethernet-match>
<ipv4-source>10.1.2.0/24</ipv4-source>
<ipv4-destination>20.4.0.0/16</ipv4-destination>
<ip-match>
<ip-protocol>56</ip-protocol>
<ip-dscp>15</ip-dscp>
<ip-ecn>1</ip-ecn>
</ip-match>
<in-port>0</in-port>
</match>
<cookie>7</cookie>
<flow-name>FooXf7</flow-name>
<priority>7</priority>
<barrier>false</barrier>
</flow>

Comment by Kamal Rameshan [ 12/May/15 ]

Please ignore the above analysis. Got some errors with the url.

Comment by Kamal Rameshan [ 12/May/15 ]

Unable to reproduce.

I posted all the flow xmls form the integration/test/csit/variables/xmls/ folder, in loop within a script.

And all the flows could be found both in config and in operational.

Comment by Moiz Raja [ 12/May/15 ]

Martin, You changed the status of this bug to WAITING_FOR_REVIEW. Which patch has the fix?

Comment by Kamal Rameshan [ 15/May/15 ]

Assigning this to Martin since he has a fix and marked it for review

Comment by Moiz Raja [ 15/May/15 ]

What is the fix?

Generated at Wed Feb 07 19:55:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.