[CONTROLLER-1514] Request could not be completed because the relevant data model content does not exist Created: 03/May/16  Updated: 25/Jul/23  Resolved: 22/Jun/16

Status: Verified
Project: controller
Component/s: config
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Claudio David Gasparini Assignee: Jakub Morvay
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks BGPCEP-448 IllegalStateException: No BgpTableTyp... Resolved
blocks NETCONF-211 Subtree filter does not return any data Resolved
Duplicate
is duplicated by NETCONF-193 Netconf connectors unreadable due to ... Resolved
is duplicated by NETCONF-211 Subtree filter does not return any data Resolved
External issue ID: 5836

 Description   

we receive
{
"errors": {
"error": [

{ "error-type": "application", "error-tag": "data-missing", "error-message": "Request could not be completed because the relevant data model content does not exist " }

]
}
}

when trying to get specific service by key

example using restconf

GET
http://127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:services/service/odl-bgp-rib-impl-cfg:bgp-table-type/

Doing same step getting all services we observe that is there.

GET
http://127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:services

To reproduce same issue, run bgp with basic peer configuration.

Master branch



 Comments   
Comment by Jakub Morvay [ 26/May/16 ]

Problem seems to be in construction of netconf XML response in config subsystem netconf server. Response in DOM format does not contain correct namespaces (namespace inheritance does not work in DOM xml apis). Subtree filter expects namespaces for all nodes and without them it can not make correct filtering, so you get this error.

Patch:
https://git.opendaylight.org/gerrit/39492

This patch fixes this bug by including namespaces when constructing all DOM nodes.

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