[ODLMICRO-37]  ODLMicro-Netconf does not start Created: 10/Sep/20  Updated: 03/Oct/20  Resolved: 14/Sep/20

Status: Resolved
Project: odlmicro
Component/s: None
Affects Version/s: None
Fix Version/s: Aluminum

Type: Bug Priority: Highest
Reporter: Venkatrangan Govindarajan Assignee: VenkataSatya Jonnadula
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: ODL-Micro Dev Al

 Description   

1. Downloaded the latest netconf micro tar: wget https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/odlmicro/micro-netconf/1.0.0-SNAPSHOT/micro-netconf-1.0.0-20200909.184824-50-micro.tar

2. Untar and started micro

tar xvf micro-netconf-1.0.0-20200909.184824-50-micro.tar

cd micro-netconf-1.0.0-SNAPSHOT/

java -Xms128M -Xmx2048m -XX:+UnlockDiagnosticVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dcom.sun.management.jmxremote -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -cp "etc/initial/:lib/" org.opendaylight.netconf.micro.NetconfMain

3. Netconf does not start, the following errors are seen on console.

***********
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ubuntu/micro-netconf-1.0.0-SNAPSHOT/lib/org.slf4j.slf4j-simple-1.7.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ubuntu/micro-netconf-1.0.0-SNAPSHOT/lib/org.apache.logging.log4j.log4j-slf4j-impl-2.13.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[main] INFO org.opendaylight.infrautils.micro.Main - Starting up org.opendaylight.netconf.micro.NetconfModule@1d296da...
[main] INFO org.opendaylight.odlguice.inject.ClassPathScanner - Bound interface org.opendaylight.netconf.sal.connect.api.DeviceActionFactory to class org.opendaylight.netconf.sal.connect.netconf.DeviceActionFactoryImpl
[main] INFO org.opendaylight.odlguice.inject.ClassPathScanner - Bound interface org.opendaylight.netconf.sal.connect.api.SchemaResourceManager to class org.opendaylight.netconf.sal.connect.impl.DefaultSchemaResourceManager
[main] INFO org.opendaylight.odlguice.inject.ClassPathScanner - Bound interface org.opendaylight.netconf.sal.restconf.api.JSONRestconfService to class org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl
[main] INFO org.opendaylight.odlguice.inject.ClassPathScanner - Bound interface org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas to class org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas
[main] INFO org.opendaylight.odlguice.inject.ClassPathScanner - Bound interface org.opendaylight.netconf.auth.AuthProvider to class org.opendaylight.netconf.authprovider.CredentialServiceAuthProvider
[main] INFO org.opendaylight.netconf.micro.NetconfModule - Loading netconf
[main] INFO org.opendaylight.yangtools.yang.parser.rfc7950.stmt.list.AbstractListStatementSupport - Configuration list (urn:opendaylight:yang:aaa:cert?revision=2015-11-26)cipher-suites does not define any keys in violation of RFC7950 section 7.8.2. While this is fine with OpenDaylight, it can cause interoperability issues with other systems [defined at [{name=(urn:opendaylight:yang:aaa:cert?revision=2015-11-26)aaa-cert}]:83:12]
[main] INFO org.opendaylight.yangtools.yang.parser.rfc7950.stmt.list.AbstractListStatementSupport - Configuration list (urn:ietf:params:xml:ns:yang:ietf-restconf?revision=2017-01-26)error does not define any keys in violation of RFC7950 section 7.8.2. While this is fine with OpenDaylight, it can cause interoperability issues with other systems [defined at [{name=(urn:ietf:params:xml:ns:yang:ietf-restconf?revision=2017-01-26)ietf-restconf}]:138:9]
[main] INFO org.opendaylight.yangtools.yang.parser.rfc7950.stmt.list.AbstractListStatementSupport - Configuration list (urn:opendaylight:yang:aaa:cert:mdsal?revision=2016-03-21)cipher-suites does not define any keys in violation of RFC7950 section 7.8.2. While this is fine with OpenDaylight, it can cause interoperability issues with other systems [defined at [{name=(urn:opendaylight:yang:aaa:cert:mdsal?revision=2016-03-21)aaa-cert-mdsal}]:81:8]
[main] INFO org.opendaylight.yangtools.yang.parser.rfc7950.stmt.list.AbstractListStatementSupport - Configuration list (urn:opendaylight:params:xml:ns:yang:aaa?revision=2016-12-14)permissions does not define any keys in violation of RFC7950 section 7.8.2. While this is fine with OpenDaylight, it can cause interoperability issues with other systems [defined at [{name=(urn:opendaylight:params:xml:ns:yang:aaa?revision=2016-12-14)aaa}]:143:8]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/home/ubuntu/micro-netconf-1.0.0-SNAPSHOT/lib/com.google.inject.guice-4.2.3.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[main] ERROR org.opendaylight.infrautils.micro.Main - Failed to start up, going to close up and exit
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.opendaylight.aaa.api.PasswordCredentialAuth was bound.
  while locating org.opendaylight.aaa.api.PasswordCredentialAuth
    for the 1st parameter of org.opendaylight.netconf.authprovider.CredentialServiceAuthProvider.<init>(CredentialServiceAuthProvider.java:32)
  at org.opendaylight.odlguice.inject.guice.GuiceClassPathBinder.lambda$bindAllSingletons$0(GuiceClassPathBinder.java:33)

