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

Cannot connect device over TLS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 7.0.0, 7.0.1, 7.0.2, 7.0.3
    • None

      Follow the steps in NETCONF-821 (be careful to enable netopeer 6513 port and use correct node address).

      This exception occurs in karaf.log:

      09:17:25.382 ERROR [opendaylight-cluster-data-notification-dispatcher-43] member-1-shard-topology-config: Error notifying listener org.opendaylight.mdsal.binding.dom.adapter.BindingDOMDataTreeChangeListenerAdapter@3e395639
      java.lang.IllegalStateException: Failed to initialize SSL context
              at org.opendaylight.netconf.client.mdsal.impl.DefaultSslContextFactory.createSslContext(DefaultSslContextFactory.java:46) ~[?:?]
              at org.opendaylight.netconf.client.SslContextFactory.createSslContext(SslContextFactory.java:24) ~[bundleFile:?]
              at org.opendaylight.netconf.topology.spi.NetconfClientConfigurationBuilderFactoryImpl.createClientConfigurationBuilder(NetconfClientConfigurationBuilderFactoryImpl.java:78) ~[bundleFile:?]
              at org.opendaylight.netconf.topology.spi.NetconfNodeHandler.<init>(NetconfNodeHandler.java:198) ~[bundleFile:?]
              at org.opendaylight.netconf.topology.spi.AbstractNetconfTopology.lockedEnsureNode(AbstractNetconfTopology.java:123) ~[bundleFile:?]
              at org.opendaylight.netconf.topology.spi.AbstractNetconfTopology.ensureNode(AbstractNetconfTopology.java:90) ~[bundleFile:?]
              at org.opendaylight.netconf.topology.impl.NetconfTopologyImpl.ensureNode(NetconfTopologyImpl.java:143) ~[?:?]
              at org.opendaylight.netconf.topology.impl.NetconfTopologyImpl.onDataTreeChanged(NetconfTopologyImpl.java:129) ~[?:?]
              at org.opendaylight.mdsal.binding.dom.adapter.BindingDOMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeListenerAdapter.java:55) ~[bundleFile:?]
              at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.dataTreeChanged(DataTreeChangeListenerActor.java:90) ~[bundleFile:?]
              at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.handleReceive(DataTreeChangeListenerActor.java:45) ~[bundleFile:?]
              at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24) [bundleFile:?]
              at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20) [bundleFile:?]
              at scala.PartialFunction.applyOrElse(PartialFunction.scala:214) [bundleFile:?]
              at scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) [bundleFile:?]
              at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) [bundleFile:?]
              at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:269) [bundleFile:?]
              at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:270) [bundleFile:?]
              at akka.actor.Actor.aroundReceive(Actor.scala:537) [bundleFile:?]
              at akka.actor.Actor.aroundReceive$(Actor.scala:535) [bundleFile:?]
              at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) [bundleFile:?]
              at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) [bundleFile:?]
              at akka.actor.ActorCell.invoke(ActorCell.scala:547) [bundleFile:?]
              at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) [bundleFile:?]
              at akka.dispatch.Mailbox.run(Mailbox.scala:231) [bundleFile:?]
              at akka.dispatch.Mailbox.exec(Mailbox.scala:243) [bundleFile:?]
              at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
              at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
              at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
              at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
              at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
      Caused by: java.security.KeyStoreException: No keystore private key found
              at org.opendaylight.netconf.client.mdsal.impl.DefaultSslContextFactoryProvider.getJavaKeyStore(DefaultSslContextFactoryProvider.java:90) ~[?:?]
              at org.opendaylight.netconf.client.mdsal.impl.DefaultSslContextFactory.createSslContext(DefaultSslContextFactory.java:35) ~[?:?]
              ... 30 more

      The issue appear only on NETCONF-7 branch (previous versions 6 and 5 works fine).

            ojo Oleksandr Zharov
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: