[CONTROLLER-120] Restconf not finding the yang models. Created: 17/Jan/14  Updated: 25/Jul/23  Due: 22/Jan/14  Resolved: 26/Jan/14

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Prasanna Huddar Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Attachments: Text File opendaylight.log    
Issue Links:
Blocks
is blocked by CONTROLLER-136 Remote RPC Broker fails configuration... Resolved
External issue ID: 322
Priority: Highest

 Description   

I think the MD-SAL service is not coming getting initialized and we are restconf is not accessing able to resolve the yang models.

The error persists after 5-10 minutes after we start ODL.

> [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/restc
> onf].[JAXRSRestconf]] SEVERE org.apache.catalina.core.StandardW
> rapperValve invoke Servlet.service() for servlet [JAXRSRestconf] in
> context with path [/restconf] threw exception java.lang.IllegalArgumentException
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
> at org.opendaylight.controller.sal.restconf.impl.ControllerContext.getLatestModule(ControllerContext.java:174)
> at org.opendaylight.controller.sal.restconf.impl.ControllerContext.findModule(ControllerContext.java:169)
> at org.opendaylight.controller.sal.restconf.impl.ControllerContext.toInstanceIdentifier(ControllerContext.java:155)
> at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.resolveInstanceIdentifier(RestconfImpl.java:254)
> at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.readData(RestconfImpl.java:108)
> at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> at
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMetho
> dDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispa
> tchPro
> vider.java:185)
> at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
> at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
> at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
> at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
> at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
> at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)
> at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:99)
>



 Comments   
Comment by Prasanna Huddar [ 24/Jan/14 ]

We are still seeing the same issue with new code.
We are seeing new windows.

"RestConf not initialized."

Comment by Deepthi V V [ 24/Jan/14 ]

PFA opendaylight.log file.
Observation: MD-SAL dependent bundles are not initialised.

Comment by Deepthi V V [ 24/Jan/14 ]

Attachment opendaylight.log has been added with description: Opendaylight log for Restconf not initialized error

Comment by Tony Tkacik [ 24/Jan/14 ]

Opened bug for root cause of this problem - zeromq Connector.

Generated at Wed Feb 07 19:52:14 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.