[netopeer-cli] unable to perform "get" requests

238 views
Skip to first unread message

lofflermic...@gmail.com

unread,
Apr 28, 2015, 1:44:35 AM4/28/15
to neto...@googlegroups.com
Hi folks,

please would you mind helping me with following issue?:

I have a fresh installation of netopeer-server in my virtual machine.
It only has two transAPI modules: the default cfgnetopeer module and turing-machine module from /netopeer/transAPI directory.
The problem is, that I can not perform any get requests via netopeer-cli. (get / get-config / get --filter).

It always responses with following answer:
netconf> get
NETCONF error: operation-failed (application) - Some unspecified error occurred.

while the server's verbose output logs following:

netopeer-server[2948]: Received message (session 1): <?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get/>
</rpc>
netopeer-server[2948]: xmlAddChildList failed (src/messages.c:1913).
netopeer-server[2948]: Writing message (session 1): <?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>Some unspecified error occurred.</error-message>
</rpc-error>
</rpc-reply>

The interesting thing for me is, that other commands like user-rpc (initialize turing machine), or edit-config (define delta function for TM) are working correctly. When I execute them, they afterwards are replying with success. Also I am seeing that the datastores in /usr/local/etc/netopeer/(turing-machine for example) are really being changed.

My environment:
OS: Scientific Linux 7.1 x86_64
netopeer-server version 0.7.0 built from git 1f0b2f8eaa524c614d64
pyang 1.5

Thank you very much for your effort.

Regards
Michal

p.s.: I am willing to provide you with ssh access to that VM

Radek Krejčí

unread,
Apr 28, 2015, 3:34:19 AM4/28/15
to lofflermic...@gmail.com, neto...@googlegroups.com
Hi Michal,
thanks for the notice, the issue should be fixed in current master branch (a8a35c328f) of libnetconf (a stupid bug in recent commit). Can you, please, confirm, that it works now for you?

Best regards,
Radek


Dne 28.4.2015 v 04:02 lofflermic...@gmail.com napsal(a):

lofflermic...@gmail.com

unread,
Apr 28, 2015, 1:27:35 PM4/28/15
to neto...@googlegroups.com, lofflermic...@gmail.com
thank you very much, it really works with current version

Regards,
Michal

Dňa utorok, 28. apríla 2015 9:34:19 UTC+2 Radek Krejčí napísal(-a):
Reply all
Reply to author
Forward
0 new messages