fix crash look backoff in data router 24/86324/1
authorrenealr <reneal.rogers@amdocs.com>
Thu, 25 Apr 2019 20:22:13 +0000 (16:22 -0400)
committerrenealr <reneal.rogers@amdocs.com>
Thu, 25 Apr 2019 20:22:48 +0000 (16:22 -0400)
update data router with additional config needed
by the schema ingest lib

Issue-ID: AAI-2369

Change-Id: I1870fa1fd3e92854b86553a394bd522429c22164
Signed-off-by: renealr <reneal.rogers@amdocs.com>
charts/aai-data-router/resources/config/schemaIngest.properties
charts/aai-data-router/resources/dynamic/conf/data-router-oxm.xml
charts/aai-data-router/values.yaml

index 8c680b5..f98ddce 100644 (file)
@@ -32,15 +32,34 @@ schema.configuration.location=N/A
 schema.nodes.location=/opt/app/data-router/onap/oxm/\r
 schema.edges.location=\r
 # These versions need to exist if they are included in the list\r
-schema.version.list=v9,v10,v11,v12,v13,v14\r
+schema.version.list={{.Values.global.config.schema.version.list}}\r
 # Decalares the oxm version to load\r
-schema.version.api.default=v14\r
+schema.version.api.default={{.Values.global.config.schema.version.api.default}}\r
 \r
 # Don't use these properties in our application, need to be set to prevent an exception on startup (see SchemaVersions bean)\r
-schema.version.depth.start=v14\r
-schema.version.related.link.start=v14\r
-schema.version.app.root.start=v14\r
-schema.version.namespace.change.start=v14\r
-schema.version.edge.label.start=v14\r
-~\r
+schema.version.depth.start={{.Values.global.config.schema.version.depth}}\r
+schema.version.related.link.start={{.Values.global.config.schema.version.related.link}}\r
+schema.version.app.root.start={{.Values.global.config.schema.version.app.root}}\r
+schema.version.namespace.change.start={{.Values.global.config.schema.version.namespace.change}}\r
+schema.version.edge.label.start={{.Values.global.config.schema.version.edge.label}}\r
 \r
+#This property is used to enable or disable schema service, possible values are: schema-service  or config\r
+schema.translator.list={{.Values.config.schemaTranslatorList}}\r
+\r
+#These properties are needed when schema service is  enabled\r
+schema.service.base.url=https://aai-schema-service:8452/aai/schema-service/v1/\r
+schema.service.nodes.endpoint=nodes?version=\r
+schema.service.edges.endpoint=edgerules?version=\r
+schema.service.versions.endpoint=versions\r
+schema.local=true\r
+schema.filename=mockrequests\r
+#Default rest client is the two-way-ssl\r
+#schema.service.client=two-way-ssl\r
+#Replace the below with the A&AI client key store\r
+schema.service.ssl.key-store=${CONFIG_HOME}/auth/{{.Values.global.config.keystore.filename}}\r
+#Replace the below with the A&AI tomcat trust store\r
+schema.service.ssl.trust-store=${CONFIG_HOME}/auth/{{.Values.global.config.truststore.filename}}\r
+schema.service.ssl.key-store-password={{.Values.global.config.keystore.passwd}}\r
+schema.service.ssl.trust-store-password={{.Values.global.config.truststore.passwd}}\r
+\r
+spring.application.name=datarouter\r
index c945c39..f564797 100644 (file)
@@ -9,14 +9,9 @@
         location="file:${CONFIG_HOME}/schemaIngest.properties"
         ignore-unresolvable="true" />
 
-  <bean id="schemaLocationsBean" class="org.onap.aai.setup.SchemaLocationsBean">
-                <!-- When running with AJSC these properties must be injected directly.
-                                             The reason for this is unknown. -->
-                <property name="nodeDirectory" value="${nodeDir}" />
-                <property name="edgeDirectory" value="${edgeDir}" />
-        </bean>
-
-  <bean id="schemaVersions" class="org.onap.aai.setup.SchemaVersions"/>
+        <bean id="nodeIngestor" class="org.onap.aai.nodes.NodeIngestor" autowire="byName"/>
+                <bean id="oxmModelLoader" class="org.onap.aai.schema.OxmModelLoader" >
+                      <constructor-arg ref="nodeIngestor"/>
+                </bean>
 
 </beans>
-
index ddc7fd0..9965ef9 100644 (file)
@@ -21,7 +21,7 @@ global: # global defaults
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/data-router:1.3.1
+image: onap/data-router:1.4-STAGING-latest
 pullPolicy: Always
 restartPolicy: Always
 flavor: small
@@ -32,6 +32,7 @@ ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
 config:
   keyStorePassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
   keyManagerPassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+  schemaTranslatorList: config
 
 
 # default number of instances