Re: [controller-dev] Netconf plugin testing
Madhusudhan Kandadai <madhusudhan.opendaylight@...>
Reinaldo, I figured out my problem just now. That is because of incorrect port mentioned in 04-libnetconfd.xml. As I installed netopeer using docker and it uses port 1831:830 for talking to netconf server. So, I used port# 1831 in that xml, username & pwd as "root". Then, I am able to get the correct GET request as mentioned in the wiki. Have attached the response for your kind reference. In the meanwhile, I am getting the error in OSGi command line: Did you face this error before: 2014-04-01 17:44:52.624 PDT [pool-39-thread-1] DEBUG o.o.c.n.u.AbstractNetconfSessionNegotiator - Connection timeout after HashedWheelTimeout(deadline: 1198888 ms ago, ), session is in state OPEN_WAIT 2014-04-01 17:44:52.632 PDT [pool-34-thread-2] ERROR o.o.c.s.c.n.NetconfDevice#libnetconfd - Netconf client NOT started. java.lang.IllegalStateException: Unable to create NetconfClient{label=libnetconfd, sessionId=0} at org.opendaylight.controller.netconf.client.NetconfClient.get(NetconfClient.java:73) ~[na:na] at org.opendaylight.controller.netconf.client.NetconfClient.<init>(NetconfClient.java:105) ~[na:na] at org.opendaylight.controller.netconf.client.NetconfClient.clientFor(NetconfClient.java:83) ~[na:na] at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$3.run(NetconfDevice.java:268) ~[na:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Session was not established after HashedWheelTimeout(deadline: 1483740 ms ago, ) at io.netty.util.concurrent.AbstractFuture.get(AbstractFuture.java:37) ~[na:na] at org.opendaylight.controller.netconf.client.NetconfClient.get(NetconfClient.java:69) ~[na:na] ... 8 common frames omitted Caused by: java.lang.IllegalStateException: Session was not established after HashedWheelTimeout(deadline: 1483740 ms ago, ) at org.opendaylight.controller.netconf.util.AbstractNetconfSessionNegotiator$2.run(AbstractNetconfSessionNegotiator.java:115) ~[na:na] at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:542) ~[na:na] at io.netty.util.HashedWheelTimer$Worker.notifyExpiredTimeouts(HashedWheelTimer.java:440) ~[na:na] at
io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:381) ~[na:na] ... 1 common frames omitted 2014-04-01 17:44:52.633 PDT [pool-39-thread-1] DEBUG o.o.c.n.u.AbstractNetconfSessionNegotiator - Changing state from : OPEN_WAIT to : FAILED Thanks, Madhusudhan On Tuesday, April 1, 2014 5:24 PM, Reinaldo Penno <rapenno@...> wrote: I will test again later today and get back to you. In the meantime, can you test something simple? Change header to <Accept: application/xml> and perform GET again. I seem to remember an issue around that.
On Tue, Apr 1, 2014 at 3:59 PM, Madhusudhan Kandadai <madhusudhan.opendaylight@...> wrote:
|
|