2) No implementation for org.opendaylight.aaa.filterchain.configuration.CustomFilterAdapterConfiguration was bound.
  while locating org.opendaylight.aaa.filterchain.configuration.CustomFilterAdapterConfiguration
    for the 5th parameter of org.opendaylight.netconf.sal.restconf.web.WebInitializer.<init>(WebInitializer.java:40)
  at org.opendaylight.odlguice.inject.guice.GuiceClassPathBinder.lambda$bindAllSingletons$1(GuiceClassPathBinder.java:34)

3) No implementation for org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory was bound.
  while locating org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory
    for the 1st parameter of org.opendaylight.netconf.sal.connect.impl.DefaultSchemaResourceManager.<init>(DefaultSchemaResourceManager.java:55)
  while locating org.opendaylight.netconf.sal.connect.impl.DefaultSchemaResourceManager
    for the 4th parameter of org.opendaylight.netconf.micro.NetconfModule.getNetconfTopology(NetconfModule.java:247)
  at org.opendaylight.netconf.micro.NetconfModule.getNetconfTopology(NetconfModule.java:247)

4) No implementation for org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory was bound.
  while locating org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory
    for the 1st parameter of org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas.<init>(DefaultBaseNetconfSchemas.java:26)
  while locating org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas
    for the 9th parameter of org.opendaylight.netconf.micro.NetconfModule.getNetconfTopology(NetconfModule.java:247)
  at org.opendaylight.netconf.micro.NetconfModule.getNetconfTopology(NetconfModule.java:247)

4 errors
	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:554)
	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:161)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:108)
	at com.google.inject.Guice.createInjector(Guice.java:87)
	at com.google.inject.Guice.createInjector(Guice.java:78)
	at org.opendaylight.infrautils.micro.Main.<init>(Main.java:37)
	at org.opendaylight.netconf.micro.NetconfMain.main(NetconfMain.java:20)
[main] INFO org.opendaylight.infrautils.micro.Main - Initiating orderly shutdown by closing Guice injector...
[main] INFO org.opendaylight.infrautils.micro.Main - Shutdown complete; Guice injector closed.
[main] INFO org.opendaylight.infrautils.micro.Main - Now System.exit(0) so that any hanging non-daemon threads don't prevent JVM stop.

***********8


 Comments   
Comment by Tejas Nevrekar [ 10/Sep/20 ]

This seems to have happened after the latest merge.

Generated at Wed Feb 07 20:26:22 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.