Ask Your Question
0

yang-ext:mount not working

asked 2014-05-19 16:09:56 -0700

csadi gravatar image

When I try to go to "http://10.128.4.210:8080/restconf/operational/opendaylight-inventory:nodes/opendaylight-inventory:node/Atlas7800Adi1/yang-ext:mount/"

I get the error "Mount point does not contain any schema with modules."

Can someone help me understand this message? Is this something I need to provide - say my yang schema ....?

Thanks in advance

Regards

Adi

edit retag flag offensive close merge delete

Comments

Please post the hello message to verify if your device supports netconf monitoring.

kanika28 ( 2014-05-20 01:39:51 -0700 )edit

[root@bti-ma-sdn ~]# curl -v http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/Atlas7800Adi1/ * About to connect() to localhost port 8080 (#0) * Trying ::1... connected * Connected to localhost (::1) port 8080 (#0) > GET /restconf/operational/opendaylight-inventory:nodes/node/Atlas7800Adi1/ HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost:8080 > Accept: */* > < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Cache-Control: private < Expires: Wed, 31 Dec 1969 19:00:00 EST < Content-Type: application/yang.data+json < Transfer-Encoding: chunked < Date: Tue, 20 May 2014 13:46:02 GMT < { "node": [ { "netconf-node-inventory:initial-capability": [ "http://tail-f.com/ns/mibs/IPV6-TC/199812010000Z?module=IPV6-TC&revision=1998-12-01", "http://btisystems.com/ns/atlas-conditions?module=atlas-conditions&revision=2013-02-19"

csadi ( 2014-05-20 06:47:23 -0700 )edit

This is not the hello message response. Can you connect to your device using netconf over ssh and share the hello message or share the odl's log file?

kanika28 ( 2014-05-20 07:27:28 -0700 )edit

I can send you the log file - can you give me your email? This comment section has character limitation and we dont have any other way of attaching files on this forum and hence

csadi ( 2014-05-20 07:59:45 -0700 )edit

Could you post all returned initial capabilites somewhere so we can examine them?

Tony Tkacik ( 2014-05-20 08:15:58 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-19 20:27:45 -0700

Similar issue was seen sometime back and Maros proposed a fix:

https://lists.opendaylight.org/pipermail/controller-dev/2014-April/004007.html

Not sure if this has been merged yet.

edit flag offensive delete publish link more
0

answered 2014-05-19 23:48:41 -0700

Maros gravatar image

updated 2014-05-21 02:27:56 -0700

The fix mentioned by kanika was merged a while back https://git.opendaylight.org/gerrit/#/c/6356/

The message means that the schema(yang files) were not downloaded from your device. Most likely causes:

  1. SSH/TCP connection to your device was dropped or not properly established
  2. Your device does not support netconf-monitoring so the schemas could not be downloaded

Please make sure you are using the latest code for the controller, check the connectivity to your device and verify that it supports netconf-monitoring capability.


@csadi The log you posted in comment indicates that the nodes/node entry was created in the datastore and that the device is connected. But the schema might have not been dowloaded/parsed.

Could you please add these lines to logging configuration file (configuration/logback.xml):

<logger name="org.opendaylight.controller.sal.connect" level="TRACE"/>

<logger name="org.opendaylight.controller.netconf" level="TRACE"/>

This will add detailed debug messages from netconf connector. Please re-run the controller with this log configuration and send me the opendaylight.log file.

Also if your renote device is publicly accessible, I could try to connect from my machine and debug the issue (I just need the connection configuration).

edit flag offensive delete publish link more

Comments

@Maros, @Tony Tkacik For the second case, where device does not support netconf monitoring, have the code been modified to start reading the yang files from cache/schema folder. If you remember, I did some hardcoding to make that happen. I raised a bug a for it: https://bugs.opendaylight.org/show_bug.cgi?id=628

kanika28 ( 2014-05-20 01:35:36 -0700 )edit

@Maros 1. SSH is working to the device as I do see the output in the log 2. Can you please give me a sample schema file - i can try creating for testing purpose while I debug on the device side 3. Please provide me a link for the latest controller - I downloaded from the regular download location

csadi ( 2014-05-20 04:39:35 -0700 )edit

@Kanika Can you please let me know the details to make ODL read yang files from cache/schema ? Thanks Adi

csadi ( 2014-05-20 06:49:33 -0700 )edit

@Kanika, @Maros Does'nt below log indicate that the schema was created successfully? las-products, http://tail-f.com/ns/mibs/SNMPv2-SMI/1.0?module=SNMPv2-SMI] 2014-05-20 10:08:01.407 EDT [pool-30-thread-1] DEBUG o.o.c.s.c.n.NetconfDevice#Atlas7800Adi1 - Update device state transactio n DOM-2 putting operational data started. 2014-05-20 10:08:01.407 EDT [pool-30-thread-1] DEBUG o.o.c.s.c.n.NetconfDevice#Atlas7800Adi1 - Update device state transactio n DOM-2 putting operational data ended. 2014-05-20 10:08:01.410 EDT [pool-30-thread-1] DEBUG o.o.c.s.c.n.NetconfDevice#Atlas7800Adi1 - Update device state transactio n DOM-2 SUCCESSFUL.

csadi ( 2014-05-20 07:10:34 -0700 )edit

@csadi Please see my edited answer

Maros ( 2014-05-21 01:49:41 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2014-05-19 16:09:56 -0700

Seen: 999 times

Last updated: May 21 '14