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

controller cannot perform NETCONF operations on node after it is re-attached through RESTCONF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Helium
    • netconf
    • None
    • Operating System: All
      Platform: All

    • 3076

      1. Detach a node using restconf (https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf#Reconfiguring_Netconf_Connector_While_the_Controller_is_Running)
      2. REattach the node
      3. Send config to / read operational data from node , using MountInstance API

      You'll see the following error in opendaylight log and the operation fails.

      2015-04-28 07:31:00.910 IST [pool-30-thread-1] ERROR o.o.c.m.s.c.i.s.TwoPhaseCommit - Transaction: BA-3 Request Commit failed
      java.lang.RuntimeException: RemoteDevice

      {dna-node}: Error while replacing /(urn:cisco:params:xml:ns:yang:dna:ldna?revision=2014-07-05)local-dna/telemetry-sources/telemetry/telemetry[{(urn:cisco:params:xml:ns:yang:dna:ldna?revision=2014-07-05)id=2}]
      at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceWriteOnlyTx.put(NetconfDeviceWriteOnlyTx.java:125) ~[na:na]
      at org.opendaylight.controller.sal.connect.netconf.sal.tx.NetconfDeviceReadWriteTx.put(NetconfDeviceReadWriteTx.java:46) ~[na:na]
      at org.opendaylight.controller.md.sal.dom.broker.impl.compat.BackwardsCompatibleTransaction$ReadWriteTransaction.putWithEnsuredParents(BackwardsCompatibleTransaction.java:253) ~[na:na]
      at org.opendaylight.controller.md.sal.dom.broker.impl.compat.BackwardsCompatibleTransaction$ReadWriteTransaction.putConfigurationData(BackwardsCompatibleTransaction.java:216) ~[na:na]
      at org.opendaylight.controller.md.sal.dom.broker.impl.compat.BackwardsCompatibleTransaction$ReadWriteTransaction.putConfigurationData(BackwardsCompatibleTransaction.java:191) ~[na:na]
      at org.opendaylight.controller.sal.binding.impl.connect.dom.BindingToDomCommitHandler.createBindingToDomTransaction(BindingToDomCommitHandler.java:92) ~[na:na]
      at org.opendaylight.controller.sal.binding.impl.connect.dom.BindingToDomCommitHandler.requestCommit(BindingToDomCommitHandler.java:57) ~[na:na]
      at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:87) [bundlefile:na]
      at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:36) [bundlefile:na]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
      at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
      Caused by: java.util.concurrent.ExecutionException: RemoteDevice{dna-node}

      : Pre-commit rpc failed, request: Node[ImmutableCompositeNode], qName[edit-config], modify[n/a], children.size = 4, errors: [RpcError [message=The netconf session to dna-node is disconnected, severity=ERROR, errorType=TRANSPORT, tag=operation-failed, applicationTag=null, info=null, cause=null]]

            mmarsale@cisco.com Maros Marsalek
            ashwin.pankaj@hotmail.com Ashwin Pankaj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: