From: Kajur, Harish (vk250x) Date: Tue, 9 Oct 2018 00:45:03 +0000 (-0400) Subject: Modify the updateQueryData job to keep waiting X-Git-Tag: 3.0.0-ONAP~173^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=9a07450fa0cad81d598255d670f2d0972bbd4c04;p=oom.git Modify the updateQueryData job to keep waiting until the haproxy can be reached by the kubernetes pod created by the job For some reason in certain rare cases the job is being started prematurely before haproxy container is up so doing another check Issue-ID: AAI-1713 Change-Id: I86827af46220eeb94322973d22a3abd4287eacea Signed-off-by: Kajur, Harish (vk250x) --- diff --git a/kubernetes/aai/charts/aai-traversal/templates/job.yaml b/kubernetes/aai/charts/aai-traversal/templates/job.yaml index a018ede1a3..599bbc23fc 100644 --- a/kubernetes/aai/charts/aai-traversal/templates/job.yaml +++ b/kubernetes/aai/charts/aai-traversal/templates/job.yaml @@ -58,6 +58,7 @@ spec: - | set -x mkdir -p /opt/aai/logroot/AAI-GQ/misc + until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done; bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh env: - name: LOCAL_USER_ID