[DCAE-2] Wait for DNS to start working. 19/1719/1
authorCarsten Lund <lund@research.att.com>
Tue, 7 Mar 2017 00:22:03 +0000 (00:22 +0000)
committerCarsten Lund <lund@research.att.com>
Tue, 7 Mar 2017 00:22:03 +0000 (00:22 +0000)
Change-Id: Ib2b37b822cc018cd7e04ae1cc6bc7c5e94fd5965
Signed-off-by: Carsten Lund <lund@research.att.com>
OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml

index ceddb8e..f8edda6 100644 (file)
@@ -27,6 +27,10 @@ installation-steps:
   command: |
     sed -i /`hostname`/d /etc/hosts
     cat /tmp/vm-*-hosts >> /etc/hosts
+    while ! nslookup security.ubuntu.com; do
+      echo DNS for security.ubuntu.com FAILED
+      sleep 1m
+    done
     apt-get update ; apt-get install -y maven openjdk-8-jdk unzip python-pip
     pip install pyyaml
   application-id: root