Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-709

RESTCONF is not mapping with corrct error which is sent by device

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Cannot Reproduce
    • None
    • None
    • restconf-nb
    • None

    Description

      RESTCONF is giving below error when we perform the  Set config from restconf, and device respond with error.

      Server Error. Status: [500] RemoteDevice{0005B94238A0}: Commit of transaction failed

       

      Error in logs:

       

      org.opendaylight.netconf.api.NetconfDocumentedException: Mapping not found <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-467">
      <discard-changes/>

       

       

       

      Karaf.logs

       

      2020-04-15T06:40:55,963 | WARN  | nioEventLoopGroupCloseable-3-3 | NetconfDeviceCommunicator        | 402 - org.opendaylight.netconf.sal-netconf-connector - 1.9.1 |  -  | RemoteDevice

      {0005B94238A0}: Error reply from remote device, request: <rpc message-id="m-465" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <edit-config>
      <target>
      <candidate/>
      </target>
      <config>
      <device xmlns="urn:onf:otcc:wireless:yang:radio-access:commscope-onecell">
      <services>
      <fap-service>
      <index>1</index>
      <cell-config>
      <lte>
      <ran>
      <rf xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="replace">
      <ul-bandwidth>100</ul-bandwidth>
      <psch-power-offset>-30</psch-power-offset>
      <ssch-power-offset>-30</ssch-power-offset>
      <pbch-power-offset>0</pbch-power-offset>
      <reference-signal-power>-32</reference-signal-power>
      <phy-cell-id>100</phy-cell-id>
      <earfcndl>850</earfcndl>
      <x-0005b9-max-tx-power>24</x-0005b9-max-tx-power>
      <dl-bandwidth>100</dl-bandwidth>
      <earfcnul>18850</earfcnul>
      </rf>
      </ran>
      </lte>
      </cell-config>
      </fap-service>
      </services>
      </device>
      </config>
      </edit-config>
      </rpc>
      , response: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-465">
      <rpc-error>
      <error-type>application</error-type>
      <error-tag>operation-not-supported</error-tag>
      <error-severity>error</error-severity>
      <error-message>Request denied</error-message>
      </rpc-error>
      </rpc-reply>

      org.opendaylight.netconf.api.NetconfDocumentedException: Request denied
              at org.opendaylight.netconf.api.NetconfDocumentedException.fromXMLDocument(NetconfDocumentedException.java:53) ~[383:org.opendaylight.netconf.api:1.6.1]
              at org.opendaylight.netconf.sal.connect.netconf.util.NetconfMessageTransformUtil.checkSuccessReply(NetconfMessageTransformUtil.java:260) ~[402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.processMessage(NetconfDeviceCommunicator.java:327) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:270) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:49) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:64) [395:org.opendaylight.netconf.netty-util:1.6.1]
              at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.channelRead0(AbstractNetconfSession.java:187) [395:org.opendaylight.netconf.netty-util:1.6.1]
              at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337) [73:io.netty.transport:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323) [68:io.netty.codec:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297) [68:io.netty.codec:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337) [73:io.netty.transport:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323) [68:io.netty.codec:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297) [68:io.netty.codec:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:350) [73:io.netty.transport:4.1.34.Final]
              at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [70:io.netty.common:4.1.34.Final]
              at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [70:io.netty.common:4.1.34.Final]
              at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:495) [73:io.netty.transport:4.1.34.Final]
              at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905) [70:io.netty.common:4.1.34.Final]
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [70:io.netty.common:4.1.34.Final]
              at java.lang.Thread.run(Thread.java:748) [?:?]
      2020-04-15T06:40:55,964 | WARN  | nioEventLoopGroupCloseable-3-3 | NetconfRpcFutureCallback         | 402 - org.opendaylight.netconf.sal-netconf-connector - 1.9.1 |  -  | RemoteDevice
      {0005B94238A0}

      : Edit candidate invoked unsuccessfully: [RpcError [message=Request denied, severity=ERROR, errorType=APPLICATION, tag=operation-not-supported, applicationTag=null, info=, cause=null]]
      2020-04-15T06:40:55,970 | WARN  | nioEventLoopGroupCloseable-3-3 | NetconfDeviceCommunicator        | 402 - org.opendaylight.netconf.sal-netconf-connector - 1.9.1 |  -  | RemoteDevice

      {0005B94238A0}: Error reply from remote device, request: <rpc message-id="m-467" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <discard-changes/>
      </rpc>
      , response: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-467">
      <rpc-error>
      <error-type>application</error-type>
      <error-tag>operation-not-supported</error-tag>
      <error-severity>error</error-severity>
      <error-message>Mapping not found <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-467">
      <discard-changes/>
      </rpc>
      </error-message>
      </rpc-error>
      </rpc-reply>

      org.opendaylight.netconf.api.NetconfDocumentedException: Mapping not found <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-467">
      <discard-changes/>
      </rpc>

              at org.opendaylight.netconf.api.NetconfDocumentedException.fromXMLDocument(NetconfDocumentedException.java:53) ~[383:org.opendaylight.netconf.api:1.6.1]
              at org.opendaylight.netconf.sal.connect.netconf.util.NetconfMessageTransformUtil.checkSuccessReply(NetconfMessageTransformUtil.java:260) ~[402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.processMessage(NetconfDeviceCommunicator.java:327) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:270) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:49) [402:org.opendaylight.netconf.sal-netconf-connector:1.9.1]
              at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:64) [395:org.opendaylight.netconf.netty-util:1.6.1]
              at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.channelRead0(AbstractNetconfSession.java:187) [395:org.opendaylight.netconf.netty-util:1.6.1]
              at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337) [73:io.netty.transport:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323) [68:io.netty.codec:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297) [68:io.netty.codec:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337) [73:io.netty.transport:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323) [68:io.netty.codec:4.1.34.Final]
              at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297) [68:io.netty.codec:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38) [73:io.netty.transport:4.1.34.Final]
              at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:350) [73:io.netty.transport:4.1.34.Final]
              at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [70:io.netty.common:4.1.34.Final]
              at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [70:io.netty.common:4.1.34.Final]
              at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:495) [73:io.netty.transport:4.1.34.Final]
              at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905) [70:io.netty.common:4.1.34.Final]
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [70:io.netty.common:4.1.34.Final]
              at java.lang.Thread.run(Thread.java:748) [?:?]
      2020-04-15T06:40:55,971 | WARN  | nioEventLoopGroupCloseable-3-3 | NetconfRpcFutureCallback         | 402 - org.opendaylight.netconf.sal-netconf-connector - 1.9.1 |  -  | RemoteDevice
      {0005B94238A0}

      : Discarding candidate invoked unsuccessfully: [RpcError [message=Mapping not found <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-467">
      <discard-changes/>
      </rpc>
      , severity=ERROR, errorType=APPLICATION, tag=operation-not-supported, applicationTag=null, info=, cause=null]]

       

      Attachments

        1. Steps to reproduce.odt
          18 kB
          Samuel Schneider
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            SamoSchneider Samuel Schneider
            Eswaraiah Eswaraiah Chintam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: