[NETCONF-457] Restconf temporarily refuses to insert new augmented nodes when using HTTP/1.1 Created: 24/Aug/17  Updated: 03/Dec/21  Resolved: 03/Dec/21

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Martin Dindoffer Assignee: Kostiantyn Nosach
Resolution: Cannot Reproduce Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File [NETCONF-457] Steps to reproduce.rtf     Text File error trace log.txt     Text File sxp node 1 payload.txt    
External issue ID: 9047

 Description   

=====SUMMARY=====
Restconf quite often fails to insert a new augmented node to MD-SAL and instead throws a "Data already exists for path" error, even though there is nothing present in given topology.
{
"errors": {
"error": [
{
"error-type": "protocol",
"error-tag": "data-exists",
"error-message": "Data already exists for path: /(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology[

{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=sxp}

]"
}
]
}
}

=====STEPS=====
This can be easily observed on the SXP project given these steps:
1. Install odl-sxp-controller feature to provide the sxp yang augmentation
2. Write an sxp-augmented node to the DS using
POST http://localhost:8181/restconf/config/network-topology:network-topology/topology/sxp/
3. DELETE the "sxp" topology with the node
DELETE http://localhost:8181/restconf/config/network-topology:network-topology/topology/sxp/
4. Create a new empty "sxp" topology with:
POST http://localhost:8181/restconf/config/network-topology:network-topology/
Payload:
<topology xmlns="urn:TBD:params:xml:ns:yang:network-topology">
<topology-id>sxp</topology-id>
</topology>
5. Try to write the node from step 2 again. This in most cases produces the error.

If the above steps do not produce an error (rarely, but may happen), repeat steps 3 to 5.

=====ADDITIONAL INFO=====

  • This bug seems to happen only when using HTTP/1.1. We have not been able to reproduce it with HTTP/1.0
  • The error keeps appearing on subsequent tries to write the node and suddenly disappears on Xth try. Sometimes on the 3rd, sometimes on the fifth... Until it eventually passes and the node gets written to the MD-SAL.
  • The example node payload and TRACE logs from entire system are in the attachments


 Comments   
Comment by Martin Dindoffer [ 24/Aug/17 ]

Attachment error trace log.txt has been added with description: Trace logs of the failed node insertion

Comment by Martin Dindoffer [ 24/Aug/17 ]

Attachment sxp node 1 payload.txt has been added with description: Example SXP-augmented node payload

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