Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libyang errors when connecting to Opendaylight MDSAL Netconf #709

Closed
esend7881 opened this issue Aug 27, 2020 · 2 comments
Closed

Libyang errors when connecting to Opendaylight MDSAL Netconf #709

esend7881 opened this issue Aug 27, 2020 · 2 comments

Comments

@esend7881
Copy link

I am trying to connect to the Opendaylight MDSAL Netconf server through netopeer2-cli. I am able to connect, but see many errors related to libyang:

> connect --ssh --login admin --port 2830
The authenticity of the host 'localhost' cannot be established.
ssh-rsa key fingerprint is ee:ee:a3:97:e3:76:44:17:09:00:c4:55:67:f6:f3:28:d1:b1:7c:1e.
Are you sure you want to continue connecting (yes/no)? yes
Password authentication

Password: 
ly WARNING: Missing status in deprecated subtree (/opendaylight-queue-types:{grouping}[queue-prop-min-rate]/common-queue), inheriting.
ly WARNING: Missing status in deprecated subtree (/opendaylight-queue-types:{grouping}[queue-prop-min-rate]/rate), inheriting.
_truncated_
ly ERROR: Missing keyword "key" as a child to "list". (/network-topology:network-topology/topology/node/opendaylight-topology-view:original-node)
ly WARNING: Missing status in deprecated subtree (/opendaylight-inventory:{grouping}[node]/id), inheriting.
ly WARNING: Missing status in deprecated subtree (/opendaylight-inventory:{grouping}[node]/node-connector), inheriting.
_truncated_
ly ERROR: Module "opendaylight-meter-types" parsing failed.
ly ERROR: Importing "opendaylight-meter-types" module into "opendaylight-flow-types" failed.
ly ERROR: Importing "opendaylight-port-types" module into "flow-node-inventory" failed.
ly ERROR: Missing keyword "key" as a child to "list". (/openflow-instruction:instruction-container/instruction-choice/write-actions-case/write-actions/action)
ly ERROR: Module "openflow-instruction" parsing failed.
_truncated_
ly ERROR: Importing "opendaylight-flow-types" module into "opendaylight-table-types" failed.
ly ERROR: Module "opendaylight-table-types" parsing failed.
ly ERROR: Importing "opendaylight-table-types" module into "sal-table" failed.
> 
> 
> get-config --source=running
DATA
<upgrade-config xmlns="urn:opendaylight:serviceutils:upgrade">
  <upgradeInProgress>false</upgradeInProgress>
</upgrade-config>

I'm not sure if this issue is related to Opendaylight or if it has to do with libyang or netopeer2, etc. I thought I would ask here and see what you think. For the record, when I connect via regular SSH, I don't see these errors (though regular SSH boots me off after 20 secons)

$ ssh -p 2830 admin@localhost -s netconf
Password authentication
Password: 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&amp;revision=2011-06-01</capability>
<capability>urn:opendaylight:openflowplugin:extension:general?module=openflowplugin-extension-general&amp;revision=2014-07-14</capability>
_truncated_
<capability>urn:opendaylight:l2:types?module=opendaylight-l2-types&amp;revision=2013-08-27</capability>
</capabilities>
<session-id>2</session-id>
</hello>
]]>]]>

I truncated much of this, so if you are interested, I can get more full logs, but I think this tells the story.

Does anyone have experience running SSH into OpenDaylight's Netconf server?

  • libnetconf2 v1.1.26
  • libyang v1.0.184
  • netopeer2 v1.1.39
  • sysrepo v1.4.70
  • ODL v0.11.0 (Sodium)
@michalvasko
Copy link
Member

Hi,
the first error

ly ERROR: Missing keyword "key" as a child to "list". (/network-topology:network-topology/topology/node/opendaylight-topology-view:original-node)

is valid, I have just checked, the YANG module is incorrect. The rest of the errors may just be the consequences of this one.

@esend7881
Copy link
Author

I confirmed there is an error related to the list/key of the ODL yang models. Hopefully ODL fixes them or something corrects this, for now I had to add key's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants