CESNET / Netopeer2GUI

Web-based NETCONF management center
Apache License 2.0
25 stars 11 forks source link

Create new device error #4

Closed jgroom33 closed 6 years ago

jgroom33 commented 6 years ago

I'm working on a fork that uses Docker instead of Vagrant. This occurs after an attempted connect to a device (sysrepo):

``` 2018-04-11 22:30:50,284 DEBG 'backend' stdout output: 127.0.0.1 - - [11/Apr/2018 22:30:50] "GET /netopeer/inventory/devices/list HTTP/1.1" 200 - 2018-04-11 22:31:07,774 DEBG 'backend' stdout output: 127.0.0.1 - - [11/Apr/2018 22:31:07] "POST /netopeer/inventory/devices HTTP/1.1" 200 - 2018-04-11 22:31:08,717 DEBG 'backend' stdout output: libyang[0]: Data model "ietf-yang-library" not found. 2018-04-11 22:31:08,717 DEBG 'backend' stdout output: libyang[0]: Module "ietf-yang-library@2017-08-17" in another revision "2018-01-17" already implemented. 2018-04-11 22:31:08,718 DEBG 'backend' stdout output: python3: /opt/dev/libnetconf2/src/session_client.c:700: nc_ctx_fill_yl: Assertion `!implemented' failed. 2018-04-11 22:31:08,864 DEBG fd 6 closed, stopped monitoring (stdout)> 2018-04-11 22:31:08,864 INFO exited: backend (terminated by SIGABRT (core dumped); not expected) 2018-04-11 22:31:08,866 DEBG received SIGCLD indicating a child quit 2018-04-11 22:31:08,866 DEBG 'frontend' stdout output: [HPM] Error occurred while trying to proxy request /netopeer/session from localhost:4200 to http://localhost:5555/ (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors) 2018-04-11 22:31:08,868 INFO spawned: 'backend' with pid 27 2018-04-11 22:31:09,118 DEBG 'backend' stdout output: * Running on http://localhost:5555/ (Press CTRL+C to quit) 2018-04-11 22:31:10,119 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) ```

rkrejci commented 6 years ago

Hi, do you have the sysrepo, libyang, libnetconf2 (device side) built from devel branches? I'll look to this issue with comunication with device using older ietf-yang-library schema, but upgrading the device side could be a quick walkaround now.

rkrejci commented 6 years ago

Please try to update libnetconf2 on the GUI side to 0.11.29, it should fix the issue

jgroom33 commented 6 years ago

yes. the devel branch is being used. Things worked prior to the recent commits:

Working:

git clone git@github.com:jgroom33/Netopeer2GUI.git
git checkout a1a5d93b221b1e4b39b048a8c24cc854ae6fb75c
# checkout commit prior to recent changes
docker build -t netopeer2-gui .
docker run -d --rm -p 4200:4200 --name netopeer2-gui netopeer2-gui
# Start a netconf server also
docker run -d --rm --name sysrepo -p 830:830 sysrepo/sysrepo-netopeer2:latest
# Capture IP of sysrepo container:
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' sysrepo
rkrejci commented 6 years ago

but sysrepo-netopeer2 image is based on master branches, that's what I meant. Current master branches use older ietf-yang-library than devels. Anyway, with libnetconf2 0.11.29 in netopeer2-gui image, it should work.