Problem connecting to server

180 views
Skip to first unread message

peter...@gmail.com

unread,
Apr 2, 2015, 9:33:01 AM4/2/15
to neto...@googlegroups.com
Hi,

I have some trouble connecting to the netopeer server, and I don't know why. I was able to connect successfully before, and suddenly I can't.
The netopeer-cli and server side messages are shown below.

The netopeer-cli side:

[root@localhost ~]# netopeer-cli
netconf> connect 192.168.0.141 --login root -p 830 
libnetconf ERROR: Unable to connect to 192.168.0.141:830.
connect: connecting to the 192.168.0.141:830 as user "root" failed.

The netopeer server side:

[root@localhost ssh]# netopeer-server -v 3
netopeer-server[5488]: Shared memory key: -4
netopeer-server[5488]: Shared memory ID: 1212420
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-inet-types.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-yang-types.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-netconf-monitoring.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-netconf-notifications.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model nc-notifications.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model notifications.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-netconf-with-defaults.
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-netconf-acm.
netopeer-server[5488]: ncds_set_validation: Relax NG validator set (//var/lib/libnetconf//ietf-netconf-acm-data.rng)
netopeer-server[5488]: ncds_set_validation: Schematron validator set (//var/lib/libnetconf//ietf-netconf-acm-schematron.xsl)
netopeer-server[5488]: Datastore ietf-netconf-acm initiated with ID 8.
netopeer-server[5488]: Checking the default Events stream path //var/lib/libnetconf//streams/.
netopeer-server[5488]: Adding augment model "/usr/local/etc/netopeer/cfgnetopeer/ietf-x509-cert-to-name.yin"
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model ietf-x509-cert-to-name.
netopeer-server[5488]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server.yin"
netopeer-server[5488]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-data.rng)
netopeer-server[5488]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-schematron.xsl)
netopeer-server[5488]: Datastore ietf-netconf-server initiated with ID 1804289384.
netopeer-server[5488]: Setting default configuration for ietf-netconf-server module
netopeer-server[5488]: callback_srv_netconf_srv_ssh_srv_listen_oneport: port 830
netopeer-server[5488]: callback_srv_netconf_srv_ssh_srv_listen: started sshd (PID 5489)
netopeer-server[5488]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer.yin"
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model netopeer-cfgnetopeer.
netopeer-server[5488]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-data.rng)
netopeer-server[5488]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-schematron.xsl)
netopeer-server[5488]: Datastore netopeer-cfgnetopeer initiated with ID 846930887.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module with op CHAIN | ADD.
netopeer-server[5488]: Adding base model "/root/Downloads/toaster.yin"
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model toaster.
netopeer-server[5488]: Missing RelaxNG schema for validation (/root/Downloads/toaster-data.rng - No such file or directory).
netopeer-server[5488]: Missing Schematron stylesheet for validation (/root/Downloads/toaster-schematron.xsl - No such file or directory).
netopeer-server[5488]: Datastore toaster initiated with ID 1681692778.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module with op CHAIN | ADD.
netopeer-server[5488]: Adding transapi "/usr/local/etc/netopeer/turing-machine/turing-machine.yin"
netopeer-server[5488]: ncds_features_parse: no feature definitions found in data model turing-machine.
netopeer-server[5488]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/turing-machine/turing-machine-data.rng)
netopeer-server[5488]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/turing-machine/turing-machine-schematron.xsl)
netopeer-server[5488]: Datastore turing-machine initiated with ID 1714636916.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module with op CHAIN | ADD.
netopeer-server[5488]: Adding base model "/root/libnetconf/models/ietf-softwire.yin"
netopeer-server[5488]: Missing RelaxNG schema for validation (/root/libnetconf/models/ietf-softwire-data.rng - No such file or directory).
netopeer-server[5488]: Missing Schematron stylesheet for validation (/root/libnetconf/models/ietf-softwire-schematron.xsl - No such file or directory).
netopeer-server[5488]: Datastore file /usr/local/etc/netopeer/modules.conf.d cannot be opened (Is a directory).
netopeer-server[5488]: Unable to set path to datastore of the 'ietf-softwire' transAPI module.
netopeer-server[5488]: Callback for path /A:netopeer/A:modules/A:module failed (1).
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op REM.
netopeer-server[5488]: Unable to revert executed changes: previous subtree version not found.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op REM.
netopeer-server[5488]: Unable to revert executed changes: previous subtree version not found.
netopeer-server[5488]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op REM.
netopeer-server[5488]: Reverting configuration changes via transAPI failed, configuration may be inconsistent.
netopeer-server[5488]: Unable to revert executed changes: previous subtree version not found.
netopeer-server[5488]: Updating XML tree after TransAPI callbacks
netopeer-server[5488]: Failed perform initial copy of startup to running.
netopeer-server[5488]: Device initialization of module Netopeer failed.
netopeer-server[5488]: Netopeer module cleanup.
netopeer-server[5488]: Starting necessary Netopeer plugin failed!

Thanks.
Peter

Michal Vasko

unread,
Apr 7, 2015, 3:00:03 AM4/7/15
to neto...@googlegroups.com
Hi Peter,

for one, the "-p 830" option for netopeer-cli connect is redundant, that is the default. Second, your server fails to start (obviously you cannot connect) and it says exactly why, please read the messages more carefully.


netopeer-server[5488]: Datastore file /usr/local/etc/netopeer/modules.conf.d cannot be opened (Is a directory).

Regards,
Michal

Radek Krejčí

unread,
Apr 7, 2015, 5:17:24 AM4/7/15
to Michal Vasko, neto...@googlegroups.com, Peter
Probably, you have added ietf-softwire using netopeer-manager with a wrong parameter specifying the file where the configuration data will be stored (see the man page for netopeer-manager).

Radek


Dne 7.4.2015 v 09:00 Michal Vasko napsal(a):

peter...@gmail.com

unread,
Apr 7, 2015, 7:39:32 AM4/7/15
to neto...@googlegroups.com, mv6...@gmail.com, peter...@gmail.com
Hi,

 #/usr/bin/netopeer-configurator shows that the default location of the YANG modules is /usr/local/etc/netopeer/modules.conf.d and that is the path I chose for the --datastore option of the netopeer-manager command. Is this wrong?

Regards,
Peter

在 2015年4月7日星期二 UTC+8下午5:17:24,Radek Krejčí写道:

Radek Krejčí

unread,
Apr 7, 2015, 7:58:17 AM4/7/15
to peter...@gmail.com, neto...@googlegroups.com, mv6...@gmail.com
yes, it is wrong. netopeer-configurator actually does not say anything about YANG modules, but about the Netopeer (i.e. transAPI) modules. The {prefix}/etc/netopeer/modules.conf.d/ directory contains netopeer specific configuration files describing the transAPI modules to be loaded by the server (one of those parameters can be also the datastore file).

netopeer-manager man page says:

--datastore DATASTORE
               Specifies path to the file where the configuration data will be stored. If not specified, datastore is implemented as empty and it will not able to store any configuration data.

The datastore file stores the configuration data managed by the netopeer-server. When you run the server for the first time, the datastore file is supposed to be empty or to not exist at all (it is created). It is the place where the server gets the startup configuration of the specific transAPI module when it boots up.

Radek


Dne 7.4.2015 v 13:39 peter...@gmail.com napsal(a):
--
You received this message because you are subscribed to the Google Groups "Netopeer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netopeer+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/netopeer.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages