• Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Dublin Release
    • Dublin Release
    • None
    • None

      When VESCollector dynamic configuration is enabled with polling interval, the collector gets restarted even when no dynamic configuration is updated.

       

      {{[2019-01-20 22:37:34,879][INFO ][pool-2-thread-1][org.onap.dcae.controller.ConfigParsing] - Found following DMaaP configuration: '{"ves-pnfRegistration":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT/"}

      ,"type":"message_router"},"ves-notification":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT/"}

      ,"type":"message_router"},"ves-fault":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/"}

      ,"type":"message_router"},"ves-heartbeat":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/"}

      ,"type":"message_router"},"ves-other":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.SEC_OTHER_OUTPUT/"}

      ,"type":"message_router"},"ves-measurement":{"dmaap_info":

      {"topic_url":"http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"}

      ,"type":"message_router"}}'}}
      [2019-01-20 22:37:34,903][INFO ][pool-2-thread-1][org.onap.dcae.controller.ConfigLoader] - DMaaP config from CBS is the same as currently used one. Skipping dynamic configuration update
      [2019-01-20 22:38:28,526][INFO ][PID 54    ][bin/configurationPoller.sh] - Found change in collector.properties, updating keystore and restarting application
      [2019-01-20 22:38:28,536][INFO ][PID 11821 ][bin/appController.sh] - Stopping application
      Killing java PID(s): 11706
      [2019-01-20 22:38:33,558][INFO ][PID 11821 ][bin/appController.sh] - Application stopped
      [2019-01-20 22:38:33,560][INFO ][PID 11821 ][bin/appController.sh] - Starting application
      [2019-01-20 22:38:36,368][INFO ][background-preinit][org.hibernate.validator.internal.util.Version] - HV000001: Hibernate Validator 6.0.10.Final
      [2019-01-20 22:38:37,906][INFO ][main      ][org.onap.dcae.VesApplication] - Starting VesApplication v1.3.2 on dcae-ves-collector with PID 11832 (/opt/app/VESCollector/lib/VESCollector-1.3.2.jar started by root in /opt/app/VESCollector)
      [2019-01-20 22:38:37,929][INFO ][main      ][org.onap.dcae.VesApplication] - No active profile set, falling back to default profiles: default
      [2019-01-20 22:38:38,547][INFO ][main      ][org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4b86805d: startup date [Sun Jan 20 22:38:38 UTC 2019]; root of context hierarchy
      [2019-01-20 22:38:43,130][INFO ][main      ][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Overriding bean definition for bean 'applicationSettings' with a different definition: replacing [Generic bean: class [org.onap.dcae.ApplicationSettings]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/opt/app/VESCollector/lib/VESCollector-1.3.2.jar!/org/onap/dcae/ApplicationSettings.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=true; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=vesApplication; factoryMethodName=applicationSettings; initMethodName=null; destroyMethodName=(inferred); defined in org.onap.dcae.VesApplication]
      [2019-01-20 22:38:45,505][INFO ][main      ][org.springframework.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 8080 (http)
      Jan 20, 2019 10:38:45 PM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service [Tomcat]
      Jan 20, 2019 10:38:45 PM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/8.5.32
      Jan 20, 2019 10:38:45 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
      Jan 20, 2019 10:38:46 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring embedded WebApplicationContext
      [2019-01-20 22:38:46,742][INFO ][localhost-startStop-1][org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization completed in 8231 ms
      [2019-01-20 22:38:47,486][INFO ][localhost-startStop-1][org.springframework.boot.web.servlet.ServletRegistrationBean] - Servlet dispatcherServlet mapped to [/]
      [2019-01-20 22:38:47,526][INFO ][localhost-startStop-1][org.springframework.boot.web.servlet.FilterRegistrationBean] - Mapping filter: 'characterEncodingFilter' to: [/*]
      [2019-01-20 22:38:49,382][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/],methods=[GET]}" onto java.lang.String org.onap.dcae.restapi.VesRestController.mainPage()
      [2019-01-20 22:38:49,394][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/eventListener/v1 || /eventListener/v1/eventBatch || /eventListener/v2 || /eventListener/v2/eventBatch || /eventListener/v3 || /eventListener/v3/eventBatch || /eventListener/v4 || /eventListener/v4/eventBatch || /eventListener/v5 || /eventListener/v5/eventBatch || /eventListener/v7 || /eventListener/v7/eventBatch],methods=[POST],consumes=[application/json]}" onto org.springframework.http.ResponseEntity<java.lang.String> org.onap.dcae.restapi.VesRestController.receiveEvent(java.lang.String,javax.servlet.http.HttpServletRequest)
      [2019-01-20 22:38:49,398][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/healthcheck],methods=[GET]}" onto public java.lang.String org.onap.dcae.restapi.HealthCheckController.healthCheck()
      [2019-01-20 22:38:49,405][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/swagger-resources/configuration/security]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration()
      [2019-01-20 22:38:49,409][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/swagger-resources/configuration/ui]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration()
      [2019-01-20 22:38:49,410][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/swagger-resources]}" onto public org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources()
      [2019-01-20 22:38:49,452][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
      [2019-01-20 22:38:49,457][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
      [2019-01-20 22:38:50,588][INFO ][main      ][org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped URL path [/swagger-ui.html] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
      [2019-01-20 22:38:50,591][INFO ][main      ][org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
      [2019-01-20 22:38:50,591][INFO ][main      ][org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
      [2019-01-20 22:38:50,744][INFO ][main      ][org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] - Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4b86805d: startup date [Sun Jan 20 22:38:38 UTC 2019]; root of context hierarchy
      [2019-01-20 22:38:51,308][INFO ][main      ][springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping] - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
      [2019-01-20 22:38:53,582][INFO ][main      ][org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - Registering beans for JMX exposure on startup
      [2019-01-20 22:38:53,690][INFO ][main      ][org.springframework.context.support.DefaultLifecycleProcessor] - Starting beans in phase 2147483647
      [2019-01-20 22:38:53,690][INFO ][main      ][springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper] - Context refreshed
      [2019-01-20 22:38:53,752][INFO ][main      ][springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper] - Found 1 custom documentation plugin(s)
      [2019-01-20 22:38:53,983][INFO ][main      ][springfox.documentation.spring.web.scanners.ApiListingReferenceScanner] - Scanning for api listing references
      [2019-01-20 22:38:55,431][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_1
      [2019-01-20 22:38:55,433][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_2
      [2019-01-20 22:38:55,473][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_3
      [2019-01-20 22:38:55,475][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_4
      [2019-01-20 22:38:55,500][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_5
      [2019-01-20 22:38:55,502][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_6
      [2019-01-20 22:38:55,504][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_7
      [2019-01-20 22:38:55,505][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_8
      [2019-01-20 22:38:55,532][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_9
      [2019-01-20 22:38:55,533][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_10
      [2019-01-20 22:38:55,535][INFO ][main      ][springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator] - Generating unique operation named: receiveEventUsingPOST_11
      [2019-01-20 22:38:55,840][INFO ][main      ][org.springframework.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat started on port(s): 8080 (http) with context path ''
      [2019-01-20 22:38:55,866][INFO ][main      ][org.onap.dcae.VesApplication] - Started VesApplication in 19.94 seconds (JVM running for 22.282)
      Jan 20, 2019 10:39:08 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'dispatcherServlet'
      [2019-01-20 22:39:08,902][INFO ][http-nio-8080-exec-2][org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'dispatcherServlet': initialization started
      [2019-01-20 22:39:09,034][INFO ][http-nio-8080-exec-2][org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'dispatcherServlet': initialization completed in 131 ms

       

      There is conflict between ConfigLoader process and configurationPoller.sh

      The collector.keystore.alias resolution is done currently by appController.sh; this gets overridden by VESapplication CBS sourcing.

      Once this property resolution is moved internal to VESapplication, the configurationPoller.sh can be disabled in docker-entry.sh

       

       

            zlatkomurgoski zlatkomurgoski
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: