From 447967d32676845a8f706f1080f2b123af79e11c Mon Sep 17 00:00:00 2001 From: Harish Venkata Kajur Date: Wed, 9 Sep 2020 22:59:58 -0400 Subject: Fix the service instance issue and support v21 Issue-ID: AAI-3128 Issue-ID: SO-3216 Change-Id: Ibc8ff1dd31f42c3c17dc5491dbf56991c74e2785 Signed-off-by: Harish Venkata Kajur --- .../config/application.properties | 5 +- components/aai-schema-service/config/logback.xml | 296 ++++++++++++--------- components/aai-schema-service/values.yaml | 2 +- 3 files changed, 181 insertions(+), 122 deletions(-) (limited to 'components/aai-schema-service') diff --git a/components/aai-schema-service/config/application.properties b/components/aai-schema-service/config/application.properties index 7b9312f..a639c41 100644 --- a/components/aai-schema-service/config/application.properties +++ b/components/aai-schema-service/config/application.properties @@ -21,10 +21,11 @@ info.build.version=1.1.0 spring.application.name=aai-schema-service spring.jersey.type=filter -server.contextPath=/ +spring.main.allow-bean-definition-overriding=true +server.servlet.context-path=/ + spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration -spring.profiles.active={{ .Values.global.config.profiles.active }} spring.jersey.application-path=${schema.uri.base.path} server.tomcat.max-threads=200 server.tomcat.min-Spare-Threads=25 diff --git a/components/aai-schema-service/config/logback.xml b/components/aai-schema-service/config/logback.xml index f10546a..9cfffe9 100644 --- a/components/aai-schema-service/config/logback.xml +++ b/components/aai-schema-service/config/logback.xml @@ -1,18 +1,63 @@ + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -20,6 +65,7 @@ + ${logDirectory}/rest/sane.log @@ -30,34 +76,30 @@ + 1000 true - + - - - INFO - ACCEPT - DENY - + + ${logDirectory}/rest/metrics.log - ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} - + ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${metricPattern} 1000 true - + + + class="ch.qos.logback.core.rolling.RollingFileAppender"> DEBUG ACCEPT @@ -68,52 +110,57 @@ ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} + 1000 + true - + - - WARN - + class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/rest/error.log ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} - - ${eelfErrorLogPattern} + + WARN + + + ${errorPattern} + 1000 - true - + + + class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/rest/audit.log ${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} - - ${eelfAuditLogPattern} + + ${auditPattern} + 1000 true - + + + class="ch.qos.logback.core.rolling.RollingFileAppender"> DEBUG ACCEPT @@ -124,114 +171,125 @@ ${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} - - ${eelfTransLogPattern} + + ${transLogPattern} + 1000 true - + - + + WARN - ${logDirectory}/dmaapAAIEventConsumer/error.log + ${logDirectory}/external/external.log - ${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} + ${logDirectory}/external/external.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + + + DEBUG - ACCEPT - DENY - - ${logDirectory}/dmaapAAIEventConsumer/debug.log - - ${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} - - - - ${eelfLogPattern} - - - - - INFO - ACCEPT - DENY - ${logDirectory}/dmaapAAIEventConsumer/metrics.log + ${logDirectory}/auth/auth.log - ${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}[%thread] %-5level %logger{1024} - %msg%n - - - WARN - - ${logDirectory}/external/external.log - - ${logDirectory}/external/external.log.%d{yyyy-MM-dd} - - - - ${eelfLogPattern} - + + 1000 + true + - - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + - - + + + + - + - + + - - - - - - - + + + + + + + + + + + + + - - {{ if .Values.global.config.logback.console.enabled }} - {{ end }} + diff --git a/components/aai-schema-service/values.yaml b/components/aai-schema-service/values.yaml index 6842eb3..2cea373 100644 --- a/components/aai-schema-service/values.yaml +++ b/components/aai-schema-service/values.yaml @@ -20,7 +20,7 @@ global: # global defaults # application image repository: nexus3.onap.org:10001 -image: onap/aai-schema-service:1.6.9 +image: onap/aai-schema-service:1.7.9 pullPolicy: Always restartPolicy: Always flavor: small -- cgit 1.2.3-korg