Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1447

BBF SW MGR yang causes device to not connect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      With lighty 16.0.0, ODL yang tools 8.03, netconf 3.0.2,.. (Phosphorus SR2) when a device is attached containing the BBF yang mode "bbf-software-management@2021-09-17.yang", there are yang tool errors and ODL will not connect to the device.

      Attached is an error log as well as a tar file of a miminum set of yang to reproduce the issue using a NETCONF testtool simulator.

      To reproduce, use a NETCONF testtool simulator pointing to the yang files as the schema directory from the attached bbf-sw-mgr-yang.tar.gz file. Add the device to ODL.

      The API used for example was:
      PUT http://controller:8181/restconf/data/network-topology:network-topology/topology=topology-netconf/node=justSwMgr
      Body:
      {
      "node": [
      {
      "node-id": "justSwMgr",
      "netconf-node-topology:reconnect-on-changed-schema": false,
      "netconf-node-topology:concurrent-rpc-limit": 0,
      "netconf-node-topology:password": "netconf",
      "netconf-node-topology:username": "netconf",
      "netconf-node-topology:tcp-only": false,
      "netconf-node-topology:max-connection-attempts": 0,
      "netconf-node-topology:keepalive-delay": 60,
      "netconf-node-topology:schemaless": false,
      "netconf-node-topology:schema-cache-directory": "justSwMgr",
      "netconf-node-topology:default-request-timeout-millis": 60000,
      "netconf-node-topology:sleep-factor": 1.1,
      "netconf-node-topology:port": 17830,
      "netconf-node-topology:connection-timeout-millis": 22000,
      "netconf-node-topology:host": "10.184.146.130",
      "netconf-node-topology:actor-response-wait-time": 300,
      "netconf-node-topology:between-attempts-timeout-millis": 2000
      }
      ]
      }

      022-07-13T18:15:21.270 [${env:APP_NAME}] [${env:APP_VERSION}] INFO pondc CommScope [] [${env:NODE_NAME}] opendaylight-cluster-data-notification-dispatcher-82 [] DefaultSchemaResourceManager.getSchemaResources - Netconf connector for device justSwMgr will use schema cache directory justSwMgr instead of schema
      2022-07-13T18:15:21.271 [${env:APP_NAME}] [${env:APP_VERSION}] INFO pondc CommScope [] [${env:NODE_NAME}] opendaylight-cluster-data-notification-dispatcher-85 [] OdlsProvider.onDataChanged - NETCONF Node: org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node[key=NodeKey{_nodeId=Uri{_value=justSwMgr}}] is missing before data, not managed.
      2022-07-13T18:15:21.271 [${env:APP_NAME}] [${env:APP_VERSION}] INFO pondc CommScope [] [${env:NODE_NAME}] opendaylight-cluster-data-notification-dispatcher-82 [] AbstractNetconfTopology.createDeviceCommunicator - Concurrent rpc limit is smaller than 1, no limit will be enforced for device RemoteDevice

      {justSwMgr}

      2022-07-13T18:15:21.952 [${env:APP_NAME}] [${env:APP_VERSION}] WARN pondc CommScope [] [${env:NODE_NAME}] sshd-NetconfSshClient[69911ec2]-nio2-thread-5 [] AcceptAllServerKeyVerifier.handleAcceptance - Server at /10.184.146.130:17830 presented unverified RSA key: SHA256:CpARWHivDcduFgkWZnhbCYNxKLB+Q8Oc20lIAlFrol4
      2022-07-13T18:15:23.406 [${env:APP_NAME}] [${env:APP_VERSION}] WARN pondc CommScope [] [${env:NODE_NAME}] default-pool-5-2 [] BuildGlobalContext.propagateException - Unexpected error processing source RevisionSourceIdentifier [name=bbf-software-management@2021-09-17]. Please file an issue with this model attached.
      java.lang.IllegalStateException: Action was not defined yet.
      at com.google.common.base.Preconditions.checkState(Preconditions.java:502) ~[guava-31.1-jre.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.tryApply(ModifierImpl.java:143) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl$PhaseFinished.phaseFinished(ModifierImpl.java:401) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.addPhaseCompletedListener(StatementContextBase.java:699) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.requiresCtxImpl(ModifierImpl.java:119) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.requiresCtx(ModifierImpl.java:165) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.requiresCtx(ModifierImpl.java:41) ~[yang-parser-reactor-8.0.3.jar:?]
      at org.opendaylight.yangtools.yang.parser.rfc7950.stmt.meta.UniqueStatementSupport.onStatementAdded(UniqueStatementSupport.java:91) ~[yang-parser-rfc7950-8.0.3.jar:?]

            Unassigned Unassigned
            rmagaldi Robert Magaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: