-
Bug
-
Resolution: Done
-
Highest
-
None
-
None
-
None
-
None
As part of fixing the logs for AAI - during a 20171015 build startup of the 9 containers (the 2nd last to start by design is the traversal container - it is having logging API issues
The issue is the classloader fails because that particular EcompEncoder class was refactored into an onap namespace.
last mod https://gerrit.onap.org/r/#/c/16453/
Some of aai-resources is fixed, but resources and traversal still try to classload from the old openecomp namespace before the refactor/rename in AAI-61 and ----AAI-82
Changes in -- are good - but they were not used in -AAI-82-OOM-112
actually just affecting oom - push in -- did not pull in the onap rename into the logback config files on the 3rd - OOM-112LOG-63 is with the logging-analytics ref (the aai project is also ok - heat version)
seeOOM-112
Testing scenarios (this is a fix of the log config - the fix for the ELK logstash filter is in LOG-71)
run aai pods in public onap install - see [https://wiki.onap.org/display/DW/ONAP+on+Kubernetes#ONAPonKubernetes-QuickstartInstallation]
run selected endpoints against aai-service from postman while tailing the logs
[https://\\|https:]{\\\{aai_ip}}:\\\{
{aai_port}}/aai/v11/cloud-infrastructure/cloud-regions
2017-10-15T23:41:53.069Z [qtp1144748369-24] DEBUG org.onap.aai.interceptors.AAILogJAXRSOutInterceptor server=aai-resources-898583818-h6gfs RequestId=f7b99b75-08fb-4151-b8cf-31f6cd97d58a partnerName=AAI requestId=370bf445-c2e8-42d1-bf06-7ecf24785a65 serverIpAddress=10.42.158.43 startTime=2017-10-15T23:41:53.064+0000 serviceName=GET /aai/v11/cloud-infrastructure/cloud-regions PartnerName=AAI action=GET, urlin=https://34.235.50.240:30233/aai/v11/cloud-infrastructure/cloud-regions, HbTransId=1-aai-resources-898583818-h6gfs-171015-23:41:53:065-124
Issue
<encoder class="org.openecomp.aai.logging.EcompEncoder">
should be
<encoder class="org.onap.aai.logging.EcompEncoder">
aai-traversal cnfe kubectl logs -f -n onap-aai aai-resources-898583818-2b10g aai-resources 15:32:24,388 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5b12b668 - Setting initial period to Sun Oct 15 15:32:24 UTC 2017 15:32:24,389 |-ERROR in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Could not create component [encoder] of type [org.openecomp.aai.logging.EcompEncoder] java.lang.ClassNotFoundException: org.openecomp.aai.logging.EcompEncoder at java.lang.ClassNotFoundException: org.openecomp.aai.logging.EcompEncoder at at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at at ch.qos.logback.core.util.Loader.loadClass(Loader.java:120) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.begin(NestedComplexPropertyIA.java:102) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:155) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:142) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:103) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412) at at com.att.eelf.configuration.EELFManager.<init>(EELFManager.java:111) at at com.att.eelf.configuration.EELFManager.<clinit>(EELFManager.java:102) at at org.onap.aai.util.AAIAppServletContextListener.<clinit>(AAIAppServletContextListener.java:39) <encoder class="org.openecomp.aai.logging.EcompEncoder">at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at at java.lang.Class.newInstance(Class.java:442) at at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2372) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:2014) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1957) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at at java.lang.reflect.Method.invoke(Method.java:498) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72) at at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:408) at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1340) at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at at org.eclipse.jetty.server.Server.start(Server.java:387) at at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at at org.eclipse.jetty.server.Server.doStart(Server.java:354) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at at com.att.ajsc.runner.Runner.main(Runner.java:227) 15:32:24,389 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@214:22 - no applicable action for [pattern], current ElementPath is [[configuration][appender][encoder][pattern]] 15:32:24,389 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[dmaapAAIEventConsumerMetric] - Active log file name: /var/log/onap/aai/aai-resources/dmaapAAIEventConsumer/metrics.log
- blocks
-
LOG-25 Logging provider configuration - A&AI
- Closed
-
LOG-63 Logging provider configuration - A&AI new components
- Closed
-
LOG-71 Some of the AAI ELK logs are missing from 20171004 that were in around 20170928
- Closed
-
LOG-80 Kibana does not seem to show all the logs from application pods
- Closed
-
OOM-112 OOM ONAP Logging - Configuration of all ONAP components to emit canonical logs
- Closed
- is blocked by
-
AAI-61 Set namesapce for v11 to onap vs openecomp
- Closed
-
AAI-82 Update licence in aai-common
- Closed
- relates to
-
LOG-67 Add AAI filebeat
- Closed
-
OOM-332 Add AAI filebeat container - blocked by LOG-67
- Closed
-
AAI-131 Model-Loader service of A&AI has it's Log Provider Configuration File sealed inside the WAR
- Closed
-
AAI-10 Replace any remaining openecomp reference by onap
- Closed