Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1827

Cannot read CSS configuration through netconf/restconf

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Highest
    • Resolution: Won't Do
    • Nitrogen, Oxygen, Fluorine
    • Fluorine, Oxygen SR2, Nitrogen SR3
    • config
    • None

    Description

      When reading the whole css configuration  through netconf/restconf we end up with the folowing YT error:

      2018-05-02 05:13:27,997 | WARN | qtp603191920-264 | BrokerFacade | 407 - org.opendaylight.netconf.sal-rest-connector - 1.6.3 | Error reading / from datastore CONFIGURATION ReadFailedException{message=read execution failed, errorList=[RpcError [message=read execution failed, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=java.lang.IllegalArgumentException: Failed to parse data response [data: null]]]} at org.opendaylight.controller.md.sal.common.api.data.ReadFailedException$1.newWithCause(ReadFailedException.java:26)[324:org.opendaylight.controller.sal-common-api:1.6.3] at org.opendaylight.controller.md.sal.common.api.data.ReadFailedException$1.newWithCause(ReadFailedException.java:23)[324:org.opendaylight.controller.sal-common-api:1.6.3] at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:88)[65:org.opendaylight.yangtools.util:1.2.3] at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:38)[65:org.opendaylight.yangtools.util:1.2.3] at org.opendaylight.yangtools.util.concurrent.MappingCheckedFuture.mapException(MappingCheckedFuture.java:61)[65:org.opendaylight.yangtools.util:1.2.3] at org.opendaylight.yangtools.util.concurrent.MappingCheckedFuture.wrapInExecutionException(MappingCheckedFuture.java:65)[65:org.opendaylight.yangtools.util:1.2.3] at org.opendaylight.yangtools.util.concurrent.MappingCheckedFuture.get(MappingCheckedFuture.java:78)[65:org.opendaylight.yangtools.util:1.2.3] at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.Futures.getDone(Futures.java:1279)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1226)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:911)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:822)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:686)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:112)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:911)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:822)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:686)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:137)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:911)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:822)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:664)[13:com.google.guava:22.0.0] at org.opendaylight.netconf.sal.connect.netconf.listener.UncancellableFuture.set(UncancellableFuture.java:44) at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.processMessage(NetconfDeviceCommunicator.java:335) at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:267) at org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:48) at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:65) at org.opendaylight.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:35) at org.opendaylight.protocol.framework.AbstractProtocolSession.channelRead0(AbstractProtocolSession.java:53) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341)[20:io.netty.transport:4.1.8.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[15:io.netty.codec:4.1.8.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[15:io.netty.codec:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341)[20:io.netty.transport:4.1.8.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[15:io.netty.codec:4.1.8.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[15:io.netty.codec:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38)[20:io.netty.transport:4.1.8.Final] at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:354)[20:io.netty.transport:4.1.8.Final] at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)[17:io.netty.common:4.1.8.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)[17:io.netty.common:4.1.8.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)[20:io.netty.transport:4.1.8.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)[17:io.netty.common:4.1.8.Final] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)[17:io.netty.common:4.1.8.Final] at java.lang.Thread.run(Thread.java:748)[:1.8.0_161] Caused by: java.lang.IllegalArgumentException: Failed to parse data response [data: null] at org.opendaylight.netconf.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcResult(NetconfMessageTransformer.java:199) at org.opendaylight.netconf.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcResult(NetconfMessageTransformer.java:58) at org.opendaylight.netconf.sal.connect.netconf.sal.NetconfDeviceRpc.lambda$invokeRpc$1(NetconfDeviceRpc.java:64) at com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture.doTransform(AbstractTransformFuture.java:239)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture.doTransform(AbstractTransformFuture.java:229)[13:com.google.guava:22.0.0] at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:130)[13:com.google.guava:22.0.0] ... 31 more
      
      Caused by: java.lang.IllegalArgumentException: Parsed QName (urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec?revision=2016-07-14)binding-codec-tree-factory does not refer to a valid identity at org.opendaylight.yangtools.yang.data.util.codec.IdentityCodecUtil.parseIdentity(IdentityCodecUtil.java:59) at org.opendaylight.yangtools.yang.data.codec.xml.IdentityrefXmlCodec.parseValue(IdentityrefXmlCodec.java:39)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.IdentityrefXmlCodec.parseValue(IdentityrefXmlCodec.java:23)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.translateValueByType(XmlParserStream.java:453)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.setValue(XmlParserStream.java:435)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:279)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:297)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.parse(XmlParserStream.java:191)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.traverse(XmlParserStream.java:220)[69:org.opendaylight.yangtools.yang-data-codec-xml:1.2.3] at org.opendaylight.netconf.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcResult(NetconfMessageTransformer.java:196) ... 36 more
      

       

      This can break the netconf CSIT jobs that use NetconfReady test suite. This test suite tries to test readiness of the whole netconf stack by creating a loopback connection to CSS netconf endpoint and reading the whole CSS configuration through RESTCONF and this loopback. This does not succeed and ends with the above mentioned error.

       

      You can see such failure here:

      https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/netconf-csit-3node-clustering-all-nitrogen/384/robot-plugin/log.html.gz#s1-s1-t1-k3-k1-k1-k1-k1-k4-k1-k1-k1-k4-k4-k1

      Attachments

        1. CSS-config
          70 kB
          Jakub Morvay
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            JMorvay Jakub Morvay
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: