[CONTROLLER-945] Missing namespace for module's state list node (inner-state-bean) Created: 20/Oct/14  Updated: 25/Jul/23  Resolved: 22/Oct/14

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

Type: Bug
Reporter: Milos Fabian Assignee: Maros Marsalek
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: File opendaylight.log.tar.gz    
External issue ID: 2217

 Description   

Yang module snippet:

augment "/config:modules/config:module/config:state" {
case pcep-topology-provider {
when "/config:modules/config:module/config:type = 'pcep-topology-provider'";
list listener-state {
description "Statistics gained from session listener.";
config:inner-state-bean;
rpcx:rpc-context-instance "session-rpc";

key "peer-id";

leaf peer-id

{ type string; }

whole config yang module: https://jenkins.opendaylight.org/bgpcep/job/bgpcep-merge/ws/pcep/topology-provider/src/main/yang/odl-pcep-topology-provider-cfg.yang/*view*/

Netconf output snippet:

<listener-state key="127.0.1.0">
<session-state xmlns="urn:opendaylight:params:xml:ns:yang:controller:pcep:topology:provider">
<peer-pref>
<ip-address>127.0.1.0</ip-address>
<deadtimer>120</deadtimer>
<keepalive>30</keepalive>
<session-id>0</session-id>
</peer-pref>
<local-pref>
<ip-address>127.0.0.1</ip-address>



 Comments   
Comment by Milos Fabian [ 20/Oct/14 ]

Attachment opendaylight.log.tar.gz has been added with description: opendaylight log

Comment by Maros Marsalek [ 20/Oct/14 ]

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

Comment by Milos Fabian [ 20/Oct/14 ]

java.lang.IllegalArgumentException: Failed to normalize data [Node[SimpleNodeTOImpl], qName[type], modify[n/a], value = (urn:opendaylight:params:xml:ns:yang:controller:pcep:topology:provider?revision=2013-11-15)pcep-topology-provider, Node[SimpleNodeTOImpl], qName[name], modify[n/a], value = pcep-topology, Node[SimpleNodeTOImpl], qName[topology-id], modify[n/a], value = pcep-topology, Node[ImmutableCompositeNode], qName[scheduler], modify[n/a], children.size = 2, Node[ImmutableCompositeNode], qName[rpc-registry], modify[n/a], children.size = 2, Node[ImmutableCompositeNode], qName[data-provider], modify[n/a], children.size = 2, Node[SimpleNodeTOImpl], qName[listen-port], modify[n/a], value = 4189, Node[SimpleNodeTOImpl], qName[listen-address], modify[n/a], value = 0.0.0.0, Node[ImmutableCompositeNode], qName[dispatcher], modify[n/a], children.size = 2, Node[ImmutableCompositeNode], qName[stateful-plugin], modify[n/a], children.size = 2, Node[ImmutableCompositeNode], qName[listener-state], modify[n/a], children.size = 7]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation$CompositeNodeNormalizationOperation.normalize(DataNormalizationOperation.java:198) ~[bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizer.toNormalized(DataNormalizer.java:124) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceReadOnlyTx.transform(NetconfDeviceReadOnlyTx.java:91) [bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceReadOnlyTx.access$100(NetconfDeviceReadOnlyTx.java:41) [bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceReadOnlyTx$2.apply(NetconfDeviceReadOnlyTx.java:110) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceReadOnlyTx$2.apply(NetconfDeviceReadOnlyTx.java:102) ~[bundlefile:na]
at com.google.common.util.concurrent.Futures$1.apply(Futures.java:720) ~[bundlefile:na]
at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:859) ~[bundlefile:na]
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) ~[bundlefile:na]
at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) ~[bundlefile:na]
at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) ~[bundlefile:na]
at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185) ~[bundlefile:na]
at com.google.common.util.concurrent.Futures$ChainingListenableFuture$1.run(Futures.java:873) ~[bundlefile:na]
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) ~[bundlefile:na]
at com.google.common.util.concurrent.Futures$ImmediateFuture.addListener(Futures.java:99) ~[bundlefile:na]
at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:866) ~[bundlefile:na]
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) ~[bundlefile:na]
at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) ~[bundlefile:na]
at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) ~[bundlefile:na]
at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.listener.UncancellableFuture.set(UncancellableFuture.java:45) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.processMessage(NetconfDeviceCommunicator.java:251) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:197) ~[bundlefile:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:45) ~[bundlefile:na]
at org.opendaylight.controller.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:57) ~[na:na]
at org.opendaylight.controller.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:28) ~[na:na]
at org.opendaylight.protocol.framework.AbstractProtocolSession.channelRead0(AbstractProtocolSession.java:46) ~[bundlefile:na]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) ~[bundlefile:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) ~[na:na]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) ~[bundlefile:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) ~[na:na]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) ~[bundlefile:4.0.23.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32) ~[bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324) ~[bundlefile:4.0.23.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) ~[bundlefile:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) ~[na:na]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) ~[bundlefile:4.0.23.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) ~[bundlefile:4.0.23.Final]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
Caused by: org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationException: Supplied QName (urn:opendaylight:params:xml:ns:yang:controller:pcep:topology:provider)listener-state is not valid according to schema list module, potential children nodes: [LeafSchemaNodeImpl[qname=(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)name, path=AbsoluteSchemaPath

{path=[(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)modules, (urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)module, (urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)name]}

], LeafSchemaNodeImpl[qname=(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)type, path=AbsoluteSchemaPath

{path=[(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)modules, (urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)module, (urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)type]}

], ChoiceNodeImpl[qname=(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)configuration], ChoiceNodeImpl[qname=(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)state]]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation.fromSchemaAndQNameChecked(DataNormalizationOperation.java:681) ~[bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation.access$000(DataNormalizationOperation.java:57) ~[bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation$DataContainerNormalizationOperation.fromLocalSchemaAndQName(DataNormalizationOperation.java:277) ~[bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation$DataContainerNormalizationOperation.getChild(DataNormalizationOperation.java:272) ~[bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.util.compat.DataNormalizationOperation$CompositeNodeNormalizationOperation.normalize(DataNormalizationOperation.java:196) ~[bundlefile:na]
... 44 common frames omitted

Comment by Maros Marsalek [ 22/Oct/14 ]

The normalization exception does not appear with latest controller + bgpcep (karaf distribution). Probably just outdated bundles.

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