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

get-config/edit-config not working for netopeer2 devices

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • 1.13.1
    • None
    • Netconf
    • None

    Description

      Hi All,

      We are using OpenDayLight Silicon SR1 release and we are trying to mount some netopeer2 based devices on it. We are able to mount the devices successfully but while performing get-config RPC call ( the device is using ietf-netconf@2013-09-29)

      POST /rests/operations/network-topology:network-topology/topology=topology-netconf/node=test/yang-ext:mount/ietf-netconf:get-config 

      with payload

       

      {"ietf-netconf:input":{"source":{"candidate":null}}}
      

       

      odl is failing with below exception

       

      javax.servlet.ServletException: javax.servlet.ServletException: java.lang.IllegalArgumentException: Could not find schema for
               at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:90)
               at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388) ~[bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633) ~[bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:279) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.38.v202
               at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:540) [bundleFile:9.4.38.v202
               at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:395) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [bundleFile:9.4.38.v20210224]
               at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.38.v20210224 (edited) 
      

                
      from netconf trace logs I am able to see that sdnc/odl is receiving rpc-reply from the device which is having complete payload. Once handle-data got completed below exception is coming                                                                                                                                             

      2021-08-13T07:32:33,566 | TRACE | qtp1424210203-2104 | FutureCallbackTx                 | 334 - org.opendaylight.netconf.restconf-nb-rfc8040 - 1.13.2 |  -   | Transaction(POST) SUCCESSFUL
       2021-08-13T07:32:33,568 | TRACE | qtp1424210203-2104 | ServerRuntime$Responder          | 187 - org.glassfish.jersey.core.jersey-server - 2.27.0 |  -   | Starting mapping of the exception.
       org.glassfish.jersey.server.internal.process.MappableException: java.util.NoSuchElementException: No value present
               at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:91) ~[?:?]
               at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:163) ~[?:?]
               at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1135) ~[?:?]
               at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:662) ~[?:?]
               at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:395) ~[?:?]
               at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:385) ~[?:?]
               at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:280) ~[?:?]
               at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) ~[?:?]
               at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) ~[?:?]
               at org.glassfish.jersey.internal.Errors.process(Errors.java:316) ~[?:?]
               at org.glassfish.jersey.internal.Errors.process(Errors.java:298) ~[?:?]
               at org.glassfish.jersey.internal.Errors.process(Errors.java:268) ~[?:?]
               at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289) ~[?:?]
               at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) ~[?:?]
               at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703) ~[?:?]
               at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) ~[?:?]
               at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) ~[?:?]
               at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) ~[?:?]
               at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) ~[?:?]
               at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) ~[?:?]
               at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1443) ~[bundleFile:9.4.38.v

       

      Attachments

        1. error.log
          228 kB
        2. get-cli-output.xml
          117 kB
        3. get-rpc-reply.xml
          143 kB
        4. get-sdnr-debug-logs.txt
          429 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vvarvate Vishal Varvate
            vvarvate Vishal Varvate
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: