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

Netconf device mount with invalid payloads

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      Encountered couple of issues while mounting device to controller using clustered topology features(odl-restconf-all,odl-netconf-clustered-topology):

      1. Mounting a device with invalid ip in the payload -  Payload is not validated and the device is not prevented from mounting. Also no error messages logged
      2. Mounting with host name in payload - If we provided host name of the device in <host> field in payload, mounting is not happening.

      Want to know if these are expected behavior or do we need to apply fixes for these scenarios.

      Error logs for 1 & 2: 

      07:24:45.492 ERROR [opendaylight-cluster-data-notification-dispatcher-56] member-1-shard-topology-config: Error notifying listener org.opendaylight.mdsal.binding.dom.adapter.BindingClusteredDOMDataTreeChangeListenerAdapter@8a00d20
      java.lang.NullPointerException: null
      at java.util.Objects.requireNonNull(Objects.java:221) ~[?:?]
      at org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager.startNetconfDeviceContext(NetconfTopologyManager.java:186) ~[?:?]
      at org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager.onDataTreeChanged(NetconfTopologyManager.java:159) ~[?:?]
      at org.opendaylight.mdsal.binding.dom.adapter.BindingDOMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeListenerAdapter.java:37) ~[bundleFile:?]
      at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.dataTreeChanged(DataTreeChangeListenerActor.java:84) ~[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:189) [bundleFile:?]
      at scala.PartialFunction.applyOrElse$(PartialFunction.scala:188) [bundleFile:?]
      at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) [bundleFile:?]
      at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:244) [bundleFile:?]
      at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:245) [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:580) [bundleFile:?]
      at akka.actor.ActorCell.invoke(ActorCell.scala:548) [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:290) [?:?]
      at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
      at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
      at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
      at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
      

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            yaroslav.lastivka Yaroslav Lastivka
            rohiniambika Rohini Ambika
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: