Add aai and mso FQDN in drools /etc/hosts 41/27541/13
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 5 Jan 2018 20:22:50 +0000 (15:22 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Tue, 16 Jan 2018 21:06:30 +0000 (16:06 -0500)
.api.simpledemo.openecomp.org

See https://jira.onap.org/browse/POLICY-510
This is a temporary solution.

Assign a static IP address to aai-service and inject
it in the /etc/hosts of drools.

Change-Id: I52c25225e63be9d9dfb9c92836f2b16da9f2b813
Issue-ID: OOM-549
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
kubernetes/aai/templates/all-services.yaml
kubernetes/aai/values.yaml
kubernetes/config/docker/init/src/config/policy/opt/policy/config/drools/base.conf
kubernetes/policy/templates/dep-drools.yaml
kubernetes/policy/values.yaml

index df7e356..bf08070 100644 (file)
@@ -165,6 +165,7 @@ spec:
   type: NodePort
   selector:
     app: aai-service
+  clusterIP: {{ .Values.aaiServiceClusterIp }}
 #{{ end }}
 #{{ if not .Values.disableAaiModelLoaderService }}
 ---
index ce625b7..692d071 100644 (file)
@@ -1,6 +1,11 @@
 nsPrefix: onap
 pullPolicy: Always
 nodePortPrefix: 302
+
+# POLICY hotfix - Note this must be temporary
+# See https://jira.onap.org/browse/POLICY-510
+aaiServiceClusterIp: 10.43.255.254
+
 image:
   readiness: oomk8s/readiness-check:1.0.0
   aaiProxy: aaionap/haproxy
index 2dd0c3d..4f90444 100755 (executable)
@@ -83,13 +83,13 @@ DMAAP_SERVERS=dmaap.onap-message-router
 
 # AAI
 
-AAI_URL=aai-service.onap-aai:8443
+AAI_URL=https://aai.api.simpledemo.openecomp.org:8443
 AAI_USERNAME=POLICY
 AAI_PASSWORD=POLICY
 
 # MSO
 
-SO_URL=mso.onap-mso:8080/ecomp/mso/infra
+SO_URL=http://mso.onap-mso:8080/ecomp/mso/infra
 SO_USERNAME=InfraPortalClient
 SO_PASSWORD=password1$
 
index fe52f25..1558b65 100644 (file)
@@ -43,6 +43,10 @@ spec:
           }
           ]'
     spec:
+      hostAliases:
+      - ip: "{{ .Values.aaiServiceClusterIp }}"
+        hostnames:
+        - "aai.api.simpledemo.openecomp.org"
       containers:
       - image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}"
         imagePullPolicy: {{ .Values.pullPolicy }}
index ce037d8..f52dc44 100644 (file)
@@ -1,6 +1,11 @@
 nsPrefix: onap
 pullPolicy: Always
 nodePortPrefix: 302
+
+# POLICY hotfix - Note this must be temporary
+# See https://jira.onap.org/browse/POLICY-510
+aaiServiceClusterIp: 10.43.255.254
+
 image:
   readiness: oomk8s/readiness-check
   readinessVersion: 1.0.0