Remove the root user id to use default user 61/17161/2
authorVenkata Harish K Kajur <vk250x@att.com>
Wed, 4 Oct 2017 05:06:35 +0000 (05:06 +0000)
committerVenkata Harish K Kajur <vk250x@att.com>
Wed, 4 Oct 2017 05:59:49 +0000 (05:59 +0000)
Change the way kubernetes install to ensure
that the user is not root as all of the aai scripts
expect the user to be non root and this affects
some key functionality and also add an hbase
artificial delay of 60 seconds to ensure
that resources container waits the appropriate
amount of time before trying to connect to hbase
the current implementation of the probe doesn't
work too well since when port is up doesn't
truly tell whether the hbase container is ready

Issue-ID: OOM-334
Change-Id: I290feabb56a9e7f99d538b02bf6f563824eb198e
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
kubernetes/aai/templates/aai-resources-deployment.yaml
kubernetes/aai/templates/aai-traversal-deployment.yaml

index 6c78ca8..cb9fe51 100644 (file)
@@ -54,8 +54,8 @@ spec:
           value: /var/chef/aai-data/environments
         - name: CHEF_GIT_URL
           value: http://gerrit.onap.org/r/aai
-        - name: LOCAL_USER_ID
-          value: "0"
+        - name: HBASE_STARTUP_ARTIFICIAL_DELAY
+          value: "60"
         volumeMounts:
         - mountPath: /etc/localtime
           name: localtime
index a566080..88cf2b1 100644 (file)
@@ -58,8 +58,6 @@ spec:
           value: http://gerrit.onap.org/r/aai
         - name: RESOURCES_HOSTNAME
           value: aai-resources.{{ .Values.nsPrefix }}-aai
-        - name: LOCAL_USER_ID
-          value: "0"
         volumeMounts:
         - mountPath: /etc/localtime
           name: localtime